We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was surprised when unfolding rationals_le to see that it specifies that le x y if there is a fraction p/q made of nats such that y=x+p/q:
rationals_le
le x y
p/q
nat
y=x+p/q
Instance rationals_le `{Rationals Q} : Le Q | 10 := λ x y, ∃ num, ∃ den, y = x + naturals_to_semiring nat Q num / naturals_to_semiring nat Q den.
Why not use any type that is an instance of Naturals?
Naturals
The text was updated successfully, but these errors were encountered:
I agree. It seems better to generalize this to general instances.
Sorry, something went wrong.
No branches or pull requests
I was surprised when unfolding
rationals_le
to see that it specifies thatle x y
if there is a fractionp/q
made ofnat
s such thaty=x+p/q
:Instance rationals_le `{Rationals Q} : Le Q | 10 := λ x y, ∃ num, ∃ den, y = x + naturals_to_semiring nat Q num / naturals_to_semiring nat Q den.
Why not use any type that is an instance of
Naturals
?The text was updated successfully, but these errors were encountered: