Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Ike Mulder
Iris
Commits
d8f499d5
Commit
d8f499d5
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Overload ⊥ in uPred_scope.
parent
6da6e6b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algebra/upred.v
+1
-0
1 addition, 0 deletions
algebra/upred.v
heap_lang/lib/lock.v
+2
-2
2 additions, 2 deletions
heap_lang/lib/lock.v
heap_lang/lib/spawn.v
+2
-2
2 additions, 2 deletions
heap_lang/lib/spawn.v
with
5 additions
and
4 deletions
algebra/upred.v
+
1
−
0
View file @
d8f499d5
...
...
@@ -276,6 +276,7 @@ Notation "(⊣⊢)" := (equiv (A:=uPred _)) (only parsing) : C_scope.
Notation
"■ φ"
:=
(
uPred_const
φ
%
C
%
type
)
(
at
level
20
,
right
associativity
)
:
uPred_scope
.
Notation
"x = y"
:=
(
uPred_const
(
x
%
C
%
type
=
y
%
C
%
type
))
:
uPred_scope
.
Notation
"x ⊥ y"
:=
(
uPred_const
(
x
%
C
%
type
⊥
y
%
C
%
type
))
:
uPred_scope
.
Notation
"'False'"
:=
(
uPred_const
False
)
:
uPred_scope
.
Notation
"'True'"
:=
(
uPred_const
True
)
:
uPred_scope
.
Infix
"∧"
:=
uPred_and
:
uPred_scope
.
...
...
This diff is collapsed.
Click to expand it.
heap_lang/lib/lock.v
+
2
−
2
View file @
d8f499d5
...
...
@@ -24,10 +24,10 @@ Definition lock_inv (γ : gname) (l : loc) (R : iProp) : iProp :=
(
∃
b
:
bool
,
l
↦
#
b
★
if
b
then
True
else
own
γ
(
Excl
())
★
R
)
%
I
.
Definition
is_lock
(
l
:
loc
)
(
R
:
iProp
)
:
iProp
:=
(
∃
N
γ
,
■
(
heapN
⊥
N
)
∧
heap_ctx
heapN
∧
inv
N
(
lock_inv
γ
l
R
))
%
I
.
(
∃
N
γ
,
heapN
⊥
N
∧
heap_ctx
heapN
∧
inv
N
(
lock_inv
γ
l
R
))
%
I
.
Definition
locked
(
l
:
loc
)
(
R
:
iProp
)
:
iProp
:=
(
∃
N
γ
,
■
(
heapN
⊥
N
)
∧
heap_ctx
heapN
∧
(
∃
N
γ
,
heapN
⊥
N
∧
heap_ctx
heapN
∧
inv
N
(
lock_inv
γ
l
R
)
∧
own
γ
(
Excl
()))
%
I
.
Global
Instance
lock_inv_ne
n
γ
l
:
Proper
(
dist
n
==>
dist
n
)
(
lock_inv
γ
l
)
.
...
...
This diff is collapsed.
Click to expand it.
heap_lang/lib/spawn.v
+
2
−
2
View file @
d8f499d5
...
...
@@ -37,8 +37,8 @@ Definition spawn_inv (γ : gname) (l : loc) (Ψ : val → iProp) : iProp :=
∃
v
,
lv
=
InjRV
v
★
(
Ψ
v
∨
own
γ
(
Excl
()))))
%
I
.
Definition
join_handle
(
l
:
loc
)
(
Ψ
:
val
→
iProp
)
:
iProp
:=
(
■
(
heapN
⊥
N
)
★
∃
γ
,
heap_ctx
heapN
★
own
γ
(
Excl
())
★
inv
N
(
spawn_inv
γ
l
Ψ
))
%
I
.
(
heapN
⊥
N
★
∃
γ
,
heap_ctx
heapN
★
own
γ
(
Excl
())
★
inv
N
(
spawn_inv
γ
l
Ψ
))
%
I
.
Typeclasses
Opaque
join_handle
.
...
...
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