2015-11-05 05:53:12 +00:00
|
|
|
-- deeper congruence
|
|
|
|
|
|
|
|
universe l
|
|
|
|
constants (T : Type.{l}) (x1 x2 x3 x4 x5 x6 : T) (f : T → T → T)
|
|
|
|
constants (f_comm : ∀ x y, f x y = f y x)
|
|
|
|
(f_l : ∀ x y z, f (f x y) z = f x (f y z))
|
|
|
|
(f_r : ∀ x y z, f x (f y z) = f y (f x z))
|
|
|
|
|
2015-11-16 19:01:53 +00:00
|
|
|
namespace tst
|
2015-11-05 05:53:12 +00:00
|
|
|
attribute f_comm [simp]
|
|
|
|
attribute f_l [simp]
|
|
|
|
attribute f_r [simp]
|
2015-11-16 19:01:53 +00:00
|
|
|
end tst
|
2015-11-05 05:53:12 +00:00
|
|
|
|
2015-11-16 19:01:53 +00:00
|
|
|
#simplify eq tst 0 (f (f x2 x4) (f x5 (f x3 (f x1 x6))))
|