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
Terraform modules
Monitor
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
William Mansky
Iris
Commits
c93f40ad
Commit
c93f40ad
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add lemmas for core of auth⋅frag in view and auth
parent
f89a452d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iris/algebra/auth.v
+7
-0
7 additions, 0 deletions
iris/algebra/auth.v
iris/algebra/view.v
+16
-0
16 additions, 0 deletions
iris/algebra/view.v
with
23 additions
and
0 deletions
iris/algebra/auth.v
+
7
−
0
View file @
c93f40ad
...
...
@@ -130,6 +130,13 @@ Section auth.
Proof
.
apply
view_frag_mono
.
Qed
.
Lemma
auth_frag_core
a
:
core
(
◯
a
)
=
◯
(
core
a
)
.
Proof
.
apply
view_frag_core
.
Qed
.
Lemma
auth_both_core_discarded
a
b
:
core
(
●
{
DfracDiscarded
}
a
⋅
◯
b
)
≡
●
{
DfracDiscarded
}
a
⋅
◯
(
core
b
)
.
Proof
.
apply
view_both_core_discarded
.
Qed
.
Lemma
auth_both_core_frac
q
a
b
:
core
(
●
{
#
q
}
a
⋅
◯
b
)
≡
◯
(
core
b
)
.
Proof
.
apply
view_both_core_frac
.
Qed
.
Global
Instance
auth_auth_core_id
a
:
CoreId
(
●□
a
)
.
Proof
.
rewrite
/
auth_auth
.
apply
_
.
Qed
.
Global
Instance
auth_frag_core_id
a
:
CoreId
a
→
CoreId
(
◯
a
)
.
...
...
This diff is collapsed.
Click to expand it.
iris/algebra/view.v
+
16
−
0
View file @
c93f40ad
...
...
@@ -209,6 +209,15 @@ Section cmra.
|
Some
(
dq
,
ag
)
=>
✓
{
n
}
dq
∧
∃
a
,
ag
≡
{
n
}
≡
to_agree
a
∧
rel
n
a
(
view_frag_proj
x
)
|
None
=>
∃
a
,
rel
n
a
(
view_frag_proj
x
)
end
:=
eq_refl
_
.
Local
Definition
view_pcore_eq
:
pcore
=
λ
x
,
Some
(
View
(
core
(
view_auth_proj
x
))
(
core
(
view_frag_proj
x
)))
:=
eq_refl
_
.
Local
Definition
view_core_eq
:
core
=
λ
x
,
View
(
core
(
view_auth_proj
x
))
(
core
(
view_frag_proj
x
))
:=
eq_refl
_
.
Local
Definition
view_op_eq
:
op
=
λ
x
y
,
View
(
view_auth_proj
x
⋅
view_auth_proj
y
)
(
view_frag_proj
x
⋅
view_frag_proj
y
)
:=
eq_refl
_
.
Lemma
view_cmra_mixin
:
CmraMixin
(
view
rel
)
.
Proof
.
...
...
@@ -285,6 +294,13 @@ Section cmra.
Proof
.
intros
[
c
->
]
.
rewrite
view_frag_op
.
apply
cmra_included_l
.
Qed
.
Lemma
view_frag_core
b
:
core
(
◯
V
b
)
=
◯
V
(
core
b
)
.
Proof
.
done
.
Qed
.
Lemma
view_both_core_discarded
a
b
:
core
(
●
V
{
DfracDiscarded
}
a
⋅
◯
V
b
)
≡
●
V
{
DfracDiscarded
}
a
⋅
◯
V
(
core
b
)
.
Proof
.
rewrite
view_core_eq
view_op_eq
/=
!
left_id
//.
Qed
.
Lemma
view_both_core_frac
q
a
b
:
core
(
●
V
{
#
q
}
a
⋅
◯
V
b
)
≡
◯
V
(
core
b
)
.
Proof
.
rewrite
view_core_eq
view_op_eq
/=
!
left_id
//.
Qed
.
Global
Instance
view_auth_core_id
a
:
CoreId
(
●
V
□
a
)
.
Proof
.
do
2
constructor
;
simpl
;
auto
.
apply
:
core_id_core
.
Qed
.
Global
Instance
view_frag_core_id
b
:
CoreId
b
→
CoreId
(
◯
V
b
)
.
...
...
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