Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gaurav Parthasarathy
examples_rdcss_old
Commits
583562b5
Commit
583562b5
authored
Aug 28, 2016
by
Zhen Zhang
Browse files
bootstrapping proofs
parent
3fcca3f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
proof.v
0 → 100644
View file @
583562b5
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
.
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
.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment