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

Some special behavior of rw tactic #4909

Closed
znssong opened this issue Aug 4, 2024 · 1 comment
Closed

Some special behavior of rw tactic #4909

znssong opened this issue Aug 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@znssong
Copy link
Contributor

znssong commented Aug 4, 2024

The following code would fail at exact test.symm:

axiom α : Type
axiom β : Type
axiom p : α → Prop
axiom q : α → Prop
axiom r : α → Prop
axiom rp : {x : α} → r x ↔ p x
axiom rq : {x : α} → r x ↔ q x
axiom f : (x : α) → p x → β
axiom g : (x : α) → q x → β
axiom y : β
axiom fx : (x : α) → (hx : r x) → f x (rp.mp hx) = g x (rq.mp hx)
example (x : α) (hx : r x) : g x (rq.mp hx) = y := by
  have test : y = f x (rp.mp hx) := by sorry
  have test₂ : 0 = 0 := by rfl
  rw [fx _] at test
  exact test.symm

If remove test₂, it would works. I posted this phenomenon to the Zulip channel at https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/A.20subtle.20detail.20about.20Lean.20.60rw.60.20tactic. I also posted some analysis of Lean source code on the thread, and Eric Wieser suggested me to file a bug.

@znssong znssong added the bug Something isn't working label Aug 4, 2024
@znssong znssong changed the title Some special behavior of rw Some special behavior of rw tactic Aug 4, 2024
@Kha
Copy link
Member

Kha commented Aug 8, 2024

I think this is a duplicate of #4885?

@Kha Kha closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants