Debian Codegraph @

test-suite/ssr/ipat_swap.v

raw
1 Require Import ssreflect.
2
3 Section Swap.
4
5 Definition P n := match n with 1 => true | _ => false end.
6
7 Lemma test_swap1 : forall (n : nat) (b : bool), P n = b.
8 Proof. move=> /[swap] b n; suff: P n = b by []. Abort.
9
10 Lemma test_swap2 : let n := 1 in let b := true in False.
11 Proof. move=> /[swap] b n; have : P n = b := eq_refl. Abort.
12
13 Lemma test_swap_plus P Q R : P -> Q -> R -> False.
14 Proof.
15 move=> + /[swap].
16 suff: P -> R -> Q -> False by [].
17 Abort.
18
19 Lemma test_swap_plus2 P : P -> let x := 0 in let y := 1 in False.
20 Proof.
21 move=> + /[swap].
22 suff: P -> let y := 1 in let x := 0 in False by [].
23 Abort.
24
25 End Swap.