lean2/tests/lean/simp7.lean
Leonardo de Moura 5224df56a3 test(tests/lean): add example showing how to 'sort' argumentes of AC operators using the simplifier
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-20 08:36:48 -08:00

10 lines
No EOL
237 B
Text

variables a b c d e f : Bool
rewrite_set simple
add_rewrite and_assoc and_comm and_left_comm : simple
(*
local t = parse_lean("(f ∧ e) ∧ (d ∧ c) ∧ (b ∧ a)")
local t2 = simplify(t, "simple")
print(t)
print("====>")
print(t2)
*)