lean2/tests/lean/rw1.lean
Leonardo de Moura feea96e84d feat(library/simplifier): add rewrite_rule_set extension for managing rewrite rules in an environment
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-18 15:43:24 -08:00

20 lines
367 B
Text

(*
mk_rewrite_rule_set("rw1")
add_rewrite_rules("rw1", "and_assoc")
add_rewrite_rules("rw1", "and_truer")
show_rewrite_rules("rw1")
*)
scope
print "new scope"
(*
add_rewrite_rules("rw1", "or_assoc")
enable_rewrite_rules("rw1", "and_assoc", false)
show_rewrite_rules("rw1")
*)
end
print "after end of scope"
(*
show_rewrite_rules("rw1")
*)