You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
linarith not ignoring irrelevant (in)equalities #2610
import Mathlib.Tactic.Linarith
example : 0 ≤ 1 := by linarith -- okexample (s : Set ℕ) (h : s = ∅) : 0 ≤ 1 :=
by linarith
/-failed to synthesize AddGroup (Set ℕ)-/
Seems like linarith should ignore (in)equalities in the context it doesn't get.
Activity
dwrensha commentedon Mar 3, 2023
I ran into this problem recently too: https://github.com/dwrensha/math-puzzles-in-lean4/blob/f79693080e1a43c3d9f82098ebfd26c28abadaed/MathPuzzles/Usa1998Q5.lean#L74
mo271 commentedon Mar 3, 2023
I see, you used the same workaround:
clearthe interfering lemmas before invokinglinarith.fix: discard linarith wrong type equalities, style
fix: discard linarith wrong type equalities, style (#2611)
fix: discard linarith wrong type equalities, style (#2611)