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'll add forward/backward indices to my list of alternate names for debruijn levels/indices (which never really give any hints as to what they actually *do* 😅).
1
2