Zulip Chat Archive

Stream: mathlib4

Topic: linarith and let


Dan Velleman (Dec 20 2025 at 20:52):

In the following example, linarith fails:

import Mathlib.Tactic

example : True := by
  let n := 1
  have h : n < 2 := by linarith
  trivial

Shouldn't this work?
I could be mistaken, but I think it used to work. Did something change?


Last updated: Dec 20 2025 at 21:32 UTC