You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following property does not hold when the Naturaln is 17621823851506098539
n ^ 2 / n == n
This can be shown by uncommenting the ensureWith comment currently in base:
lib.base.math.Natural.pow.tests.quotient : [Result]
lib.base.math.Natural.pow.tests.quotient =
base.test.prop 10 cases
n ->
use Nat -
use Natural + pow
use Random natIn
x = Random.natural() + Natural.one
b = natIn 1 3
a = natIn b 3
xa = pow x a
xb = pow x b
match toOptional! do div.aborting xa xb with
None -> ensureWith "failed division" false
Some lhs ->
rhs = pow x (a - b)
_ =
"this test does not pass for now: ensureWith (x, a, b, xa, xb, lhs, rhs) (lhs == rhs)"
()
The text was updated successfully, but these errors were encountered:
The following property does not hold when the
Natural
n
is17621823851506098539
This can be shown by uncommenting the
ensureWith
comment currently inbase
:The text was updated successfully, but these errors were encountered: