Conversation

You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
In well-scoped terms, I think you get something like the following:
Agda code showing Fin type and its dual
2
5
Neat! I've notices the 'swap' behaviour of the weird integer arithmetic that seems only ever to be mentioned in passing, and tried to make APIs with last/prev for levels and first/next for indices but this is nice way of putting it.
1
2
I also find it interesting how the 'size' in quotation etc., behaves a bit like an erased/abstract environment? Have been tempted to make a type called `ErasedEnv` in the past (or more accurately, rename my `EnvLen` type to that).
2