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
3cfa392b
Commit
3cfa392b
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
`IsOp` instance for singleton map.
parent
032ee4a5
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
theories/algebra/gmap.v
+4
-0
4 additions, 0 deletions
theories/algebra/gmap.v
with
4 additions
and
0 deletions
theories/algebra/gmap.v
+
4
−
0
View file @
3cfa392b
...
...
@@ -2,6 +2,7 @@ From iris.algebra Require Export cmra.
From
stdpp
Require
Export
gmap
.
From
iris
.
algebra
Require
Import
updates
local_updates
.
From
iris
.
base_logic
Require
Import
base_logic
.
From
iris
.
algebra
Require
Import
proofmode_classes
.
Set
Default
Proof
Using
"Type"
.
Section
cofe
.
...
...
@@ -236,6 +237,9 @@ Qed.
Lemma
op_singleton
(
i
:
K
)
(
x
y
:
A
)
:
{[
i
:=
x
]}
⋅
{[
i
:=
y
]}
=
({[
i
:=
x
⋅
y
]}
:
gmap
K
A
)
.
Proof
.
by
apply
(
merge_singleton
_
_
_
x
y
)
.
Qed
.
Global
Instance
is_op_singleton
i
a
a1
a2
:
IsOp
a
a1
a2
→
IsOp'
({[
i
:=
a
]}
:
gmap
K
A
)
{[
i
:=
a1
]}
{[
i
:=
a2
]}
.
Proof
.
rewrite
/
IsOp'
/
IsOp
=>
->
.
by
rewrite
-
op_singleton
.
Qed
.
Global
Instance
gmap_core_id
m
:
(
∀
x
:
A
,
CoreId
x
)
→
CoreId
m
.
Proof
.
...
...
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