lean2/tests/lean/nested_have.lean
Leonardo de Moura fdc4c9b53c test(tests/lean): add nested 'have' expression test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-06 08:13:04 -08:00

15 lines
393 B
Text

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