lean4-htt/tests/lean/defeq1.lean
2016-10-11 16:37:08 -07:00

14 lines
368 B
Text

open nat tactic
universe variables u variables {A : Type u}
attribute [simp]
definition succ_eq_add (n : nat) : succ n = n + 1 :=
rfl
example (n m : nat) (H : succ (succ n) = succ m) : true :=
by do H ← get_local `H,
t ← infer_type H,
s ← simp_lemmas.mk_default,
t' ← s^.dsimplify t,
trace t',
exact (expr.const `trivial [])