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
b1699ce022
add let to the core
2023-12-04 22:47:52 +01:00
0514fff481
represent ℕ constants directly
...
instead of as huge `succ (succ (succ ⋯))` terms
2023-11-03 18:05:54 +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
ea674503c0
export PushSubsts, oops
2023-09-20 21:58:55 +02:00
bb8d2464af
add fst and snd
2023-09-18 21:53:38 +02:00
8221d71416
some refactors
2023-09-17 14:41:20 +02:00
b6264f388d
fix #11 the easy way
...
tightening just pushes substitutions all the way through. bleh
2023-07-17 03:50:16 +02:00
fa09aaf228
squash warnings
2023-06-23 18:32:05 +02:00
cd330c1092
remove a noLoc
2023-06-11 19:25:38 +02:00
42aa07c9c8
crude but effective stratification
2023-05-21 20:34:05 +02:00
7b93a913c7
rewrite pretty printer
2023-05-15 17:13:14 +02:00
d5f4a012c5
add source locations to inner syntax
2023-05-02 03:06:25 +02:00
30fa93ab4e
refactor core syntax slightly to derive Eq/Show
...
add a new `WithSubst tm env to` record that packages a `tm from`
with a `Subst env from to`, and write instances for just that. the
rest of the AST can be derived
2023-04-27 21:37:20 +02:00
3fb8580f85
re-add tightening and use it when messing with scopes
...
e.g. "coe [_ ⇒ A] @p @q s" should immediately reduce to "s",
but if the "_ ⇒ A" happened to use an SY it didn't.
this will still happen if a wrong SY sneaks in but the alternative is
re-traversing the term over and over every time whnf runs
2023-04-17 20:56:31 +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
8a9b4c23dd
box type
2023-03-31 19:26:24 +02:00
84e1cc78cc
use a SnocVect for subN
2023-03-26 16:09:47 +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
757ea89b0f
add definitions to parser
2023-03-06 12:04:29 +01:00
60f07a938e
move pushSubsts to Q.S.T.Subst
2023-02-26 11:17:42 +01:00
0e481a8098
new representation for scopes
2023-02-22 07:40:19 +01:00
1a7efc104e
Replace subst overloading with interfaces too (mostly)
2023-02-20 22:22:49 +01:00
42798f243f
typed equality
2023-02-10 21:52:40 +01:00
4b36d8b7c8
pair stuff
2023-01-26 19:55:08 +01:00
f0f49d9abf
ScopeTerms that can bind multiple vars
2023-01-23 03:22:50 +01:00
f097e1c091
start of equality type stuff
2023-01-21 02:34:28 +01:00
c45a963ba0
parameterise over qty semiring
2023-01-08 20:44:25 +01:00
804f1e3638
remove src directories
2022-05-06 22:01:44 +02:00