Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
POPL21 Iris Tutorial
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
POPL21 Iris Tutorial
Commits
962f2131
Commit
962f2131
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Bump Iris (beautify code for `iCombine .. gives`).
parent
31b71f8f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#78880
failed
2 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
coq-iris-tutorial-popl21.opam
+1
-1
1 addition, 1 deletion
coq-iris-tutorial-popl21.opam
solutions/ex_04_parallel_add.v
+2
-2
2 additions, 2 deletions
solutions/ex_04_parallel_add.v
solutions/ex_05_parallel_add_mul.v
+1
-1
1 addition, 1 deletion
solutions/ex_05_parallel_add_mul.v
with
4 additions
and
4 deletions
coq-iris-tutorial-popl21.opam
+
1
−
1
View file @
962f2131
...
@@ -8,7 +8,7 @@ dev-repo: "git+https://gitlab.mpi-sws.org/iris/tutorial-popl18.git"
...
@@ -8,7 +8,7 @@ dev-repo: "git+https://gitlab.mpi-sws.org/iris/tutorial-popl18.git"
synopsis: "The Iris tutorial at POPL 2021"
synopsis: "The Iris tutorial at POPL 2021"
depends: [
depends: [
"coq-iris-heap-lang" { (= "dev.202
2
-0
8-11.5.b6b4b694
") | (= "dev") }
"coq-iris-heap-lang" { (= "dev.202
3
-0
3-09.0.f91e8eab
") | (= "dev") }
]
]
build: [make "-j%{jobs}%"]
build: [make "-j%{jobs}%"]
...
...
This diff is collapsed.
Click to expand it.
solutions/ex_04_parallel_add.v
+
2
−
2
View file @
962f2131
...
@@ -100,7 +100,7 @@ Section proof2.
...
@@ -100,7 +100,7 @@ Section proof2.
own
γ
(
●
E
n
)
-∗
own
γ
(
◯
E
m
)
-∗
⌜
n
=
m
⌝.
own
γ
(
●
E
n
)
-∗
own
γ
(
◯
E
m
)
-∗
⌜
n
=
m
⌝.
Proof
.
Proof
.
iIntros
"Hγ● Hγ◯"
.
iIntros
"Hγ● Hγ◯"
.
by
i
Destruct
(
own_valid_2
with
"Hγ● Hγ◯"
)
a
s
%
?
%
excl_auth_agree_L
.
by
i
Combine
"Hγ● Hγ◯"
give
s
%
?
%
excl_auth_agree_L
.
Qed
.
Qed
.
Lemma
ghost_var_update
γ
n'
n
m
:
Lemma
ghost_var_update
γ
n'
n
m
:
...
@@ -203,7 +203,7 @@ Section proof3.
...
@@ -203,7 +203,7 @@ Section proof3.
-
iIntros
(??)
"[Hγ1◯ Hγ2◯] !>"
.
wp_seq
.
-
iIntros
(??)
"[Hγ1◯ Hγ2◯] !>"
.
wp_seq
.
iInv
"Hinv"
as
(
n
)
"(Hr & Hγ●)"
"Hclose"
.
iInv
"Hinv"
as
(
n
)
"(Hr & Hγ●)"
"Hclose"
.
wp_load
.
iCombine
"Hγ1◯ Hγ2◯"
as
"Hγ◯"
.
wp_load
.
iCombine
"Hγ1◯ Hγ2◯"
as
"Hγ◯"
.
i
Destruct
(
own_valid_2
with
"Hγ● Hγ◯"
)
a
s
%->%
frac_auth_agree_L
.
i
Combine
"Hγ● Hγ◯"
give
s
%->%
frac_auth_agree_L
.
iMod
(
"Hclose"
with
"[Hr Hγ●]"
)
as
"_"
.
iMod
(
"Hclose"
with
"[Hr Hγ●]"
)
as
"_"
.
{
iExists
_
.
iFrame
.
}
{
iExists
_
.
iFrame
.
}
by
iApply
"Post"
.
by
iApply
"Post"
.
...
...
This diff is collapsed.
Click to expand it.
solutions/ex_05_parallel_add_mul.v
+
1
−
1
View file @
962f2131
...
@@ -45,7 +45,7 @@ Section proof.
...
@@ -45,7 +45,7 @@ Section proof.
own
γ
(
●
E
b
)
-∗
own
γ
(
◯
E
c
)
-∗
⌜
b
=
c
⌝.
own
γ
(
●
E
b
)
-∗
own
γ
(
◯
E
c
)
-∗
⌜
b
=
c
⌝.
Proof
.
Proof
.
iIntros
"Hγ● Hγ◯"
.
iIntros
"Hγ● Hγ◯"
.
by
i
Destruct
(
own_valid_2
with
"Hγ● Hγ◯"
)
a
s
%<-%
excl_auth_agree_L
.
by
i
Combine
"Hγ● Hγ◯"
give
s
%<-%
excl_auth_agree_L
.
Qed
.
Qed
.
Lemma
ghost_var_update
γ
b'
b
c
:
Lemma
ghost_var_update
γ
b'
b
c
:
...
...
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