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
UInt64.modn
Please put an X between the brackets as you perform the following steps:
The code
lean4/src/runtime/object.cpp
Lines 1559 to 1562 in 174a5f3
fails if the second argument is large.
theorem false : False := have : (UInt64.ofNat (2^64-1))%(2^63 : Nat) = 18446744073709551615 := by native_decide absurd this (by decide) -- 'false' depends on axioms: [Lean.ofReduceBool] #print axioms false
Expected behavior: Proof should be rejected.
Actual behavior: Proof is accepted.
4.11.0, 4.13.0-rc3, 4.12.0-nightly-2024-10-22, all on live.lean-lang.org
4.11.0
4.13.0-rc3
4.12.0-nightly-2024-10-22
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered:
chore: remove native code for UInt8.modn (#5901)
844e7ae
Closes #5818
Successfully merging a pull request may close this issue.
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
The code
lean4/src/runtime/object.cpp
Lines 1559 to 1562 in 174a5f3
fails if the second argument is large.
Expected behavior: Proof should be rejected.
Actual behavior: Proof is accepted.
Versions
4.11.0
,4.13.0-rc3
,4.12.0-nightly-2024-10-22
, all on live.lean-lang.orgImpact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: