File: heap_lang.ref

package info (click to toggle)
coq-iris 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,116 kB
  • sloc: python: 130; makefile: 61; sh: 28; sed: 2
file content (306 lines) | stat: -rw-r--r-- 7,242 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
"heap_e_spec"
     : string
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  E : coPset
  ============================
  ⊢ WP let: "x" := ref #1 in "x" <- ! "x" + #1;; ! "x" @ E {{ v, ⌜v = #2⌝ }}
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  E : coPset
  l : loc
  ============================
  _ : l ↦ #1
  --------------------------------------∗
  WP #l <- #1 + #1;; ! #l @ E {{ v, ⌜v = #2⌝ }}
"heap_e2_spec"
     : string
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  E : coPset
  l : loc
  ============================
  "Hl" : l ↦ #1
  --------------------------------------∗
  WP let: "x" := #l in let: "y" := ref #1 in "x" <- ! "x" + #1;; ! "x"
  @ E
  [{ v, ⌜v = #2⌝ }]
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  E : coPset
  l, l' : loc
  ============================
  "Hl" : l ↦ #1
  _ : l' ↦ #1
  --------------------------------------∗
  WP #l <- #1 + #1;; ! #l @ E [{ v, ⌜v = #2⌝ }]
"heap_e7_spec"
     : string
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  l : loc
  ============================
  _ : ▷ l ↦ #0
  --------------------------------------∗
  WP CmpXchg #l #0 #1 {{ _, l ↦ #1 }}
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  l : loc
  ============================
  _ : l ↦ #1
  --------------------------------------∗
  |={⊤}=> l ↦ #1
"wp_load_fail"
     : string
The command has indeed failed with message:
Tactic failure: wp_load: cannot find 'Load' in (Fork #()).
The command has indeed failed with message:
Tactic failure: wp_load: cannot find 'Load' in (Fork #()).
"wp_load_no_ptsto"
     : string
The command has indeed failed with message:
Tactic failure: wp_load: cannot find l ↦ ?.
"wp_store_fail"
     : string
The command has indeed failed with message:
Tactic failure: wp_store: cannot find 'Store' in (Fork #()).
The command has indeed failed with message:
Tactic failure: wp_store: cannot find 'Store' in (Fork #()).
"wp_store_no_ptsto"
     : string
The command has indeed failed with message:
Tactic failure: wp_store: cannot find l ↦ ?.
"(t)wp_bind_fail"
     : string
The command has indeed failed with message:
Tactic failure: wp_bind: cannot find (! ?e)%E in (Val #()).
The command has indeed failed with message:
Tactic failure: wp_bind: cannot find (! ?e)%E in (Val #()).
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  l : loc
  ============================
  "Hl1" : l ↦{#1 / 2} #0
  "Hl2" : l ↦{#1 / 2} #0
  --------------------------------------∗
  |={⊤}=> True
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  l : loc
  ============================
  --------------------------------------∗
  |={⊤}=> True
"wp_nonclosed_value"
     : string
The command has indeed failed with message:
Tactic failure: wp_pure: cannot find ?y in (Var "x") or 
?y is not a redex.
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  ============================
  --------------------------------------∗
  WP "x" {{ _, True }}
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  n : Z
  H : (0 < n)%Z
  Φ : val → iPropI Σ
  l : loc
  ============================
  "HΦ" : ∀ l0 : loc, l0 ↦∗ replicate (Z.to_nat n) #0 -∗ Φ #l0
  _ : l ↦∗ replicate (Z.to_nat n) #0
  --------------------------------------∗
  |={⊤}=> Φ #l
"test_array_fraction_destruct"
     : string
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  l : loc
  vs : list val
  ============================
  "Hl1" : l ↦∗{#1 / 2} vs
  "Hl2" : l ↦∗{#1 / 2} vs
  --------------------------------------∗
  l ↦∗{#1 / 2} vs ∗ l ↦∗{#1 / 2} vs
"test_wp_finish_fupd"
     : string
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  v : val
  ============================
  --------------------------------------∗
  |={⊤}=> True
"test_twp_finish_fupd"
     : string
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  v : val
  ============================
  --------------------------------------∗
  |={⊤}=> True
"test_heaplang_not_unfolded"
     : string
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS_gen HasLc Σ
  ============================
  @bi_emp_valid (uPredI (iResUR Σ))
    (@fupd (bi_car (uPredI (iResUR Σ)))
       (@bi_fupd_fupd _
          (@uPred_bi_fupd HasLc Σ
             (@iris_invGS HasLc heap_lang Σ (@heapGS_irisGS HasLc Σ heapGS0))))
       (@top coPset coPset_top) (@top coPset coPset_top)
       (@bi_pure (uPredI (iResUR Σ)) True))
"test_wp_pure_credit_succeed"
     : string
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  P : iProp Σ
  ============================
  "Hcred" : £ 1
  --------------------------------------∗
  |={⊤}=> ▷ P ={∅}=∗ P
"test_wp_pure_credit_fail"
     : string
The command has indeed failed with message:
Tactic failure: wp_pure: "Hcred" is not fresh.
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  l : loc
  v : val
  Φ : val → iPropI Σ
  ============================
  "Hl" : l ↦□ v
  --------------------------------------□
  "HΦ" : ▷ (True -∗ Φ v)
  --------------------------------------∗
  WP ! #l {{ v, Φ v }}
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  dq : dfrac
  l : loc
  v : val
  Φ : val → iPropI Σ
  ============================
  "Hl" : l ↦{dq} v
  "HΦ" : True -∗ Φ v
  --------------------------------------∗
  WP ! #l [{ v, Φ v }]
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  l : loc
  v1 : val
  q1 : Qp
  v2 : val
  q2 : Qp
  v3 : val
  q3 : Qp
  v4 : val
  q4 : Qp
  H :
    ((✓ (DfracOwn q3 ⋅ DfracOwn q4) ∧ v3 = v4)
     ∧ ✓ (DfracOwn q2 ⋅ (DfracOwn q3 ⋅ DfracOwn q4)) ∧ v2 = v3)
    ∧ ✓ (DfracOwn q1 ⋅ (DfracOwn q2 ⋅ (DfracOwn q3 ⋅ DfracOwn q4))) ∧ v1 = v2
  ============================
  --------------------------------------∗
  ⌜(q1 + (q2 + (q3 + q4)) ≤ 1)%Qp⌝ ∗ ⌜v1 = v2⌝ ∗ ⌜
  v2 = v3⌝ ∗ ⌜v3 = v4⌝
1 goal
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  l : loc
  I : val → Prop
  Heq : ∀ v : val, I v ↔ I #true
  ============================
  ⊢ l ↦_(λ _ : val, I #true) □
"wp_iMod_fupd_atomic"
     : string
2 goals
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  E1, E2 : coPset
  P : iProp Σ
  ============================
  Atomic (stuckness_to_atomicity NotStuck) (#() #())

goal 2 is:
 "H" : P
 --------------------------------------∗
 WP #() #() @ E2 {{ _, |={E2,E1}=> True }}
"wp_iInv_atomic"
     : string
2 goals
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  N : namespace
  E : coPset
  P : iProp Σ
  H : ↑N ⊆ E
  ============================
  Atomic (stuckness_to_atomicity NotStuck) (#() #())

goal 2 is:
 "H" : ▷ P
 "Hclose" : ▷ P ={E ∖ ↑N,E}=∗ emp
 --------------------------------------∗
 WP #() #() @ E ∖ ↑N {{ _, |={E ∖ ↑N,E}=> True }}
"wp_iInv_atomic_acc"
     : string
2 goals
  
  Σ : gFunctors
  heapGS0 : heapGS Σ
  N : namespace
  E : coPset
  P : iProp Σ
  H : ↑N ⊆ E
  ============================
  Atomic (stuckness_to_atomicity NotStuck) (#() #())

goal 2 is:
 "H" : ▷ P
 --------------------------------------∗
 WP #() #() @ E ∖ ↑N {{ _, |={E ∖ ↑N}=> ▷ P ∗ True }}
"not_cmpxchg"
     : string
The command has indeed failed with message:
Tactic failure: wp_cmpxchg_suc: cannot find 'CmpXchg' in 
(#() #()).