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
Rewrite fails to disambiguate when only one option is valid
theorem add_succ : true = true := rfl open Nat #check add_succ -- Nat.add_succ #check (add_succ : true = true) -- _root_.add_succ example (x y : Nat) : x + (y + 1) = (x + y) + 1 := by rw [add_succ] /- ambiguous, possible interpretations _root_.add_succ : true = true Nat.add_succ : ∀ (n m : Nat), n + succ m = succ (n + m) -/
Zulip discussion: https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/ambiguous.20rewrite.20when.20only.20one.20is.20valid. The equivalent in Lean 3 succeeds. Thanks to @kmill for minimising. This showed up in porting the exponential-ramsey project.
Code as above.
Expected behavior: The rewrite succeeds and closes the goal.
Actual behavior: The rewrite fails.
Lean (version 4.3.0-rc1, commit baa4b68, Release) MacOS
None
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:
Nat.card
No branches or pull requests
Prerequisites
Description
Rewrite fails to disambiguate when only one option is valid
Context
Zulip discussion: https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/ambiguous.20rewrite.20when.20only.20one.20is.20valid. The equivalent in Lean 3 succeeds. Thanks to @kmill for minimising. This showed up in porting the exponential-ramsey project.
Steps to Reproduce
Code as above.
Expected behavior: The rewrite succeeds and closes the goal.
Actual behavior: The rewrite fails.
Versions
Lean (version 4.3.0-rc1, commit baa4b68, Release)
MacOS
Additional Information
None
Impact
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: