lean4-htt/old_tests/tests/lean/apply_elim.lean
2018-04-10 12:56:55 -07:00

12 lines
252 B
Text

open nat
def nat.ind_on {p : nat → Prop} (n : nat) (h₁ : p 0) (h₂ : ∀ n, p n → p (succ n)) : p n :=
nat.rec_on n h₁ h₂
example : ∀ a b : nat, a + b = b + a :=
begin
intro a,
apply nat.ind_on a,
trace_state,
repeat {admit}
end