lean4-htt/tests/lean/rfl_simp_thm.lean
Leonardo de Moura f891c5724d feat: track rfl simp theorems
See issue #1113

We need update stage0 before closing the issue.
2022-04-21 13:42:04 -07:00

8 lines
187 B
Text

def inc (x : Nat) := x + 1
@[simp] theorem inc_eq : inc x = x + 1 := rfl
theorem ex (a b : Fin (inc n)) (h : a = b) : b = a := by
simp only [inc_eq] at a
trace_state
exact h.symm