Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
examples
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
examples
Commits
08108eb8
Verified
Commit
08108eb8
authored
Jun 04, 2019
by
Rodolphe Lepigre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix atomic snapshot and update to last Iris.
parent
fcd5c1de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
opam
opam
+1
-1
theories/logatom/snapshot/atomic_snapshot.v
theories/logatom/snapshot/atomic_snapshot.v
+4
-4
No files found.
opam
View file @
08108eb8
...
...
@@ -9,6 +9,6 @@ build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-rf" "%{lib}%/coq/user-contrib/iris_examples"]
depends: [
"coq-iris" { (= "dev.2019-0
5-31.0.5c07c3be
") | (= "dev") }
"coq-iris" { (= "dev.2019-0
6-03.2.b368c861
") | (= "dev") }
"coq-autosubst" { = "dev.coq86" }
]
theories/logatom/snapshot/atomic_snapshot.v
View file @
08108eb8
...
...
@@ -365,10 +365,10 @@ Section atomic_snapshot.
wp_load
.
eauto
.
Qed
.
Definition
val_list_to_bool
(
v
:
list
val
)
:
bool
:
=
Definition
prophecy_to_bool
(
v
:
list
(
val
*
val
)
)
:
bool
:
=
match
v
with
|
LitV
(
LitBool
b
)
::
_
=>
b
|
_
=>
false
|
(
_
,
LitV
(
LitBool
b
)
)
::
_
=>
b
|
_
=>
false
end
.
Lemma
readPair_spec
γ
p
:
...
...
@@ -413,7 +413,7 @@ Section atomic_snapshot.
iMod
"AU"
as
(
xv
yv
)
"[Hpair Hclose]"
.
rewrite
/
pair_content
.
iDestruct
(
excl_sync
with
"Hp⚫ Hpair"
)
as
%[=
->
->].
destruct
(
val_list
_to_bool
proph_val
)
eqn
:
Hproph
.
destruct
(
prophecy
_to_bool
proph_val
)
eqn
:
Hproph
.
-
(* prophecy value is predicting that timestamp has not changed, so we commit *)
(* committing AU *)
iMod
(
"Hclose"
with
"Hpair"
)
as
"HΦ"
.
...
...
Write
Preview
Markdown
is supported
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