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
Pierre Roux
Iris
Commits
81dbcab9
Commit
81dbcab9
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
shorter proof by Robbert
parent
100690d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/algebra/lib/gmap_view.v
+7
-16
7 additions, 16 deletions
iris/algebra/lib/gmap_view.v
with
7 additions
and
16 deletions
iris/algebra/lib/gmap_view.v
+
7
−
16
View file @
81dbcab9
...
...
@@ -329,22 +329,13 @@ Section lemmas.
gmap_view_auth
1
m
~~>
gmap_view_auth
1
(
m'
∪
m
)
⋅
([
^
op
map
]
k
↦
v
∈
m'
,
gmap_view_frag
k
dq
v
)
.
Proof
.
revert
m
.
induction
m'
as
[|
k
v
m'
]
using
map_ind
.
{
intros
m
_
.
rewrite
big_opM_empty
left_id
right_id
.
done
.
}
intros
m
Hdisj
.
etrans
.
{
apply
IHm'
;
last
done
.
eapply
map_disjoint_weaken_l
;
first
done
.
apply
insert_subseteq
.
done
.
}
etrans
.
-
eapply
cmra_update_op
;
last
reflexivity
.
eapply
(
gmap_view_alloc
_
k
dq
);
last
done
.
apply
lookup_union_None
.
split
;
first
done
.
eapply
map_disjoint_Some_l
;
first
done
.
rewrite
lookup_insert
.
done
.
-
(* Turn goal into "L ≡ R". *)
eapply
cmra_update_proper
;
[
reflexivity
|
|
reflexivity
]
.
rewrite
-
assoc
.
f_equiv
.
+
rewrite
insert_union_l
.
done
.
+
rewrite
big_opM_insert
;
last
done
.
done
.
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
big_opM_insert
//
assoc
.
apply
cmra_update_op
;
last
done
.
rewrite
-
insert_union_l
.
apply
(
gmap_view_alloc
_
k
dq
);
last
done
.
by
apply
lookup_union_None
.
Qed
.
Lemma
gmap_view_delete
m
k
v
:
...
...
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