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

squeeze_simp produces invalid result #3097

Closed
gebner opened this issue Jun 17, 2020 · 0 comments
Closed

squeeze_simp produces invalid result #3097

gebner opened this issue Jun 17, 2020 · 0 comments
Labels
bug t-meta Tactics, attributes or user commands

Comments

@gebner
Copy link
Member

gebner commented Jun 17, 2020

import tactic.squeeze

def a := 0
def b := 0
def c := 0
def f : ℕ → ℕ := default

@[simp] lemma k (x) : f x = b := rfl
@[simp] lemma l : f b = c := rfl

-- "Try this" suggestion does not work
example : f (f a) = c := by squeeze_simp
-- `squeeze_simp?` doesn't make a difference either,
-- apart from also failing the goal

-- BTW, order matters:
example : f (f a) = c := by simp only [k,l] -- works
example : f (f a) = c := by simp only [l,k] -- fails

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/squeeze_simp.20times.20out/near/201137121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug t-meta Tactics, attributes or user commands
Projects
None yet
2 participants