Debian Codegraph @

test-suite/bugs/bug_7811.v

raw
1
2 (* File reduced by coq-bug-finder from original input, then from 140 lines to 26 lines, then from 141 lines to 27 lines, then from 142 lines to 27 lines, then from 272 lines to 61 lines, then from 291 lines to 94 lines, then from 678 lines to 142 lines, then from 418 lines to 161 lines, then from 538 lines to 189 lines, then from 840 lines to 493 lines, then from 751 lines to 567 lines, then from 913 lines to 649 lines, then from 875 lines to 666 lines, then from 784 lines to 568 lines, then from 655 lines to 173 lines, then from 317 lines to 94 lines, then from 172 lines to 86 lines, then from 102 lines to 86 lines, then from 130 lines to 86 lines, then from 332 lines to 112 lines, then from 279 lines to 111 lines, then from 3996 lines to 5697 lines, then from 153 lines to 117 lines, then from 146 lines to 108 lines, then from 124 lines to 108 lines *)
3 (* coqc version 8.8.0 (May 2018) compiled on May 2 2018 16:49:46 with OCaml 4.02.3
4 coqtop version 8.8.0 (May 2018) *)
5
6 (* This was triggering a "Not_found" at the time of printing/showing the goal *)
7
8 Notation "t $ r" := (t r)
9 (at level 65, right associativity, only parsing).
10
11 Inductive tele : Type :=
12 | TeleO : tele
13 | TeleS {X} (binder : X -> tele) : tele.
14
15 Fixpoint tele_fun (TT : tele) (T : Type) : Type :=
16 match TT with
17 | TeleO => T
18 | TeleS b => forall x, tele_fun (b x) T
19 end.
20
21 Inductive tele_arg : tele -> Type :=
22 | TargO : tele_arg TeleO
23 | TargS {X} {binder} (x : X) : tele_arg (binder x) -> tele_arg (TeleS binder).
24
25 Axiom tele_app : forall {TT : tele} {T} (f : tele_fun TT T), tele_arg TT -> T.
26
27 Coercion tele_arg : tele >-> Sortclass.
28
29 Inductive val :=
30 | LitV
31 | PairV (v1 v2 : val)
32 | InjLV (v : val)
33 | InjRV (v : val).
34 Axiom coPset : Set.
35 Axiom atomic_update : forall {PROP : Type} {TA TB : tele}, coPset -> coPset -> (TA -> PROP) -> (TA -> TB -> PROP) -> (TA -> TB -> PROP) -> PROP.
36 Notation "'AU' '<<' ∀ x1 .. xn , α '>>' @ Eo , Ei '<<' β , 'COMM' Φ '>>'" :=
37 (atomic_update (TA:=TeleS (fun x1 => .. (TeleS (fun xn => TeleO)) .. ))
38 (TB:=TeleO)
39 Eo Ei
40 (tele_app (TT:=TeleS (fun x1 => .. (TeleS (fun xn => TeleO)) .. )) $
41 fun x1 => .. (fun xn => α) ..)
42 (tele_app (TT:=TeleS (fun x1 => .. (TeleS (fun xn => TeleO)) .. )) $
43 fun x1 => .. (fun xn => tele_app (TT:=TeleO) β) .. )
44 (tele_app (TT:=TeleS (fun x1 => .. (TeleS (fun xn => TeleO)) .. )) $
45 fun x1 => .. (fun xn => tele_app (TT:=TeleO) Φ) .. )
46 )
47 (at level 20, Eo, Ei, α, β, Φ at level 200, x1 binder, xn binder,
48 format "'[ ' 'AU' '<<' ∀ x1 .. xn , α '>>' '/' @ Eo , Ei '/' '[ ' '<<' β , '/' COMM Φ '>>' ']' ']'") : bi_scope.
49
50 Axiom ident : Set.
51 Inductive env (A : Type) : Type := Enil : env A | Esnoc : env A -> ident -> A -> env A.
52 Record envs (PROP : Type) : Type
53 := Envs { env_spatial : env PROP }.
54 Axiom positive : Set.
55 Axiom Qp : Set.
56 Axiom one : positive.
57 Goal forall (T : Type) (T0 : forall _ : T, Type) (P : Set)
58 (u : T) (γs : P) (Q : T0 u) (Φ o : forall _ : val, T0 u)
59 (stack_content0 : forall (_ : P) (_ : list val), T0 u)
60 (c c0 : coPset) (l : forall (A : Type) (_ : list A), list A)
61 (e0 : forall (_ : env (T0 u)) (_ : positive), envs (T0 u))
62 (i0 : ident) (o1 : forall (_ : Qp) (_ : val), T0 u)
63 (b0 : forall _ : env (T0 u), T0 u) (P0 : forall _ : T0 u, Type)
64 (u0 : forall (_ : T0 u) (_ : T0 u), T0 u),
65 P0
66 (@atomic_update (T0 u)
67 (@TeleS val (fun _ : val => @TeleS Qp (fun _ : Qp => TeleO))) TeleO c c0
68 (@tele_app (@TeleS val (fun _ : val => @TeleS Qp (fun _ : Qp => TeleO)))
69 (T0 u) (fun (v : val) (q : Qp) => o1 q v))
70 (@tele_app (@TeleS val (fun _ : val => @TeleS Qp (fun _ : Qp => TeleO)))
71 (forall _ : tele_arg TeleO, T0 u)
72 (fun (v : val) (q : Qp) => @tele_app TeleO (T0 u) (o1 q v)))
73 (@tele_app (@TeleS val (fun _ : val => @TeleS Qp (fun _ : Qp => TeleO)))
74 (forall _ : tele_arg TeleO, T0 u)
75 (fun (x : val) (_ : Qp) =>
76 @tele_app TeleO (T0 u)
77 (u0
78 (b0
79 match
80 e0
81 (@Esnoc (T0 u) (@Enil (T0 u)) i0
82 (@atomic_update (T0 u)
83 (@TeleS (list val) (fun _ : list val => TeleO)) TeleO
84 c c0
85 (@tele_app
86 (@TeleS (list val) (fun _ : list val => TeleO))
87 (T0 u) (fun l0 : list val => stack_content0 γs l0))
88 (@tele_app
89 (@TeleS (list val) (fun _ : list val => TeleO))
90 (forall _ : tele_arg TeleO, T0 u)
91 (fun l0 : list val =>
92 @tele_app TeleO (T0 u)
93 (stack_content0 γs (l val l0))))
94 (@tele_app
95 (@TeleS (list val) (fun _ : list val => TeleO))
96 (forall _ : tele_arg TeleO, T0 u)
97 (fun x1 : list val =>
98 @tele_app TeleO (T0 u)
99 (u0 Q
100 (Φ
101 match x1 return val with
102 | nil => InjLV LitV
103 | cons v _ => InjRV v
104 end)))))) one
105 return (env (T0 u))
106 with
107 | Envs _ env_spatial0 => env_spatial0
108 end) (o x)))))
109 .
110 Show.
111 Abort.