lean4-htt/tests/lean/1026.lean
2022-02-23 13:10:30 -08:00

13 lines
236 B
Text

def foo (n : Nat) : Nat :=
if n = 0 then 0 else
let x := n - 1
have := match () with | _ => trivial
foo x
termination_by _ n => n
decreasing_by sorry
theorem ex : foo 0 = 0 := by
unfold foo
sorry
#check @foo._unfold