diff options
author | Arnaud Spiwack <arnaud@spiwack.net> | 2014-01-06 11:32:14 +0100 |
---|---|---|
committer | Arnaud Spiwack <arnaud@spiwack.net> | 2014-01-06 11:32:14 +0100 |
commit | 0427f99bd793a8aa8245e61ec340ca4c6966ba63 (patch) | |
tree | 00242a2f320c89dd82443c28fe94fff3c2d962d2 /test-suite/success/ltac_plus.v | |
parent | 3525f2a01cd4f28882b721f40659d5c104e3077c (diff) |
Add a test suite file for Ltac's "+" tactical.
Diffstat (limited to 'test-suite/success/ltac_plus.v')
-rw-r--r-- | test-suite/success/ltac_plus.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/success/ltac_plus.v b/test-suite/success/ltac_plus.v new file mode 100644 index 000000000..8a08d6465 --- /dev/null +++ b/test-suite/success/ltac_plus.v @@ -0,0 +1,12 @@ +(** Checks that Ltac's '+' tactical works as intended. *) + +Goal forall (A B C D:Prop), (A->C) -> (B->C) -> (D->C) -> B -> C. +Proof. + intros A B C D h0 h1 h2 h3. + (* backtracking *) + (apply h0 + apply h1);apply h3. + Undo. + Fail ((apply h0+apply h2) || apply h1); apply h3. + (* interaction with || *) + ((apply h0+apply h1) || apply h2); apply h3. +Qed.
\ No newline at end of file |