diff options
| author | Cyril Cohen | 2020-11-24 02:13:01 +0100 |
|---|---|---|
| committer | GitHub | 2020-11-24 02:13:01 +0100 |
| commit | 84dbef80c27392413f96f77d2314a3b34a7a88f8 (patch) | |
| tree | 429d78a011dfce7f283d0addd876e25553ae77e8 /mathcomp/test_suite/test_intro_rw.v | |
| parent | e6a25b8d4806cf968dbf6c33343ba1d1fb28ddf6 (diff) | |
| parent | 53b6f555a5068f3ded38c623f1939e082b3268ae (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.v | 24 |
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. |
