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
Gaëtan Gilbert
Iris
Commits
e29ce6f1
Commit
e29ce6f1
authored
3 years ago
by
Ralf Jung
Committed by
Robbert Krebbers
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
make cmra_update a rewritable relation
parent
22823e07
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iris/algebra/lib/gmap_view.v
+4
-5
4 additions, 5 deletions
iris/algebra/lib/gmap_view.v
iris/algebra/updates.v
+1
-0
1 addition, 0 deletions
iris/algebra/updates.v
with
5 additions
and
5 deletions
iris/algebra/lib/gmap_view.v
+
4
−
5
View file @
e29ce6f1
...
...
@@ -331,7 +331,7 @@ Section lemmas.
Proof
.
intros
.
induction
m'
as
[|
k
v
m'
?
IH
]
using
map_ind
;
decompose_map_disjoint
.
{
rewrite
big_opM_empty
left_id_L
right_id
.
done
.
}
etrans
;
first
by
apply
IH
.
rewrite
IH
//
.
rewrite
big_opM_insert
//
assoc
.
apply
cmra_update_op
;
last
done
.
rewrite
-
insert_union_l
.
apply
(
gmap_view_alloc
_
k
dq
);
last
done
.
...
...
@@ -370,10 +370,9 @@ Section lemmas.
gmap_view_auth
1
m
⋅
gmap_view_frag
k
(
DfracOwn
1
)
v
~~>
gmap_view_auth
1
(
<
[
k
:=
v'
]
>
m
)
⋅
gmap_view_frag
k
(
DfracOwn
1
)
v'
.
Proof
.
etrans
;
first
by
eapply
gmap_view_delete
.
etrans
.
-
eapply
(
gmap_view_alloc
_
k
(
DfracOwn
1
)
v'
);
last
done
.
rewrite
lookup_delete
//.
-
rewrite
insert_delete
.
done
.
rewrite
gmap_view_delete
.
rewrite
(
gmap_view_alloc
_
k
(
DfracOwn
1
)
v'
)
//
;
last
by
rewrite
lookup_delete
.
rewrite
insert_delete
//.
Qed
.
Lemma
gmap_view_update_big
m
m0
m1
:
...
...
This diff is collapsed.
Click to expand it.
iris/algebra/updates.v
+
1
−
0
View file @
e29ce6f1
...
...
@@ -59,6 +59,7 @@ Proof.
-
intros
x
y
z
.
rewrite
!
cmra_update_updateP
.
eauto
using
cmra_updateP_compose
with
subst
.
Qed
.
Global
Instance
cmra_update_rewrite_relation
:
RewriteRelation
(
@
cmra_update
A
)
:=
{}
.
Lemma
cmra_updateP_op
(
P1
P2
Q
:
A
→
Prop
)
x1
x2
:
x1
~~>:
P1
→
x2
~~>:
P2
→
(
∀
y1
y2
,
P1
y1
→
P2
y2
→
Q
(
y1
⋅
y2
))
→
...
...
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