Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Iris
examples
Commits
3038f1ca
Commit
3038f1ca
authored
8 years ago
by
Zhen Zhang
Browse files
Options
Downloads
Patches
Plain Diff
Cleanups
parent
4871f85f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
atomic_pcas.v
+0
-0
0 additions, 0 deletions
atomic_pcas.v
pcas.v
+0
-0
0 additions, 0 deletions
pcas.v
proof.v
+0
-52
0 additions, 52 deletions
proof.v
with
0 additions
and
52 deletions
atomic_p
air
.v
→
atomic_p
cas
.v
+
0
−
0
View file @
3038f1ca
File moved
This diff is collapsed.
Click to expand it.
p
air_
cas.v
→
pcas.v
+
0
−
0
View file @
3038f1ca
File moved
This diff is collapsed.
Click to expand it.
proof.v
deleted
100644 → 0
+
0
−
52
View file @
4871f85f
From
iris
.
program_logic
Require
Export
weakestpre
.
From
iris
.
heap_lang
Require
Export
lang
.
From
iris
.
heap_lang
.
lib
.
barrier
Require
Export
barrier
.
From
iris
.
prelude
Require
Import
functions
.
From
iris
.
algebra
Require
Import
upred_big_op
.
From
iris
.
program_logic
Require
Import
saved_prop
sts
.
From
iris
.
heap_lang
Require
Import
proofmode
.
From
flatcomb
Require
Import
protocol
flat
.
Class
flatG
Σ
:=
FlatG
{
flat_stsG
:>
stsG
Σ
sts
}
.
Definition
flatΣ
:
gFunctors
:=
#
[
stsΣ
sts
]
.
Instance
subG_flatΣ
{
Σ
}
:
subG
flatΣ
Σ
→
flatG
Σ
.
Admitted
.
(** Now we come to the Iris part of the proof. *)
Section
proof
.
Context
`{
!
heapG
Σ
,
!
flatG
Σ
}
(
N
:
namespace
)
.
Coercion
state_to_val
(
s
:
state
)
:
val
:=
match
s
with
|
Init
=>
#
0
|
Req
=>
#
1
|
Exec
=>
#
2
|
Resp
=>
#
3
|
Ack
=>
#
4
end
.
Arguments
state_to_val
!
_
/
:
simpl
nomatch
.
Definition
flat_inv
(
l
:
loc
)
(
s
:
state
)
:
iProp
Σ
:=
(
l
↦
s
)
%
I
.
Definition
flat_ctx
(
γ
:
gname
)
(
l
:
loc
)
:
iProp
Σ
:=
(
■
(
heapN
⊥
N
)
★
heap_ctx
★
sts_ctx
γ
N
(
flat_inv
l
))
%
I
.
Definition
init
(
l
:
loc
)
:=
(
∃
γ
,
flat_ctx
γ
l
★
sts_ownS
γ
{[
Init
]}
∅
)
%
I
.
Definition
req
(
lo
:
val
)
P
:=
(
∃
γ
req
(
l
:
loc
),
lo
=
#
l
∧
l
↦
InjLV
req
★
P
req
★
sts_ownS
γ
{[
Req
]}
{[
White
]})
%
I
.
Lemma
doOp_spec
(
l
f
o
:
val
)
P
:
∀
Φ
:
val
→
iProp
Σ
,
(* lock l ★ *)
req
o
P
⊢
WP
doOp
f
o
{{
Φ
}}
.
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