-
Notifications
You must be signed in to change notification settings - Fork 141
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
Rational order #1071
Rational order #1071
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, lots of good stuff in this PR!
A general question, can't the ring solver be used to prove a lot of the equations for Z that are needed in the proofs?
_#_ : ℚ → ℚ → Type₀ | ||
m # n = (m < n) ⊎ (n < m) | ||
|
||
data Trichotomy (m n : ℚ) : Type₀ where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't have this for nat and int already? Should be upstreamed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do, but the issue here is that it only works for [ a , b ] [ c , d ] cases. Upstreaming it would require a gnarly pattern match like the definition of < or <=.
Can someone who knows how the CI really works help with fixing:
Maybe @felixwellen or @mzeuner ? |
The heap issue seems to be happening on master as well, so it's a broader issue with the library. |
Please rebase/merge master |
Thanks for this! Looking forward to future PRs cleaning things even more |
Pattern matching. Defining For context, under the previous definition of |
Defines an ordering over the rationals and proves several key properties. Also refactors the rationals to use the integers instead of QuoInt; the original definition are relabeled as QuoQ and put into MoreRationals.
At some point, ideally under a different PR, QuoQ should be removed and all proofs involving it replaced with proofs against the variant using the default version of Int rather than QuoInt.