lean2/tests/lean/simp29.lean
Leonardo de Moura 9fb3ccb4c0 feat(library/simplifier): support for dependent simplification in lambda expressions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-25 16:54:42 -08:00

14 lines
364 B
Text

rewrite_set simple
add_rewrite eq_id imp_truel imp_truer Nat::add_zeror : simple
variables a b : Nat
variable f {A : Type} : A → Bool
axiom fNat (a : Nat) : f a = (a > 0)
add_rewrite fNat : simple
(*
local t = parse_lean('(∀ x : Nat, f x) ∧ (∀ x : Bool, f x)')
local t2, pr = simplify(t, "simple")
print(t2)
print(pr)
get_environment():type_check(pr)
*)