Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
POPL20 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
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
POPL20 Iris Tutorial
Commits
3a07f8f1
Commit
3a07f8f1
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
update dependencies
parent
b2a159cb
No related branches found
No related tags found
No related merge requests found
Pipeline
#86990
failed
1 year ago
Stage: build
Changes
4
Pipelines
97
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
coq-tutorial-popl20.opam
+1
-1
1 addition, 1 deletion
coq-tutorial-popl20.opam
exercises/symbol_ghost.v
+2
-2
2 additions, 2 deletions
exercises/symbol_ghost.v
solutions/parametricity.v
+1
-1
1 addition, 1 deletion
solutions/parametricity.v
solutions/symbol_ghost.v
+2
-2
2 additions, 2 deletions
solutions/symbol_ghost.v
with
6 additions
and
6 deletions
coq-tutorial-popl20.opam
+
1
−
1
View file @
3a07f8f1
...
@@ -8,7 +8,7 @@ dev-repo: "git+https://gitlab.mpi-sws.org/iris/tutorial-popl20.git"
...
@@ -8,7 +8,7 @@ dev-repo: "git+https://gitlab.mpi-sws.org/iris/tutorial-popl20.git"
synopsis: "The Iris tutorial at POPL 2020"
synopsis: "The Iris tutorial at POPL 2020"
depends: [
depends: [
"coq-iris-heap-lang" { (= "dev.2023-05-0
2.4.943e9b74
") | (= "dev") }
"coq-iris-heap-lang" { (= "dev.2023-05-0
3.3.85295b18
") | (= "dev") }
]
]
build: [make "-j%{jobs}%"]
build: [make "-j%{jobs}%"]
...
...
This diff is collapsed.
Click to expand it.
exercises/symbol_ghost.v
+
2
−
2
View file @
3a07f8f1
...
@@ -44,13 +44,13 @@ Section symbol_ghost.
...
@@ -44,13 +44,13 @@ Section symbol_ghost.
Lemma
counter_exclusive
γ
n1
n2
:
counter
γ
n1
-∗
counter
γ
n2
-∗
False
.
Lemma
counter_exclusive
γ
n1
n2
:
counter
γ
n1
-∗
counter
γ
n2
-∗
False
.
Proof
.
Proof
.
apply
bi
.
wand_intro_r
.
rewrite
-
own_op
own_valid
/=.
by
iDestruct
1
as
%
[]
.
apply
bi
.
entails_wand
,
bi
.
wand_intro_r
.
rewrite
-
own_op
own_valid
/=.
by
iDestruct
1
as
%
[]
.
Qed
.
Qed
.
Lemma
counter_inc
γ
n
:
counter
γ
n
==∗
counter
γ
(
S
n
)
∗
symbol
γ
n
.
Lemma
counter_inc
γ
n
:
counter
γ
n
==∗
counter
γ
(
S
n
)
∗
symbol
γ
n
.
Proof
.
Proof
.
rewrite
-
own_op
.
rewrite
-
own_op
.
apply
own_update
,
auth_update_alloc
,
max_nat_local_update
.
apply
bi
.
entails_wand
,
own_update
,
auth_update_alloc
,
max_nat_local_update
.
simpl
.
lia
.
simpl
.
lia
.
Qed
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
solutions/parametricity.v
+
1
−
1
View file @
3a07f8f1
...
@@ -102,7 +102,7 @@ Section parametricity.
...
@@ -102,7 +102,7 @@ Section parametricity.
intros
He
.
intros
He
.
apply
(
sem_gen_type_safety
_
_
φ
)=>
?
.
apply
(
sem_gen_type_safety
_
_
φ
)=>
?
.
set
(
T
:=
SemTy
(
λ
w
,
⌜
φ
w
⌝
)
%
I
:
sem_ty
Σ
)
.
set
(
T
:=
SemTy
(
λ
w
,
⌜
φ
w
⌝
)
%
I
:
sem_ty
Σ
)
.
exists
T
.
split
;
first
done
.
exists
T
.
split
;
first
by
auto
.
specialize
(
He
_)
as
(
Φ
&
He
&
Hvf
&
Hvz
&
Hφ
)
.
specialize
(
He
_)
as
(
Φ
&
He
&
Hvf
&
Hvz
&
Hφ
)
.
iIntros
(
vs
)
"!# #Hvs"
.
iIntros
(
vs
)
"!# #Hvs"
.
iPoseProof
(
He
with
"Hvs"
)
as
"He /="
.
iPoseProof
(
He
with
"Hvs"
)
as
"He /="
.
...
...
This diff is collapsed.
Click to expand it.
solutions/symbol_ghost.v
+
2
−
2
View file @
3a07f8f1
...
@@ -44,13 +44,13 @@ Section symbol_ghost.
...
@@ -44,13 +44,13 @@ Section symbol_ghost.
Lemma
counter_exclusive
γ
n1
n2
:
counter
γ
n1
-∗
counter
γ
n2
-∗
False
.
Lemma
counter_exclusive
γ
n1
n2
:
counter
γ
n1
-∗
counter
γ
n2
-∗
False
.
Proof
.
Proof
.
apply
bi
.
wand_intro_r
.
rewrite
-
own_op
own_valid
/=.
by
iDestruct
1
as
%
[]
.
apply
bi
.
entails_wand
,
bi
.
wand_intro_r
.
rewrite
-
own_op
own_valid
/=.
by
iDestruct
1
as
%
[]
.
Qed
.
Qed
.
Lemma
counter_inc
γ
n
:
counter
γ
n
==∗
counter
γ
(
S
n
)
∗
symbol
γ
n
.
Lemma
counter_inc
γ
n
:
counter
γ
n
==∗
counter
γ
(
S
n
)
∗
symbol
γ
n
.
Proof
.
Proof
.
rewrite
-
own_op
.
rewrite
-
own_op
.
apply
own_update
,
auth_update_alloc
,
max_nat_local_update
.
apply
bi
.
entails_wand
,
own_update
,
auth_update_alloc
,
max_nat_local_update
.
simpl
.
lia
.
simpl
.
lia
.
Qed
.
Qed
.
...
...
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