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
14029845
Verified
Commit
14029845
authored
1 year ago
by
Johannes Hostert
Browse files
Options
Downloads
Patches
Plain Diff
Add law for undiscarding dfracs
parent
35f38b59
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/algebra/dfrac.v
+17
-0
17 additions, 0 deletions
iris/algebra/dfrac.v
with
17 additions
and
0 deletions
iris/algebra/dfrac.v
+
17
−
0
View file @
14029845
...
...
@@ -211,4 +211,21 @@ Section dfrac.
-
apply
cmra_valid_op_r
.
Qed
.
Lemma
dfrac_undiscard_update
:
DfracDiscarded
~~>:
λ
k
,
∃
q
,
k
=
DfracOwn
q
.
Proof
.
apply
cmra_discrete_updateP
.
intros
[[
q'
|
|
q'
]|]
.
-
intros
[
qd
Hqd
]
%
Qp
.
lt_sum
.
exists
(
DfracOwn
(
qd
/
2
)
%
Qp
)
.
split
;
first
by
eexists
.
apply
dfrac_valid_own
.
rewrite
Hqd
Qp
.
add_comm
-
Qp
.
add_le_mono_l
.
by
apply
Qp
.
div_le
.
-
intros
_
.
exists
(
DfracOwn
(
1
/
2
));
split
;
first
by
eexists
.
by
apply
dfrac_valid_own_discarded
.
-
intros
[
qd
Hqd
]
%
Qp
.
lt_sum
.
exists
(
DfracOwn
(
qd
/
2
)
%
Qp
)
.
split
;
first
by
eexists
.
rewrite
/=
/
op
/
valid
/
cmra_op
/
cmra_valid
/=.
rewrite
Hqd
Qp
.
add_comm
-
Qp
.
add_lt_mono_l
.
by
apply
Qp
.
div_lt
.
-
intros
_
.
exists
(
DfracOwn
1
);
split
;
first
by
eexists
.
by
apply
dfrac_valid_own
.
Qed
.
End
dfrac
.
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