Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rice Wine
Iris
Commits
bbc9820d
Commit
bbc9820d
authored
Jun 23, 2016
by
Ralf Jung
Browse files
add some comments explaining design decisions
parent
7e19e1e7
Changes
2
Show whitespace changes
Inline
Side-by-side
algebra/cmra.v
View file @
bbc9820d
...
...
@@ -8,6 +8,11 @@ Instance: Params (@op) 2.
Infix
"⋅"
:
=
op
(
at
level
50
,
left
associativity
)
:
C_scope
.
Notation
"(⋅)"
:
=
op
(
only
parsing
)
:
C_scope
.
(* The inclusion quantifies over [A], not [option A]. This means we do not get
reflexivity. However, if we used [option A], the following would no longer
hold:
x ≼ y ↔ x.1 ≼ y.1 ∧ x.2 ≼ y.2
*)
Definition
included
`
{
Equiv
A
,
Op
A
}
(
x
y
:
A
)
:
=
∃
z
,
y
≡
x
⋅
z
.
Infix
"≼"
:
=
included
(
at
level
70
)
:
C_scope
.
Notation
"(≼)"
:
=
included
(
only
parsing
)
:
C_scope
.
...
...
algebra/updates.v
View file @
bbc9820d
...
...
@@ -10,6 +10,10 @@ Notation "x ~l~> y @ mz" := (local_update mz x y) (at level 70).
Instance
:
Params
(@
local_update
)
1
.
(** * Frame preserving updates *)
(* This quantifies over [option A] for the frame. That is necessary to
make the following hold:
x ~~> P → Some c ~~> Some P
*)
Definition
cmra_updateP
{
A
:
cmraT
}
(
x
:
A
)
(
P
:
A
→
Prop
)
:
=
∀
n
mz
,
✓
{
n
}
(
x
⋅
?
mz
)
→
∃
y
,
P
y
∧
✓
{
n
}
(
y
⋅
?
mz
).
Instance
:
Params
(@
cmra_updateP
)
1
.
...
...
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