2015-11-17 04:32:14 +00:00
|
|
|
-- Nested fusion
|
2015-12-05 01:57:03 +00:00
|
|
|
import algebra.ring algebra.numeral
|
2015-11-17 04:32:14 +00:00
|
|
|
open algebra
|
|
|
|
|
|
|
|
universe l
|
|
|
|
constants (T : Type.{l}) (s : algebra.comm_ring T)
|
|
|
|
constants (x1 x2 x3 x4 : T) (f g : T → T)
|
|
|
|
attribute s [instance]
|
|
|
|
set_option simplify.max_steps 50000
|
|
|
|
set_option simplify.fuse true
|
|
|
|
|
2015-12-05 01:57:03 +00:00
|
|
|
open simplifier.unit simplifier.ac simplifier.neg
|
|
|
|
|
|
|
|
#simplify eq env 0 f (x1 * x2 * 3 * 4 - 4 * 3 * x1 * x2) + g (x1 * x2 * 3 * 4 - 4 * 3 * x1 * x2)
|