test(tests/lean): add nested 'have' expression test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
1d23d93e60
commit
fdc4c9b53c
2 changed files with 19 additions and 0 deletions
15
tests/lean/nested_have.lean
Normal file
15
tests/lean/nested_have.lean
Normal 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
|
4
tests/lean/nested_have.lean.expected.out
Normal file
4
tests/lean/nested_have.lean.expected.out
Normal file
|
@ -0,0 +1,4 @@
|
|||
Set: pp::colors
|
||||
Set: pp::unicode
|
||||
Imported 'macros'
|
||||
Proved: T
|
Loading…
Add table
Reference in a new issue