Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-atomic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FP
iris-atomic
Commits
0fa11100
Commit
0fa11100
authored
8 years ago
by
Zhen Zhang
Browse files
Options
Downloads
Patches
Plain Diff
hack loop_spec
parent
fce22a5f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
srv.v
+25
-6
25 additions, 6 deletions
srv.v
with
25 additions
and
6 deletions
srv.v
+
25
−
6
View file @
0fa11100
...
@@ -316,10 +316,29 @@ Section proof.
...
@@ -316,10 +316,29 @@ Section proof.
wp_let
.
wp_let
.
wp_load
.
wp_let
.
wp_let
.
wp_load
.
by
iClear
"~5"
.
by
iClear
"~5"
.
Admitted
.
Admitted
.
Lemma
loop_spec
Φ
(
p
s
lk
:
loc
)
(
f
:
val
)
Q
(
γ
hd
γ
gn
γ
2
γ
lk
:
gname
)
γ
s
:
heapN
⊥
N
→
heap_ctx
★
inv
N
(
srv_inv
γ
hd
γ
gn
γ
2
s
Q
)
★
inv
N
(
lock_inv
γ
lk
lk
(
own
γ
2
(
Excl
())))
★
own
γ
gn
(
◯
{
[
p
:=
γ
s
]
}
)
★
□
(
∀
x
:
val
,
WP
f
x
{{
v
,
■
Q
x
v
}}
)
%
I
★
(
∀
x
y
,
■
Q
x
y
→
Φ
y
)
(
*
there
should
be
some
constraints
on
x
*
)
⊢
WP
loop
#
p
f
#
s
#
lk
{{
Φ
}}
.
Proof
.
iIntros
(
HN
)
"(#Hh & #? & #? & #? & #? & HΦ)"
.
iL
ö
b
as
"IH"
.
wp_rec
.
repeat
wp_let
.
(
*
we
should
be
able
to
know
p
is
something
by
open
the
invariant
and
using
the
fragment
*
)
(
*
but
for
now
we
will
move
fast
*
)
iAssert
(
p_inv
'
γ
2
γ
s
p
Q
)
as
"Hp"
.
{
admit
.
}
rewrite
/
p_inv
'
.
destruct
γ
s
as
[[[[
γ
x
γ
1
]
γ
3
]
γ
4
]
|
];
last
by
iExFalso
.
iDestruct
"Hp"
as
"[Hp | [Hp | [ Hp | Hp]]]"
.
-
(
*
I
should
be
able
to
refuse
this
case
*
)
admit
.
-
admit
.
-
admit
.
-
iDestruct
"Hp"
as
(
x
y
)
"(Hp & Hx & % & Ho1 & Ho4)"
.
(
*
there
should
be
some
token
exchange
*
)
wp_load
.
wp_match
.
by
iApply
"HΦ"
.
Admitted
.
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment