Commit graph

46 commits

Author SHA1 Message Date
7a0bc73d25 approximate log stack in handleLogDiscard 2024-04-06 20:14:24 +02: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
050346e344 add postulate, #[compile-scheme], #[main] 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
a221380d61 more effect stuff, incl. ST 2023-08-25 18:59:54 +02:00
4b6b3853a1 make uses of eff more consistent 2023-08-24 19:55:57 +02:00
fa09aaf228 squash warnings 2023-06-23 18:32:05 +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
a4ffd74625 fix the most embarrassing quantity mistake ever 2023-04-20 19:29:57 +02:00
b666bc20cf do scope checking in FromParser where it belongs 2023-04-18 22:55:23 +02:00
4578b30c79 namespaces work now 2023-04-18 00:10:53 +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
924fd991f9 fix equality types 2023-04-01 16:02:02 +02:00
15f6f4c8a4 fix nat elim quantities 2023-04-01 16:01:53 +02:00
a17752f31c fix up tests 2023-03-31 23:43:25 +02:00
8a9b4c23dd box type 2023-03-31 19:26:24 +02:00
5560cb6708 move 'enum' to Syntax.Base 2023-03-26 16:14:58 +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
60079d9eb9 update for tap update 2023-03-25 20:42:44 +01:00
6dc7177be5 use NContext/SnocVect for scope name lists etc 2023-03-16 18:18:49 +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
7f46537cbc "abstract" ⇒ "postulate"
abstracts still have a body, just not always visible. which i will deal
with Later
2023-03-13 19:31:05 +01:00
d9bc68446f more fromparser stuff 2023-03-10 21:52:29 +01:00
8fc0b414cf fix tag stuff in test labels 2023-03-05 13:17:46 +01:00
02b94ab705 split check and checkType. UAny is kill 2023-03-05 13:14:25 +01:00
edeee68cb7 parser 2023-03-04 21:35:09 +01:00
55cdb19a4c replace ⇒ with . in lambdas, etc
also remove some weird duplication in the tests
2023-02-26 11:16:29 +01:00
4b284d6e01 rename λᴰ to δ
sorry fen
2023-02-25 19:14:11 +01:00
302de6266e nicer constructors for ASTs 2023-02-25 15:26:11 +01:00
3d9b730803 some more typechecker tests 2023-02-23 10:04:16 +01:00
0e481a8098 new representation for scopes 2023-02-22 07:40:19 +01:00
858b5db530 check for 0=1 in typechecker 2023-02-19 17:51:44 +01:00
bee6eeacdf pass a TyContext into equal etc, rather than its components 2023-02-14 22:28:10 +01:00
065ebedf2d use DimEq directly in typing context 2023-02-14 21:29:04 +01:00
c40e6a60ff remove input qctx since it isn't used 2023-02-14 21:14:47 +01:00
846bbc9ca3 more tc tests 2023-02-13 22:06:53 +01:00
a6f43a772e more equality & tests 2023-02-12 21:30:08 +01:00
7d2c3b5a8e more typed equality, uip, etc 2023-02-11 18:15:50 +01:00