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

Add strictly positive numeric types #1118

Open
riz0id opened this issue Mar 16, 2020 · 1 comment
Open

Add strictly positive numeric types #1118

riz0id opened this issue Mar 16, 2020 · 1 comment

Comments

@riz0id
Copy link
Contributor

riz0id commented Mar 16, 2020

proposing non-zero naturals and positive rationals and completing proofs for their properties with the algebraic morphism modules if necessary.

@MatthewDaggitt
Copy link
Contributor

Hmm do you have a definition in mind? In practice due to the issue of converting backwards and forwards between them, it's often easier simply to enforce a non-zero requirement where needed. See Data.Nat.DivMod for an example of how to use implicit arguments to avoid having to pass the proof every time and see #921 for a proposed improvement.

@MatthewDaggitt MatthewDaggitt changed the title strictly positive number types Add strictly positive numeric types Mar 17, 2020
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