lean4-htt/tests/lean/4591.lean
Mario Carneiro 4a2210b7e6
fix: unresolve name avoiding locals (#4593)
Fixes #4591. The extra code already existed in the only other user of
`unresolveNameGlobal` (in the pretty printer), although I did not make
it use this function because it has some additional behavior around
universes and in pattern position.
2024-07-02 01:15:39 +00:00

7 lines
143 B
Text

def Nat.foo : Nat → Nat
| 0 => 0
| n+1 => foo n
decreasing_by decreasing_tactic
theorem Nat.Bar.foo : foo 2 = 0 := by
simp? [Nat.foo]