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
9d3af5f2
Commit
9d3af5f2
authored
1 year ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add more option-included lemmas
parent
621d76cf
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/cmra.v
+21
-0
21 additions, 0 deletions
iris/algebra/cmra.v
with
21 additions
and
0 deletions
iris/algebra/cmra.v
+
21
−
0
View file @
9d3af5f2
...
...
@@ -1519,6 +1519,8 @@ Section option.
Proof
.
rewrite
Some_includedN
.
auto
.
Qed
.
Lemma
Some_includedN_mono
n
a
b
:
a
≼
{
n
}
b
→
Some
a
≼
{
n
}
Some
b
.
Proof
.
rewrite
Some_includedN
.
auto
.
Qed
.
Lemma
Some_includedN_refl
n
a
b
:
a
≡
{
n
}
≡
b
→
Some
a
≼
{
n
}
Some
b
.
Proof
.
rewrite
Some_includedN
.
auto
.
Qed
.
Lemma
Some_includedN_is_Some
n
x
mb
:
Some
x
≼
{
n
}
mb
→
is_Some
mb
.
Proof
.
rewrite
option_includedN
.
naive_solver
.
Qed
.
...
...
@@ -1530,6 +1532,8 @@ Section option.
Proof
.
rewrite
Some_included
.
auto
.
Qed
.
Lemma
Some_included_mono
a
b
:
a
≼
b
→
Some
a
≼
Some
b
.
Proof
.
rewrite
Some_included
.
auto
.
Qed
.
Lemma
Some_included_refl
a
b
:
a
≡
b
→
Some
a
≼
Some
b
.
Proof
.
rewrite
Some_included
.
auto
.
Qed
.
Lemma
Some_included_is_Some
x
mb
:
Some
x
≼
mb
→
is_Some
mb
.
Proof
.
rewrite
option_included
.
naive_solver
.
Qed
.
...
...
@@ -1542,6 +1546,11 @@ Section option.
rewrite
/
included
.
f_equiv
=>
mc
.
by
rewrite
-
(
inj_iff
Some
b
)
Some_op_opM
.
Qed
.
Lemma
Some_validN_includedN
n
a
b
:
✓
{
n
}
a
→
Some
b
≼
{
n
}
Some
a
→
✓
{
n
}
b
.
Proof
.
apply
:
(
cmra_validN_includedN
_
(
Some
_)
(
Some
_))
.
Qed
.
Lemma
Some_valid_included
a
b
:
✓
a
→
Some
b
≼
Some
a
→
✓
b
.
Proof
.
apply
:
(
cmra_valid_included
(
Some
_)
(
Some
_))
.
Qed
.
Lemma
Some_includedN_total
`{
!
CmraTotal
A
}
n
a
b
:
Some
a
≼
{
n
}
Some
b
↔
a
≼
{
n
}
b
.
Proof
.
rewrite
Some_includedN
.
split
;
[|
by
eauto
]
.
by
intros
[
->
|?]
.
Qed
.
Lemma
Some_included_total
`{
!
CmraTotal
A
}
a
b
:
Some
a
≼
Some
b
↔
a
≼
b
.
...
...
@@ -1587,6 +1596,12 @@ Section option_prod.
Lemma
Some_pair_includedN
n
a1
a2
b1
b2
:
Some
(
a1
,
b1
)
≼
{
n
}
Some
(
a2
,
b2
)
→
Some
a1
≼
{
n
}
Some
a2
∧
Some
b1
≼
{
n
}
Some
b2
.
Proof
.
rewrite
!
Some_includedN
.
intros
[[??]|[??]
%
prod_includedN
];
eauto
.
Qed
.
Lemma
Some_pair_includedN_l
n
a1
a2
b1
b2
:
Some
(
a1
,
b1
)
≼
{
n
}
Some
(
a2
,
b2
)
→
Some
a1
≼
{
n
}
Some
a2
.
Proof
.
intros
.
eapply
Some_pair_includedN
.
done
.
Qed
.
Lemma
Some_pair_includedN_r
n
a1
a2
b1
b2
:
Some
(
a1
,
b1
)
≼
{
n
}
Some
(
a2
,
b2
)
→
Some
b1
≼
{
n
}
Some
b2
.
Proof
.
intros
.
eapply
Some_pair_includedN
.
done
.
Qed
.
Lemma
Some_pair_includedN_total_1
`{
CmraTotal
A
}
n
a1
a2
b1
b2
:
Some
(
a1
,
b1
)
≼
{
n
}
Some
(
a2
,
b2
)
→
a1
≼
{
n
}
a2
∧
Some
b1
≼
{
n
}
Some
b2
.
Proof
.
intros
?
%
Some_pair_includedN
.
by
rewrite
-
(
Some_includedN_total
_
a1
)
.
Qed
.
...
...
@@ -1597,6 +1612,12 @@ Section option_prod.
Lemma
Some_pair_included
a1
a2
b1
b2
:
Some
(
a1
,
b1
)
≼
Some
(
a2
,
b2
)
→
Some
a1
≼
Some
a2
∧
Some
b1
≼
Some
b2
.
Proof
.
rewrite
!
Some_included
.
intros
[[??]|[??]
%
prod_included
];
eauto
.
Qed
.
Lemma
Some_pair_included_l
a1
a2
b1
b2
:
Some
(
a1
,
b1
)
≼
Some
(
a2
,
b2
)
→
Some
a1
≼
Some
a2
.
Proof
.
intros
.
eapply
Some_pair_included
.
done
.
Qed
.
Lemma
Some_pair_included_r
a1
a2
b1
b2
:
Some
(
a1
,
b1
)
≼
Some
(
a2
,
b2
)
→
Some
b1
≼
Some
b2
.
Proof
.
intros
.
eapply
Some_pair_included
.
done
.
Qed
.
Lemma
Some_pair_included_total_1
`{
CmraTotal
A
}
a1
a2
b1
b2
:
Some
(
a1
,
b1
)
≼
Some
(
a2
,
b2
)
→
a1
≼
a2
∧
Some
b1
≼
Some
b2
.
Proof
.
intros
?
%
Some_pair_included
.
by
rewrite
-
(
Some_included_total
a1
)
.
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