test(tests/lean/interactive): add back command test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
e069ce640b
commit
74a8b5f2f4
2 changed files with 28 additions and 0 deletions
9
tests/lean/interactive/t3.lean
Normal file
9
tests/lean/interactive/t3.lean
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Theorem T2 (a b : Bool) : b => a \/ b.
|
||||||
|
apply imp_tactic.
|
||||||
|
apply disj_tactic.
|
||||||
|
back.
|
||||||
|
back.
|
||||||
|
apply assumption_tactic.
|
||||||
|
done.
|
||||||
|
|
||||||
|
Show Environment 1.
|
19
tests/lean/interactive/t3.lean.expected.out
Normal file
19
tests/lean/interactive/t3.lean.expected.out
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
|
||||||
|
# Set: pp::colors
|
||||||
|
Set: pp::unicode
|
||||||
|
Proof state:
|
||||||
|
a : Bool, b : Bool ⊢ b ⇒ a ∨ b
|
||||||
|
## Proof state:
|
||||||
|
H : b, a : Bool, b : Bool ⊢ a ∨ b
|
||||||
|
## Proof state:
|
||||||
|
H : b, a : Bool, b : Bool ⊢ a
|
||||||
|
## Proof state:
|
||||||
|
H : b, a : Bool, b : Bool ⊢ b
|
||||||
|
## Error (line: 8, pos: 0) failed to backtrack
|
||||||
|
Proof state:
|
||||||
|
H : b, a : Bool, b : Bool ⊢ b
|
||||||
|
## Proof state:
|
||||||
|
no goals
|
||||||
|
## Proved: T2
|
||||||
|
# Theorem T2 (a b : Bool) : b ⇒ a ∨ b := Discharge (λ H : b, Disj2 a H)
|
||||||
|
#
|
Loading…
Reference in a new issue