Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fin #12

Open
solomon-b opened this issue Mar 6, 2023 · 1 comment
Open

Fin #12

solomon-b opened this issue Mar 6, 2023 · 1 comment

Comments

@solomon-b
Copy link
Collaborator

No description provided.

@MonoidMusician
Copy link
Collaborator

For how a user-defined fin works, see https://github.com/ToposInstitute/polytt/blob/poly-cont/examples/fin.poly. It is missing some definitional equalities so it doesn't quite have a proper induction statement, but it is close (modulo some rewriting across propositional equalities).

This does not get us builtin syntax for constructing finite numbers, which would be nice to have and easy to do with a builtin fin.

The problem is mainly implementing eliminators for the builtin, but perhaps the userland version can be a guide for how to do so.

We would also want coercions between fin and nat and those get tricky, especially if we don't have all of the laws on natural numbers as definitional equalities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants