test(tests/lean): add nested 'have' expression test

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-02-06 08:13:04 -08:00
parent 1d23d93e60
commit fdc4c9b53c
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import macros
theorem T (a b c d e : Bool) : (a → b) → (a → b → c) → d ∧ a → (d → c → e) → e
:= assume Hab Habc Hda Hde,
have Hd : d,
from and_eliml Hda,
have Ha : a,
from and_elimr Hda,
have Hc : c,
from (have Hb : b,
from Hab Ha,
show c,
from Habc Ha Hb),
show e,
from Hde Hd Hc

View file

@ -0,0 +1,4 @@
Set: pp::colors
Set: pp::unicode
Imported 'macros'
Proved: T