Skip to content
New issue

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

Bug: simp? does not take reverse directions into account #264

Open
sgouezel opened this issue Sep 15, 2023 · 1 comment
Open

Bug: simp? does not take reverse directions into account #264

sgouezel opened this issue Sep 15, 2023 · 1 comment

Comments

@sgouezel
Copy link
Contributor

MWE:

import Std
def foo : Nat → Nat := sorry
theorem foo_eq_iff (z : Nat) : z = 17 ↔ foo z = 3 := sorry
theorem fail (z : Nat) (h : z = 17) : foo z = 3 := by
  simp? [← foo_eq_iff]
  exact h

The simp? works fine, but the suggestion is to use simp only [foo_eq_iff].

@JLimperg
Copy link
Contributor

Caused by core: leanprover/lean4#2131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants