Debian Codegraph @

test-suite/bugs/bug_17487_2.v

raw
1 (* Potpourri of inconsistencies between intros [] and destruct and fringe behaviours w.r.t. dependent metas *)
2
3 Goal forall (f : nat -> bool), True.
4 Proof.
5 intros [].
6 + match goal with [ |- nat ] => exact 0 end.
7 + match goal with [ |- True ] => exact I end.
8 + match goal with [ |- True ] => exact I end.
9 Qed.
10
11 Goal forall (f : nat -> bool), True.
12 Proof.
13 intros f; destruct f.
14 + match goal with [ |- nat ] => exact 0 end.
15 + match goal with [ |- True ] => exact I end.
16 + match goal with [ |- True ] => exact I end.
17 Qed.
18
19
20 Goal forall (f : nat -> bool), f = f.
21 Proof.
22 Fail intros [].
23 Abort.
24
25 Goal forall (f : nat -> bool), f = f.
26 Proof.
27 intros f; destruct f.
28 + match goal with [ |- nat ] => exact 0 end.
29 + match goal with [ |- f = f ] => reflexivity end.
30 + match goal with [ |- f = f ] => reflexivity end.
31 Qed.
32
33
34 Goal forall (f : forall n : nat, 0 = n), True.
35 Proof.
36 Fail intros [].
37 Abort.
38
39 Goal forall (f : forall n : nat, 0 = n), True.
40 Proof.
41 Fail intros f; destruct f.
42 Abort.
43
44
45 Goal forall (f : forall n : nat, 0 = n), f = f.
46 Proof.
47 Fail intros [].
48 Abort.
49
50 Goal forall (f : forall n : nat, 0 = n), f = f.
51 Proof.
52 Fail intros f; destruct f.
53 Abort.
54
55
56 Goal forall (f : forall n : nat, n = 0), True.
57 Proof.
58 Fail intros [].
59 Abort.
60
61 Goal forall (f : forall n : nat, n = 0), True.
62 Proof.
63 Fail intros f; destruct f.
64 Abort.