lean4-htt/tests/lean/run/nestedIssueMatch.lean
2022-04-01 15:47:24 -07:00

22 lines
427 B
Text

def g (t : Nat) : Nat := match t with
| (n+1) => match g n with
| 0 => 0
| m + 1 => match g (n - m) with
| 0 => 0
| m + 1 => g n
| 0 => 0
termination_by' sorry
decreasing_by sorry
attribute [simp] g
#check g._eq_1
#check g._eq_2
#check g._eq_3
theorem ex3 : g (n + 1) = match g n with
| 0 => 0
| m + 1 => match g (n - m) with
| 0 => 0
| m + 1 => g n := by
conv => lhs; unfold g