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
8912c3d2
Commit
8912c3d2
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
API tweaks
parent
4e205a0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/algebra/lib/gmap_view.v
+3
-3
3 additions, 3 deletions
theories/algebra/lib/gmap_view.v
theories/base_logic/lib/gen_heap.v
+1
-1
1 addition, 1 deletion
theories/base_logic/lib/gen_heap.v
with
4 additions
and
4 deletions
theories/algebra/lib/gmap_view.v
+
3
−
3
View file @
8912c3d2
...
...
@@ -164,7 +164,7 @@ Section lemmas.
Lemma
gmap_view_frag_op
k
dq1
dq2
v
:
gmap_view_frag
k
(
dq1
⋅
dq2
)
v
≡
gmap_view_frag
k
dq1
v
⋅
gmap_view_frag
k
dq2
v
.
Proof
.
rewrite
-
view_frag_op
singleton_op
-
pair_op
agree_idemp
//.
Qed
.
Lemma
gmap_view_frag_
plus
k
q1
q2
v
:
Lemma
gmap_view_frag_
add
k
q1
q2
v
:
gmap_view_frag
k
(
DfracOwn
(
q1
+
q2
))
v
≡
gmap_view_frag
k
(
DfracOwn
q1
)
v
⋅
gmap_view_frag
k
(
DfracOwn
q2
)
v
.
Proof
.
rewrite
-
gmap_view_frag_op
.
done
.
Qed
.
...
...
@@ -262,7 +262,7 @@ Section lemmas.
rewrite
lookup_insert_ne
//.
Qed
.
Lemma
gmap_view_
freeze
k
q
v
:
Lemma
gmap_view_
persist
k
q
v
:
gmap_view_frag
k
(
DfracOwn
q
)
v
~~>
gmap_view_frag
k
DfracDiscarded
v
.
Proof
.
apply
view_update_frag
;
last
first
.
...
...
@@ -291,7 +291,7 @@ Section lemmas.
Qed
.
(** Typeclass instances *)
Global
Instance
gmap_view_frag_core_id
k
v
:
CoreId
(
gmap_view_frag
k
DfracDiscarde
d
v
)
.
Global
Instance
gmap_view_frag_core_id
k
v
:
CoreId
dq
→
CoreId
(
gmap_view_frag
k
d
q
v
)
.
Proof
.
apply
_
.
Qed
.
Global
Instance
gmap_view_cmra_discrete
:
OfeDiscrete
V
→
CmraDiscrete
(
gmap_viewR
K
V
)
.
...
...
This diff is collapsed.
Click to expand it.
theories/base_logic/lib/gen_heap.v
+
1
−
1
View file @
8912c3d2
...
...
@@ -149,7 +149,7 @@ Section gen_heap.
Proof
.
rewrite
mapsto_eq
/
mapsto_def
.
apply
_
.
Qed
.
Global
Instance
mapsto_fractional
l
v
:
Fractional
(
λ
q
,
l
↦
{
q
}
v
)
%
I
.
Proof
.
intros
p
q
.
rewrite
mapsto_eq
/
mapsto_def
-
own_op
gmap_view_frag_
plus
//.
intros
p
q
.
rewrite
mapsto_eq
/
mapsto_def
-
own_op
gmap_view_frag_
add
//.
Qed
.
Global
Instance
mapsto_as_fractional
l
q
v
:
AsFractional
(
l
↦
{
q
}
v
)
(
λ
q
,
l
↦
{
q
}
v
)
%
I
q
.
...
...
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