Open wilbowma opened 4 years ago
Yes, right now a term expanded from a general elim
is indistinguishable from a type specific one.
Same with expanded lambda, it doesnt know if the original term had an annotation or not. A quick fix would be to just add more stx props. But a better way would be to have terms also implement the "type info" that types have (which includes a resugar
method for each term).
We'd have to modify Turnstile to have define-typed-syntax
do everything that define-type
does which could be a substantial change though. I'll need to think about what the syntax of that new define-typed-syntax
would look like though.
I expected
elim
to resugar toelim
, rather thanelim-Nat
. This isn't a huge deal. But also, the lambdas inside the elim ought to have type annotations. That one does reduce readability.