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
ad579807
Commit
ad579807
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
remove _frac_ lemmas, the corresponding _dfrac_ lemmas are sufficient
parent
d7e80d10
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iris/algebra/lib/mono_list.v
+0
-12
0 additions, 12 deletions
iris/algebra/lib/mono_list.v
iris_staging/base_logic/mono_list.v
+2
-2
2 additions, 2 deletions
iris_staging/base_logic/mono_list.v
with
2 additions
and
14 deletions
iris/algebra/lib/mono_list.v
+
0
−
12
View file @
ad579807
...
...
@@ -58,9 +58,6 @@ Section mono_list_props.
rewrite
(
comm
_
(
●
{
dq2
}
_))
-!
assoc
(
assoc
_
(
◯
_))
.
by
rewrite
-
core_id_dup
(
comm
_
(
◯
_))
.
Qed
.
Lemma
mono_list_auth_frac_op
q1
q2
l
:
●
ML
{
#
(
q1
+
q2
)}
l
≡
●
ML
{
#
q1
}
l
⋅
●
ML
{
#
q2
}
l
.
Proof
.
by
rewrite
-
mono_list_auth_dfrac_op
dfrac_op_own
.
Qed
.
Lemma
mono_list_lb_op_l
l1
l2
:
l1
`
prefix_of
`
l2
→
◯
ML
l1
⋅
◯
ML
l2
≡
◯
ML
l2
.
Proof
.
intros
?
.
by
rewrite
/
mono_list_lb
-
auth_frag_op
to_max_prefix_list_op_l
.
Qed
.
...
...
@@ -101,9 +98,6 @@ Section mono_list_props.
-
intros
[?
->
]
.
rewrite
-
core_id_dup
-
auth_auth_dfrac_op
auth_both_dfrac_validN
.
naive_solver
apply
to_max_prefix_list_validN
.
Qed
.
Lemma
mono_list_auth_frac_op_validN
n
q1
q2
l1
l2
:
✓
{
n
}
(
●
ML
{
#
q1
}
l1
⋅
●
ML
{
#
q2
}
l2
)
↔
(
q1
+
q2
≤
1
)
%
Qp
∧
l1
≡
{
n
}
≡
l2
.
Proof
.
by
apply
mono_list_auth_dfrac_op_validN
.
Qed
.
Lemma
mono_list_auth_op_validN
n
l1
l2
:
✓
{
n
}
(
●
ML
l1
⋅
●
ML
l2
)
↔
False
.
Proof
.
rewrite
mono_list_auth_dfrac_op_validN
.
naive_solver
.
Qed
.
...
...
@@ -113,18 +107,12 @@ Section mono_list_props.
rewrite
cmra_valid_validN
equiv_dist
.
setoid_rewrite
mono_list_auth_dfrac_op_validN
.
naive_solver
eauto
using
O
.
Qed
.
Lemma
mono_list_auth_frac_op_valid
q1
q2
l1
l2
:
✓
(
●
ML
{
#
q1
}
l1
⋅
●
ML
{
#
q2
}
l2
)
↔
(
q1
+
q2
≤
1
)
%
Qp
∧
l1
≡
l2
.
Proof
.
by
apply
mono_list_auth_dfrac_op_valid
.
Qed
.
Lemma
mono_list_auth_op_valid
l1
l2
:
✓
(
●
ML
l1
⋅
●
ML
l2
)
↔
False
.
Proof
.
rewrite
mono_list_auth_dfrac_op_valid
.
naive_solver
.
Qed
.
Lemma
mono_list_auth_dfrac_op_valid_L
`{
!
LeibnizEquiv
A
}
dq1
dq2
l1
l2
:
✓
(
●
ML
{
dq1
}
l1
⋅
●
ML
{
dq2
}
l2
)
↔
✓
(
dq1
⋅
dq2
)
∧
l1
=
l2
.
Proof
.
unfold_leibniz
.
apply
mono_list_auth_dfrac_op_valid
.
Qed
.
Lemma
mono_list_auth_frac_op_valid_L
`{
!
LeibnizEquiv
A
}
q1
q2
l1
l2
:
✓
(
●
ML
{
#
q1
}
l1
⋅
●
ML
{
#
q2
}
l2
)
↔
(
q1
+
q2
≤
1
)
%
Qp
∧
l1
=
l2
.
Proof
.
unfold_leibniz
.
apply
mono_list_auth_frac_op_valid
.
Qed
.
Lemma
mono_list_both_dfrac_validN
n
dq
l1
l2
:
✓
{
n
}
(
●
ML
{
dq
}
l1
⋅
◯
ML
l2
)
↔
✓
dq
∧
∃
l
,
l1
≡
{
n
}
≡
l2
++
l
.
...
...
This diff is collapsed.
Click to expand it.
iris_staging/base_logic/mono_list.v
+
2
−
2
View file @
ad579807
...
...
@@ -73,7 +73,7 @@ Section mono_list_own.
Global
Instance
mono_list_auth_own_fractional
γ
l
:
Fractional
(
λ
q
,
mono_list_auth_own
γ
q
l
)
.
Proof
.
unseal
.
intros
p
q
.
by
rewrite
-
own_op
mono_list_auth_frac_op
.
Qed
.
Proof
.
unseal
.
intros
p
q
.
by
rewrite
-
own_op
-
mono_list_auth_
d
frac_op
.
Qed
.
Global
Instance
mono_list_auth_own_as_fractional
γ
q
l
:
AsFractional
(
mono_list_auth_own
γ
q
l
)
(
λ
q
,
mono_list_auth_own
γ
q
l
)
q
.
Proof
.
split
;
[
auto
|
apply
_]
.
Qed
.
...
...
@@ -84,7 +84,7 @@ Section mono_list_own.
⌜
(
q1
+
q2
≤
1
)
%
Qp
∧
l1
=
l2
⌝.
Proof
.
unseal
.
iIntros
"H1 H2"
.
by
iDestruct
(
own_valid_2
with
"H1 H2"
)
as
%
?
%
mono_list_auth_frac_op_valid_L
.
by
iDestruct
(
own_valid_2
with
"H1 H2"
)
as
%
?
%
mono_list_auth_
d
frac_op_valid_L
.
Qed
.
Lemma
mono_list_auth_own_exclusive
γ
l1
l2
:
mono_list_auth_own
γ
1
l1
-∗
mono_list_auth_own
γ
1
l2
-∗
False
.
...
...
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