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

10 lines
255 B
Text

constants (A : Type.{1}) (f : A → A → A) (x y z : A) (g : A → A)
attribute [simp]
lemma foo : f x y = y := sorry
attribute [simp]
lemma bar : g y = z := sorry
open tactic
example : g (f x y) = z := by simp
example : g (f x (f x y)) = z := by simp