b67162bda1
fix the other similar loops
...
closes #38 , again
2024-02-24 16:04:38 +01:00
f337625801
remove most noLocs
2024-02-10 10:14:22 +01:00
b7074720ad
pretty printing fixes
2023-12-21 18:03:57 +01:00
03c197bd04
add local bindings to context
...
- without this, inside the body of `let x = e in …`, the typechecker
would forget that `x = e`
- now bound variables can reduce, if they have a definition, so RedexTest
needs to take the context too
2023-12-07 01:43:39 +01:00
2f8a2d2cd2
fix typo in error
2023-11-04 17:45:55 +01:00
fa7f82ae5a
rename Nat to NAT in AST
2023-11-03 18:05:54 +01:00
e0ed37720f
always vsep scheme lets, otherwise they are unreadable
2023-11-03 18:05:54 +01:00
fbb862c88b
%default total
2023-11-03 18:05:54 +01:00
0c1df54d62
improve handling of context lengths
2023-11-03 18:05:54 +01:00
428397f42b
erasure to untyped syntax
2023-11-03 18:05:54 +01:00
e6c06a5c81
pass the subject quantity through equality etc
...
in preparation for non-linear η laws
2023-09-18 21:53:38 +02:00
e1257560b7
Show for contexts, etc
2023-09-17 19:09:54 +02:00
fa14ce1a02
add FreeVars, and split only on used dvars in Equal
2023-09-12 09:56:49 +02:00
fa09aaf228
squash warnings
2023-06-23 18:32:05 +02:00
7b93a913c7
rewrite pretty printer
2023-05-15 17:13:14 +02:00
8d6ae6cc32
move location to the start of type errors
2023-05-02 19:03:05 +02:00
d5f4a012c5
add source locations to inner syntax
2023-05-02 03:06:25 +02:00
a5ccf0215a
coercions and compositions
2023-04-15 15:13:01 +02:00
a42e82c355
type-case
2023-04-03 17:46:23 +02:00
ba2818a865
remove IsQty interface
2023-04-01 19:16:43 +02:00
c8fbd73ea4
use names when pretty printing contexts
2023-03-31 19:30:55 +02:00
36609713ac
mtl ⇒ eff
2023-03-31 19:26:24 +02:00
8a9b4c23dd
box type
2023-03-31 19:26:24 +02:00
773f6372ea
quantities in case don't need to be *exactly* the same
...
...as long as they are all compatible with the target.
for example, given ω.n : ℕ:
```
case double_it? return ℕ of {
'true ⇒ plus n n;
'false ⇒ n
}
```
2023-03-27 00:01:32 +02:00
f620dda639
fix error message
2023-03-26 16:15:30 +02:00
46e13c8ca2
don't print empty contexts in errors
2023-03-26 16:11:11 +02:00
7e3a8e72bd
clean up printing of contexts
...
- just π.x : A instead of π.(x : A)
- skip the " |" if the dctx is empty
2023-03-26 14:41:48 +02:00
78e48911d0
check that an enum case head has the right type
...
haha oops
2023-03-26 14:41:20 +02:00
9250789219
natural numbers
2023-03-26 14:40:54 +02:00
5053e9b234
remove inject stuff
...
injecting from m to (n+m) is just id ::: id ::: ... ::: shift n.
specifically, injecting from 0 is just the shift. so.
2023-03-25 22:44:30 +01:00
75376619f9
move pretty stuff for DimEq
2023-03-25 20:54:31 +01:00
8f0f0c1891
"1.(x: A) → B" instead of "(1.x: A) → B"
...
also "1.A → B"
2023-03-18 23:27:27 +01:00
32f38238ef
pretty printing errors
2023-03-15 15:54:51 +01:00
86d21caf24
put names into contexts, and contexts into errors
2023-03-14 16:04:41 +01:00
f4af1a5a78
split up Quox.Typing
2023-03-13 21:41:57 +01:00