Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Paolo G. Giarrusso
iris
Commits
41e81796
Commit
41e81796
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
remove _frac_ lemmas, the corresponding _dfrac_ lemmas are sufficient
parent
1503fb75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iris/algebra/lib/mono_nat.v
+0
-6
0 additions, 6 deletions
iris/algebra/lib/mono_nat.v
iris/base_logic/lib/mono_nat.v
+1
-1
1 addition, 1 deletion
iris/base_logic/lib/mono_nat.v
with
1 addition
and
7 deletions
iris/algebra/lib/mono_nat.v
+
0
−
6
View file @
41e81796
...
...
@@ -40,9 +40,6 @@ Section mono_nat.
rewrite
(
comm
_
(
●
{
dq2
}
_))
-!
assoc
(
assoc
_
(
◯
_))
.
by
rewrite
-
core_id_dup
(
comm
_
(
◯
_))
.
Qed
.
Lemma
mono_nat_auth_frac_op
q1
q2
n
:
●
MN
{
#
(
q1
+
q2
)}
n
≡
●
MN
{
#
q1
}
n
⋅
●
MN
{
#
q2
}
n
.
Proof
.
by
rewrite
-
mono_nat_auth_dfrac_op
dfrac_op_own
.
Qed
.
Lemma
mono_nat_lb_op
n1
n2
:
◯
MN
(
n1
`
max
`
n2
)
=
◯
MN
n1
⋅
◯
MN
n2
.
...
...
@@ -79,9 +76,6 @@ Section mono_nat.
-
intros
[?
->
]
.
rewrite
-
core_id_dup
-
auth_auth_dfrac_op
.
by
apply
auth_both_dfrac_valid_discrete
.
Qed
.
Lemma
mono_nat_auth_frac_op_valid
q1
q2
n1
n2
:
✓
(
●
MN
{
#
q1
}
n1
⋅
●
MN
{
#
q2
}
n2
)
↔
(
q1
+
q2
≤
1
)
%
Qp
∧
n1
=
n2
.
Proof
.
by
apply
mono_nat_auth_dfrac_op_valid
.
Qed
.
Lemma
mono_nat_auth_op_valid
n1
n2
:
✓
(
●
MN
n1
⋅
●
MN
n2
)
↔
False
.
Proof
.
rewrite
mono_nat_auth_dfrac_op_valid
.
naive_solver
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
iris/base_logic/lib/mono_nat.v
+
1
−
1
View file @
41e81796
...
...
@@ -53,7 +53,7 @@ Section mono_nat.
Global
Instance
mono_nat_auth_own_fractional
γ
n
:
Fractional
(
λ
q
,
mono_nat_auth_own
γ
q
n
)
.
Proof
.
unseal
.
intros
p
q
.
rewrite
-
own_op
mono_nat_auth_frac_op
//.
Qed
.
Proof
.
unseal
.
intros
p
q
.
rewrite
-
own_op
-
mono_nat_auth_
d
frac_op
//.
Qed
.
Global
Instance
mono_nat_auth_own_as_fractional
γ
q
n
:
AsFractional
(
mono_nat_auth_own
γ
q
n
)
(
λ
q
,
mono_nat_auth_own
γ
q
n
)
q
.
Proof
.
split
;
[
auto
|
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