Debian Codegraph @

test-suite/ssr/ipat_dup.v

raw
1 Require Import ssreflect.
2
3 Section Dup.
4
5 Section withP.
6
7 Variable P : nat -> Prop.
8
9 Lemma test_dup1 : forall n : nat, P n.
10 Proof. move=> /[dup] m n; suff: P n by []. Abort.
11
12 Lemma test_dup2 : let n := 1 in False.
13 Proof. move=> /[dup] m n; have : m = n := eq_refl. Abort.
14
15 End withP.
16
17 Lemma test_dup_plus P Q : P -> Q -> False.
18 Proof.
19 move=> + /[dup] q.
20 suff: P -> Q -> False by [].
21 Abort.
22
23 Lemma test_dup_plus2 P : P -> let x := 0 in False.
24 Proof.
25 move=> + /[dup] y.
26 suff: P -> let x := 0 in False by [].
27 Abort.
28
29 End Dup.