lean4-htt/tests/lean/apply_elim.lean
Leonardo de Moura 062ebf4344 fix(library/tactic/apply_tactic): when using elimator-like definitions
We found this problem when developing the red-black tree module.
2017-11-16 11:21:17 -08: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