test(tests/lean): new simplifier test

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-01-25 10:56:49 -08:00
parent 7015089734
commit 5b13ef1b90
2 changed files with 26 additions and 0 deletions

13
tests/lean/simp27.lean Normal file
View file

@ -0,0 +1,13 @@
rewrite_set simple
add_rewrite eq_id imp_truel imp_truer Nat::add_zeror : simple
variables a b : Nat
variable f : (Nat → Nat) → Nat
variable g : Nat → Nat
(*
local t = parse_lean('λ x x2, (∀ y, g y = x) → g (a + x + b) > x2 + g x')
local t2, pr = simplify(t, "simple")
print(t2)
print(pr)
get_environment():type_check(pr)
*)

View file

@ -0,0 +1,13 @@
Set: pp::colors
Set: pp::unicode
Assumed: a
Assumed: b
Assumed: f
Assumed: g
λ x x2 : , (∀ y : , g y = x) → x > x2 + x
funext (λ x : ,
funext (λ x2 : ,
imp_congr
(refl (∀ y : , g y = x))
(λ C::3 : ∀ y : , g y = x,
congr (congr2 Nat::gt (C::3 (a + x + b))) (congr2 (Nat::add x2) (C::3 x)))))