diff options
| author | Cyril Cohen | 2020-11-23 17:55:27 +0100 |
|---|---|---|
| committer | Cyril Cohen | 2020-11-24 17:03:31 +0100 |
| commit | 5eb18289189a8a3d71086b12998e85d651970b28 (patch) | |
| tree | 4e56479239e05e93b80c13ba3d8f908f98a45ed5 /test-suite/ssr/ipat_dup.v | |
| parent | 5fce39e0078935662fd6fb9b8e2ee6b0da60b3ab (diff) | |
Fixing [dup] and [swap]
Diffstat (limited to 'test-suite/ssr/ipat_dup.v')
| -rw-r--r-- | test-suite/ssr/ipat_dup.v | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/ssr/ipat_dup.v b/test-suite/ssr/ipat_dup.v index b1936df31d..61666959c4 100644 --- a/test-suite/ssr/ipat_dup.v +++ b/test-suite/ssr/ipat_dup.v @@ -2,6 +2,8 @@ Require Import ssreflect. Section Dup. +Section withP. + Variable P : nat -> Prop. Lemma test_dup1 : forall n : nat, P n. @@ -10,4 +12,18 @@ Proof. move=> /[dup] m n; suff: P n by []. Abort. Lemma test_dup2 : let n := 1 in False. Proof. move=> /[dup] m n; have : m = n := eq_refl. Abort. +End withP. + +Lemma test_dup_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. + End Dup. |
