lean2/tests/lean/simp13.lean
Leonardo de Moura d6692264e8 feat(library/simplifier): contextual simplifications
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-23 12:23:22 -08:00

15 lines
No EOL
307 B
Text

rewrite_set simple
add_rewrite and_truer and_truel and_falser and_falsel : simple
(*
add_congr_theorem("simple", "and_congr")
*)
variables a b c : Nat
(*
local t = parse_lean([[a = 1 ∧ b = 0 ∧ b > a]])
local s, pr = simplify(t, "simple")
print(s)
print(pr)
print(get_environment():type_check(pr))
*)