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

Adding natural numbers defined by their associativity property #720

Merged
merged 4 commits into from
May 2, 2022

Conversation

guilhermehas
Copy link
Contributor

I have defined the natural numbers using their associativity property and proved that they are isomorphic to NatPlusOne in the library. I explained in more detail the data structure on my blog:
https://guilhermehas.github.io/posts/associativity-natural-numbers.html

Copy link
Collaborator

@mortberg mortberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Do you have any use cases in mind for this?

@mortberg mortberg merged commit dd49215 into agda:master May 2, 2022
@guilhermehas
Copy link
Contributor Author

It is not so useful. But it can be used to define a non-empty vector by its associativity property too.

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

Successfully merging this pull request may close these issues.

None yet

2 participants