3b6ae36e4e
add logging to core
2024-04-04 19:26:41 +02:00
861bd55f94
add log effects to FromParser
2024-04-04 19:26:41 +02:00
efddb1aea1
skip broken pretty-printing tests till i fix them
2024-03-27 18:21:45 +01:00
24ae5b85a2
fix a broken test????
2024-02-24 15:45:04 +01:00
aa4ead592a
allow "let x : A = e in s" with type annotation
2023-12-21 17:54:31 +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
e48f03a61c
multiple semi-sep binds in a let
2023-12-04 23:27:59 +01:00
68d8019f00
add let
to frontend syntax
2023-12-04 18:56:45 +01:00
59e7a457a6
let case be the head of an application too
2023-12-04 18:28:57 +01:00
4291afd51b
allow fst/snd to take multiple arguments
...
also succ though that won't be well typed
2023-12-04 18:21:28 +01:00
310822ffa5
remove old replaced stuff
2023-11-16 18:32:38 +01:00
50984aa1aa
refactor #[attribute] stuff
2023-11-05 20:49:02 +01:00
e211887a34
string/nat lit stuff
2023-11-05 15:38:13 +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
050346e344
add postulate, #[compile-scheme], #[main]
2023-11-03 18:05:54 +01:00
f04c4619ef
detect reserved words inside names like 'a.λ.b'
2023-09-24 17:36:26 +02:00
bcfb0d81b8
update tests
2023-09-22 18:38:32 +02:00
dc076b636d
fix warnings
2023-09-19 18:13:45 +02:00
80b1b3581a
use ST from base
2023-09-19 13:05:01 +02:00
e6c06a5c81
pass the subject quantity through equality etc
...
in preparation for non-linear η laws
2023-09-18 21:53:38 +02:00
b85dcb5402
η for box
...
fixes #27
2023-09-17 19:11:12 +02:00
e1257560b7
Show for contexts, etc
2023-09-17 19:09:54 +02:00
7b53d56072
a few basic fv tests to make sure it's not reversed or whatever
2023-09-16 13:34:11 +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
932469a91e
make quantities optional and default to 1
2023-07-18 23:12:04 +02:00
fa09aaf228
squash warnings
2023-06-23 18:32:05 +02:00
3bbf0366c8
make 0 in ★₀ optional
2023-05-21 20:34:05 +02:00
42aa07c9c8
crude but effective stratification
2023-05-21 20:34:05 +02:00
64de93a13c
remove square brackets around type lines
...
(parens are needed if they are anything other than a `term arg`)
2023-05-16 18:14:42 +02:00
d631b86be3
make p,q in coe/comp optional and default to @0 @1
2023-05-15 20:06:40 +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
7e079a9668
add file locations to Parser.Syntax
...
they're immediately thrown away currently. but one step at a time
2023-04-26 06:12:03 +02:00
b74ffa0077
rewrite parser
...
previously it backtracked too much, so instead of giving a useful
parse error, it just said "expected end of input" at the beginning of
the problem toplevel. which, if it's a namespace, could be way off.
2023-04-24 22:25:04 +02:00
a4ffd74625
fix the most embarrassing quantity mistake ever
2023-04-20 19:29:57 +02:00
3f06e8d68b
allow multiple names in a binder
...
e.g. "(x y : ℕ) × plus x y ≡ 10 : ℕ"
fixes #2
2023-04-19 21:37:51 +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
ac85dc9352
don't put a ∷ℕ on nat literals that's silly
2023-04-17 22:02:40 +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
38dbd275a1
add case0
to syntax since that is possible sometimes
2023-04-02 15:52:55 +02:00
308834a1c0
3 more tests
2023-04-01 22:07:01 +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