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
Yixuan Chen
Iris
Commits
530b9800
Commit
530b9800
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Fix some identation.
parent
92a48e1b
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
algebra/fin_maps.v
+13
-14
13 additions, 14 deletions
algebra/fin_maps.v
with
13 additions
and
14 deletions
algebra/fin_maps.v
+
13
−
14
View file @
530b9800
...
...
@@ -248,22 +248,21 @@ Lemma map_singleton_update i (x y : A) : x ~~> y → {[ i ↦ x ]} ~~> {[ i ↦
Proof
.
apply
map_insert_update
.
Qed
.
Lemma
map_singleton_updateP_empty
`{
Empty
A
,
!
CMRAIdentity
A
}
(
P
:
A
→
Prop
)
(
Q
:
gmap
K
A
→
Prop
)
i
:
(
P
:
A
→
Prop
)
(
Q
:
gmap
K
A
→
Prop
)
i
:
∅
~~>:
P
→
(
∀
y
,
P
y
→
Q
{[
i
↦
y
]})
→
∅
~~>:
Q
.
Proof
.
intros
Hx
HQ
gf
n
Hg
.
destruct
(
Hx
(
default
∅
(
gf
!!
i
)
id
)
n
)
as
(
y
&
?
&
Hy
)
.
{
move
:(
Hg
i
)
.
rewrite
!
left_id
.
case
_:
(
gf
!!
i
);
first
done
.
intros
.
apply
cmra_empty_valid
.
}
exists
{[
i
↦
y
]}
.
split
;
first
by
apply
HQ
.
intros
i'
.
rewrite
lookup_op
.
destruct
(
decide
(
i'
=
i
))
.
-
subst
i'
.
rewrite
lookup_singleton
.
move
:
Hy
.
case
_:
(
gf
!!
i
);
first
done
.
by
rewrite
right_id
.
-
move
:(
Hg
i'
)
.
rewrite
lookup_singleton_ne
//
!
left_id
.
done
.
Proof
.
intros
Hx
HQ
gf
n
Hg
.
destruct
(
Hx
(
from_option
∅
(
gf
!!
i
))
n
)
as
(
y
&
?
&
Hy
)
.
{
move
:(
Hg
i
)
.
rewrite
!
left_id
.
case
_:
(
gf
!!
i
);
simpl
;
auto
using
cmra_empty_valid
.
}
exists
{[
i
↦
y
]};
split
;
first
by
auto
.
intros
i'
;
destruct
(
decide
(
i'
=
i
))
as
[
->
|]
.
-
rewrite
lookup_op
lookup_singleton
.
move
:
Hy
;
case
_:
(
gf
!!
i
);
first
done
.
by
rewrite
right_id
.
-
move
:(
Hg
i'
)
.
by
rewrite
!
lookup_op
lookup_singleton_ne
//
!
left_id
.
Qed
.
Lemma
map_singleton_updateP_empty'
`{
Empty
A
,
!
CMRAIdentity
A
}
(
P
:
A
→
Prop
)
i
:
Lemma
map_singleton_updateP_empty'
`{
Empty
A
,
!
CMRAIdentity
A
}
(
P
:
A
→
Prop
)
i
:
∅
~~>:
P
→
∅
~~>:
λ
m
,
∃
y
,
m
=
{[
i
↦
y
]}
∧
P
y
.
Proof
.
eauto
using
map_singleton_updateP_empty
.
Qed
.
...
...
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