Debian Codegraph @

test-suite/bugs/bug_20008.v

raw
1 Set Primitive Projections.
2
3 Record R A := mk { p : A -> A -> A }.
4
5 Arguments mk {_} _.
6 Arguments p {_} _ !_ !_.
7
8 (* using nat *)
9
10 Goal forall x, p (mk (fun _ _ => 2)) x x = 0.
11 Proof.
12 Fail progress cbn.
13 Abort.
14
15 Goal forall x, p (mk (fun _ _ => 2)) 3 x = 0.
16 Proof.
17 Fail progress cbn.
18 Abort.
19
20 Goal p (mk (fun _ _ => 2)) 3 4 = 0.
21 Proof.
22 progress cbn.
23 Abort.
24
25 Arguments p {_} _ !_ _.
26
27 Goal forall x, p (mk (fun _ _ => 2)) x x = 0.
28 Proof.
29 Fail progress cbn.
30 Abort.
31
32 Goal forall x, p (mk (fun _ _ => 2)) 3 x = 0.
33 Proof.
34 progress cbn.
35 Abort.
36
37 Goal forall x, p (mk (fun _ _ => 2)) x 4 = 0.
38 Proof.
39 Fail progress cbn.
40 Abort.
41
42 Goal p (mk (fun _ _ => 2)) 3 4 = 0.
43 Proof.
44 progress cbn.
45 Abort.
46
47 (* using prim int *)
48 Require Import PrimInt63.
49
50 Open Scope int63_scope.
51
52 Arguments p {_} _ !_ !_.
53
54 Goal forall x, p (mk (fun _ _ => 2)) x x = 0.
55 Proof.
56 intros x. Check x : int. (* sanity check that the scope is correct *)
57 Fail progress cbn.
58 Abort.
59
60 Goal forall x, p (mk (fun _ _ => 2)) 3 x = 0.
61 Proof.
62 Fail progress cbn.
63 Abort.
64
65 Goal p (mk (fun _ _ => 2)) 3 4 = 0.
66 Proof.
67 progress cbn.
68 Abort.
69
70 Arguments p {_} _ !_ _.
71
72 Goal forall x, p (mk (fun _ _ => 2)) x x = 0.
73 Proof.
74 Fail progress cbn.
75 Abort.
76
77 Goal forall x, p (mk (fun _ _ => 2)) 3 x = 0.
78 Proof.
79 progress cbn.
80 Abort.
81
82 Goal forall x, p (mk (fun _ _ => 2)) x 4 = 0.
83 Proof.
84 Fail progress cbn.
85 Abort.
86
87 Goal p (mk (fun _ _ => 2)) 3 4 = 0.
88 Proof.
89 progress cbn.
90 Abort.