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
powMonotone2
The axiom
powMonotone2 :: forall a b c . (b <= c) :- ( (a^b) <= (a ^c))
is not true when a is 0, and b is 0 and c is any positive number.
a
0
b
c
For instance, a = 0, b = 0, c = 1, then we have
a = 0, b = 0, c = 1
(0 <= 1) :- (0^0 <= 0^1)
which is
(0 <= 1) :- (1 <= 0)
One way to solve this is asking a to be a positive number
powMonotone2 :: forall a b c . (0 < a, b <= c) :- ( (a^b) <= (a ^c))
or
powMonotone2 :: forall a b c . (1 <=a , b <= c) :- ( (a^b) <= (a ^c))
if a is thought to be of kind Nat.
Nat
The text was updated successfully, but these errors were encountered:
I'm in favor of fixing this by adding a 1 <= a constraint.
1 <= a
Sorry, something went wrong.
No branches or pull requests
The axiom
is not true when
a
is0
, andb
is0
andc
is any positive number.For instance,
a = 0, b = 0, c = 1
, then we havewhich is
One way to solve this is asking
a
to be a positive numberor
if
a
is thought to be of kindNat
.The text was updated successfully, but these errors were encountered: