Commit Graph

19 Commits

Author SHA1 Message Date
rhiannon morris 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
rhiannon morris b1699ce022 add let to the core 2023-12-04 22:47:52 +01:00
rhiannon morris 0514fff481 represent ℕ constants directly
instead of as huge `succ (succ (succ ⋯))` terms
2023-11-03 18:05:54 +01:00
rhiannon morris fa7f82ae5a rename Nat to NAT in AST 2023-11-03 18:05:54 +01:00
rhiannon morris e0ed37720f always vsep scheme lets, otherwise they are unreadable 2023-11-03 18:05:54 +01:00
rhiannon morris 421eb220fd erasure refactor 2023-11-03 18:05:54 +01:00
rhiannon morris 0c1df54d62 improve handling of context lengths 2023-11-03 18:05:54 +01:00
rhiannon morris 6896c8fcc4 rename SQtys to sg (σ) 2023-11-03 18:05:54 +01:00
rhiannon morris bb8d2464af add fst and snd 2023-09-18 21:53:38 +02:00
rhiannon morris e6c06a5c81 pass the subject quantity through equality etc
in preparation for non-linear η laws
2023-09-18 21:53:38 +02:00
rhiannon morris 4c88918ade stop throwing names away 2023-09-17 19:08:49 +02:00
rhiannon morris 8221d71416 some refactors 2023-09-17 14:41:20 +02:00
rhiannon morris d5d30ee198 loosen pushCoe's type slightly 2023-08-28 20:03:06 +02:00
rhiannon morris 6f9d31aa0a add displacement to Definition 2023-08-28 19:59:36 +02:00
rhiannon morris 2340b14407 partly improve coercions over constant lines
still needs a real quality check, or something, for stuff like
e : (x ≡ x : A) ⊢ coe (𝑖 ⇒ e @𝑖) x
2023-08-27 18:28:08 +02:00
rhiannon morris 22db2724ce make coercion computation type-directed like it should be 2023-08-26 21:00:19 +02:00
rhiannon morris 0bcb8c24db make an optional Loc non-optional 2023-08-26 20:59:39 +02:00
rhiannon morris a221380d61 more effect stuff, incl. ST 2023-08-25 18:59:54 +02:00
rhiannon morris 8264a1bb81 split up whnf module 2023-08-24 18:42:26 +02:00