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
For some constants a and b, and type variables x and y, would it be possible to solve a * b <= x * y from (a <= x, b <= y)?
a
b
x
y
a * b <= x * y
(a <= x, b <= y)
The text was updated successfully, but these errors were encountered:
Could you check if the thing you want to do works with:
My plan is to make the above package subsume ghc-typelits-natnormalise as it has a much better approach for solving inequalities.
ghc-typelits-natnormalise
Sorry, something went wrong.
Using ghc-typelits-sopsat at 87e632bf0d I got my intended use case to work!
ghc-typelits-sopsat
foo :: forall n m. (1 <= n * m * m * n) => SNat n -> SNat m -> () foo _ _ = () bar :: forall n m. (1 <= n, 1 <= m) => SNat n -> SNat m -> () bar = foo
No branches or pull requests
For some constants
a
andb
, and type variablesx
andy
, would it be possible to solvea * b <= x * y
from(a <= x, b <= y)
?The text was updated successfully, but these errors were encountered: