3ab8669404
some refactoring in tests
2024-06-04 21:49:08 +02:00
2bfe3250cf
remove Tighten stuff
2024-06-04 21:49:08 +02:00
3e23929b5f
export infix
2024-05-27 21:29:37 +02:00
95a0b38d74
update pretty-printing tests
2024-04-12 22:00:08 +02:00
9d60f366cf
add #![log] pragma
2024-04-12 21:53:54 +02:00
fca75377a0
MakeName ⇒ MkName for consistency
2024-04-12 21:53:50 +02:00
11b0ab6a25
remove default from FromParser.fromParserPure
and Main.step
2024-04-07 03:20:42 +02:00
7a0bc73d25
approximate log stack in handleLogDiscard
2024-04-06 20:14:24 +02:00
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