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
59032a59
Commit
59032a59
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
update dependencies
parent
8cc7ab39
No related branches found
No related tags found
No related merge requests found
Pipeline
#74123
passed
2 years ago
Stage: build
Changes
2
Pipelines
46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coq-iris-examples.opam
+1
-1
1 addition, 1 deletion
coq-iris-examples.opam
theories/locks/freeable_lock/freeable_logatom_lock.v
+0
-30
0 additions, 30 deletions
theories/locks/freeable_lock/freeable_logatom_lock.v
with
1 addition
and
31 deletions
coq-iris-examples.opam
+
1
−
1
View file @
59032a59
...
@@ -8,7 +8,7 @@ dev-repo: "git+https://gitlab.mpi-sws.org/iris/examples.git"
...
@@ -8,7 +8,7 @@ dev-repo: "git+https://gitlab.mpi-sws.org/iris/examples.git"
synopsis: "A collection of case studies for Iris -- not meant to be used as a dependency of anything"
synopsis: "A collection of case studies for Iris -- not meant to be used as a dependency of anything"
depends: [
depends: [
"coq-iris-heap-lang" { (= "dev.2022-0
8-16.2.a58395f1
") | (= "dev") }
"coq-iris-heap-lang" { (= "dev.2022-0
9-25.0.ce054a47
") | (= "dev") }
"coq-autosubst" { = "dev" }
"coq-autosubst" { = "dev" }
]
]
...
...
This diff is collapsed.
Click to expand it.
theories/locks/freeable_lock/freeable_logatom_lock.v
+
0
−
30
View file @
59032a59
...
@@ -15,36 +15,6 @@ From iris.heap_lang Require Import proofmode notation.
...
@@ -15,36 +15,6 @@ From iris.heap_lang Require Import proofmode notation.
From
iris_examples
.
locks
Require
Import
freeable_lock
.
From
iris_examples
.
locks
Require
Import
freeable_lock
.
From
iris
.
prelude
Require
Import
options
.
From
iris
.
prelude
Require
Import
options
.
(* TODO move to std++ *)
Section
theorems
.
Context
`{
FinMap
K
M
}
.
Lemma
map_fold_delete
{
A
B
}
(
R
:
relation
B
)
`{
!
PreOrder
R
}
(
f
:
K
→
A
→
B
→
B
)
(
b
:
B
)
(
i
:
K
)
(
x
:
A
)
(
m
:
M
A
)
:
(
∀
j
z
,
Proper
(
R
==>
R
)
(
f
j
z
))
→
(
∀
j1
j2
z1
z2
y
,
j1
≠
j2
→
<
[
i
:=
x
]
>
m
!!
j1
=
Some
z1
→
<
[
i
:=
x
]
>
m
!!
j2
=
Some
z2
→
R
(
f
j1
z1
(
f
j2
z2
y
))
(
f
j2
z2
(
f
j1
z1
y
)))
→
m
!!
i
=
Some
x
→
R
(
map_fold
f
b
m
)
(
f
i
x
(
map_fold
f
b
(
delete
i
m
)))
.
Proof
using
Type
*.
intros
Hf_proper
Hf
Hi
.
rewrite
<-
map_fold_insert
;
[|
done
|
done
|
|]
.
-
rewrite
insert_delete
;
done
.
-
intros
j1
j2
????
.
rewrite
insert_delete_insert
.
auto
.
-
rewrite
lookup_delete
.
done
.
Qed
.
Lemma
map_fold_delete_L
{
A
B
}
(
f
:
K
→
A
→
B
→
B
)
(
b
:
B
)
(
i
:
K
)
(
x
:
A
)
(
m
:
M
A
)
:
(
∀
j1
j2
z1
z2
y
,
j1
≠
j2
→
<
[
i
:=
x
]
>
m
!!
j1
=
Some
z1
→
<
[
i
:=
x
]
>
m
!!
j2
=
Some
z2
→
f
j1
z1
(
f
j2
z2
y
)
=
f
j2
z2
(
f
j1
z1
y
))
→
m
!!
i
=
Some
x
→
map_fold
f
b
m
=
f
i
x
(
map_fold
f
b
(
delete
i
m
))
.
Proof
using
Type
*.
apply
map_fold_delete
;
apply
_
.
Qed
.
End
theorems
.
Inductive
state
:=
Free
|
Locked
.
Inductive
state
:=
Free
|
Locked
.
Class
lockG
Σ
:=
LockG
{
Class
lockG
Σ
:=
LockG
{
...
...
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