aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/test_suite/test_intro_rw.v
diff options
context:
space:
mode:
authorCyril Cohen2020-11-24 02:13:01 +0100
committerGitHub2020-11-24 02:13:01 +0100
commit84dbef80c27392413f96f77d2314a3b34a7a88f8 (patch)
tree429d78a011dfce7f283d0addd876e25553ae77e8 /mathcomp/test_suite/test_intro_rw.v
parente6a25b8d4806cf968dbf6c33343ba1d1fb28ddf6 (diff)
parent53b6f555a5068f3ded38c623f1939e082b3268ae (diff)
Merge pull request #672 from CohenCyril/fix_dup_swap
Fixing [dup] and [swap] for Coq 8.12
Diffstat (limited to 'mathcomp/test_suite/test_intro_rw.v')
-rw-r--r--mathcomp/test_suite/test_intro_rw.v24
1 files changed, 24 insertions, 0 deletions
diff --git a/mathcomp/test_suite/test_intro_rw.v b/mathcomp/test_suite/test_intro_rw.v
index dd1486f..827b810 100644
--- a/mathcomp/test_suite/test_intro_rw.v
+++ b/mathcomp/test_suite/test_intro_rw.v
@@ -21,3 +21,27 @@ Proof.
move=> /[apply] b.
Check (b : B).
Abort.
+
+Lemma test_swap_plus P Q : P -> Q -> False.
+Proof.
+move=> + /[dup] q.
+suff: P -> Q -> False by [].
+Abort.
+
+Lemma test_dup_plus2 P : P -> let x := 0 in False.
+Proof.
+move=> + /[dup] y.
+suff: P -> let x := 0 in False by [].
+Abort.
+
+Lemma test_swap_plus P Q R : P -> Q -> R -> False.
+Proof.
+move=> + /[swap].
+suff: P -> R -> Q -> False by [].
+Abort.
+
+Lemma test_swap_plus2 P : P -> let x := 0 in let y := 1 in False.
+Proof.
+move=> + /[swap].
+suff: P -> let y := 1 in let x := 0 in False by [].
+Abort.