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
edfdba15
Commit
edfdba15
authored
5 years ago
by
Dan Frumin
Committed by
Robbert Krebbers
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add `big_sepL2_swap`
parent
b6b9d739
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/bi/big_op.v
+15
-0
15 additions, 0 deletions
theories/bi/big_op.v
with
15 additions
and
0 deletions
theories/bi/big_op.v
+
15
−
0
View file @
edfdba15
...
@@ -1475,6 +1475,13 @@ Section list2.
...
@@ -1475,6 +1475,13 @@ Section list2.
auto
using
and_mono
,
laterN_intro
.
auto
using
and_mono
,
laterN_intro
.
Qed
.
Qed
.
Lemma
big_sepL2_flip
Φ
l1
l2
:
([
∗
list
]
k
↦
y1
;
y2
∈
l2
;
l1
,
Φ
k
y2
y1
)
⊣⊢
([
∗
list
]
k
↦
y1
;
y2
∈
l1
;
l2
,
Φ
k
y1
y2
)
.
Proof
.
revert
Φ
l2
.
induction
l1
as
[|
x1
l1
IH
]=>
Φ
-
[|
x2
l2
]
//=
;
simplify_eq
.
by
rewrite
IH
.
Qed
.
Global
Instance
big_sepL2_nil_timeless
`{
!
Timeless
(
emp
%
I
:
PROP
)}
Φ
:
Global
Instance
big_sepL2_nil_timeless
`{
!
Timeless
(
emp
%
I
:
PROP
)}
Φ
:
Timeless
([
∗
list
]
k
↦
y1
;
y2
∈
[];
[],
Φ
k
y1
y2
)
.
Timeless
([
∗
list
]
k
↦
y1
;
y2
∈
[];
[],
Φ
k
y1
y2
)
.
Proof
.
simpl
;
apply
_
.
Qed
.
Proof
.
simpl
;
apply
_
.
Qed
.
...
@@ -1541,6 +1548,14 @@ Section gmap2.
...
@@ -1541,6 +1548,14 @@ Section gmap2.
apply
big_sepM2_mono
.
eauto
.
apply
big_sepM2_mono
.
eauto
.
Qed
.
Qed
.
Lemma
big_sepM2_flip
Φ
m1
m2
:
([
∗
map
]
k
↦
y1
;
y2
∈
m2
;
m1
,
Φ
k
y2
y1
)
⊣⊢
([
∗
map
]
k
↦
y1
;
y2
∈
m1
;
m2
,
Φ
k
y1
y2
)
.
Proof
.
rewrite
/
big_sepM2
.
apply
and_proper
;
[
apply
pure_proper
;
naive_solver
|]
.
rewrite
-
map_zip_with_flip
map_zip_with_map_zip
big_sepM_fmap
.
apply
big_sepM_proper
.
by
intros
k
[
b
a
]
.
Qed
.
Global
Instance
big_sepM2_empty_timeless
`{
!
Timeless
(
emp
%
I
:
PROP
)}
Φ
:
Global
Instance
big_sepM2_empty_timeless
`{
!
Timeless
(
emp
%
I
:
PROP
)}
Φ
:
Timeless
([
∗
map
]
k
↦
x1
;
x2
∈
∅
;
∅
,
Φ
k
x1
x2
)
.
Timeless
([
∗
map
]
k
↦
x1
;
x2
∈
∅
;
∅
,
Φ
k
x1
x2
)
.
Proof
.
rewrite
/
big_sepM2
map_zip_with_empty
.
apply
_
.
Qed
.
Proof
.
rewrite
/
big_sepM2
map_zip_with_empty
.
apply
_
.
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