2015-12-05 03:13:49 +00:00
|
|
|
import algebra.ring
|
2015-11-06 02:30:23 +00:00
|
|
|
open algebra
|
2015-11-13 04:59:26 +00:00
|
|
|
|
2015-11-13 18:50:35 +00:00
|
|
|
set_option simplify.max_steps 5000000
|
2015-12-05 01:57:03 +00:00
|
|
|
-- TODO(dhs): we need to create the simplifier.numeral namespace incrementally.
|
|
|
|
-- Once it exists, we can uncomment the following line to use it simplify.
|
|
|
|
set_option simplify.numerals true
|
2015-11-13 18:50:35 +00:00
|
|
|
universe l
|
|
|
|
constants (A : Type.{l}) (A_comm_ring : comm_ring A)
|
2015-11-06 02:30:23 +00:00
|
|
|
attribute A_comm_ring [instance]
|
|
|
|
|
2015-11-17 00:00:00 +00:00
|
|
|
#simplify eq env 0 (0:A) + 1
|
|
|
|
#simplify eq env 0 (1:A) + 0
|
|
|
|
#simplify eq env 0 (1:A) + 1
|
|
|
|
#simplify eq env 0 (0:A) + 2
|
|
|
|
#simplify eq env 0 (1:A) + 2
|
|
|
|
#simplify eq env 0 (2:A) + 1
|
|
|
|
#simplify eq env 0 (3:A) + 1
|
|
|
|
#simplify eq env 0 (2:A) + 2
|
|
|
|
#simplify eq env 0 (4:A) + 1
|
|
|
|
#simplify eq env 0 (3:A) + 2
|
|
|
|
#simplify eq env 0 (2:A) + 3
|
|
|
|
#simplify eq env 0 (0:A) + 6
|
|
|
|
#simplify eq env 0 (3:A) + 3
|
|
|
|
#simplify eq env 0 (4:A) + 2
|
|
|
|
#simplify eq env 0 (5:A) + 1
|
|
|
|
#simplify eq env 0 (4:A) + 3
|
|
|
|
#simplify eq env 0 (1:A) + 6
|
|
|
|
#simplify eq env 0 (6:A) + 1
|
|
|
|
#simplify eq env 0 (5:A) + 28
|
|
|
|
#simplify eq env 0 (0 : A) + (2 + 3) + 7
|
|
|
|
#simplify eq env 0 (70 : A) + (33 + 2)
|
2015-11-13 18:50:35 +00:00
|
|
|
|
2015-11-17 00:00:00 +00:00
|
|
|
#simplify eq env 0 (23000000000 : A) + 22000000000
|
2015-11-06 02:30:23 +00:00
|
|
|
|
2015-11-17 00:00:00 +00:00
|
|
|
#simplify eq env 0 (0 : A) * 0
|
|
|
|
#simplify eq env 0 (0 : A) * 1
|
|
|
|
#simplify eq env 0 (0 : A) * 2
|
|
|
|
#simplify eq env 0 (2 : A) * 0
|
|
|
|
#simplify eq env 0 (1 : A) * 0
|
|
|
|
#simplify eq env 0 (1 : A) * 1
|
|
|
|
#simplify eq env 0 (2 : A) * 1
|
|
|
|
#simplify eq env 0 (1 : A) * 2
|
|
|
|
#simplify eq env 0 (2 : A) * 2
|
|
|
|
#simplify eq env 0 (3 : A) * 2
|
|
|
|
#simplify eq env 0 (2 : A) * 3
|
|
|
|
#simplify eq env 0 (4 : A) * 1
|
|
|
|
#simplify eq env 0 (1 : A) * 4
|
|
|
|
#simplify eq env 0 (3 : A) * 3
|
|
|
|
#simplify eq env 0 (3 : A) * 4
|
|
|
|
#simplify eq env 0 (4 : A) * 4
|
|
|
|
#simplify eq env 0 (11 : A) * 2
|
|
|
|
#simplify eq env 0 (15 : A) * 6
|
|
|
|
#simplify eq env 0 (123456 : A) * 123456
|
2015-11-06 03:43:10 +00:00
|
|
|
|
2015-11-17 00:00:00 +00:00
|
|
|
#simplify eq env 0 (0 + 45343453:A) * (53653343 + 1) * (53453 + 2) + (0 + 1 + 2 + 2200000000034733)
|
2015-11-13 19:31:18 +00:00
|
|
|
|
2015-12-05 01:57:03 +00:00
|
|
|
#simplify eq env 0 (23000000000343434534345316:A) * (53653343563534534 + 5367536453653573573453) * 53453756475777536 + 2200000000034733531531531534536
|