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.
7 lines
143 B
Text
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]
|