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
e4980084
Commit
e4980084
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
generalize dfrac IsOp instance
parent
b23feb70
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/algebra/dfrac.v
+5
-3
5 additions, 3 deletions
theories/algebra/dfrac.v
with
5 additions
and
3 deletions
theories/algebra/dfrac.v
+
5
−
3
View file @
e4980084
...
...
@@ -19,7 +19,7 @@
that no one can own 1. And, since discarding is an irreversible operation,
it also implies that no one can own 1 in the future *)
From
Coq
.
QArith
Require
Import
Qcanon
.
From
iris
.
algebra
Require
Ex
port
cmra
proofmode_classes
updates
.
From
iris
.
algebra
Require
Im
port
cmra
proofmode_classes
updates
frac
.
From
iris
Require
Import
options
.
(** An element of dfrac denotes ownership of a fraction, knowledge that a
...
...
@@ -162,8 +162,10 @@ Section dfrac.
✓
(
DfracOwn
q
⋅
DfracDiscarded
)
↔
(
q
<
1
%
Qp
)
%
Qc
.
Proof
.
done
.
Qed
.
Global
Instance
is_op_frac
q
:
IsOp'
(
DfracOwn
q
)
(
DfracOwn
(
q
/
2
))
(
DfracOwn
(
q
/
2
))
.
Proof
.
by
rewrite
/
IsOp'
/
IsOp
dfrac_op_own
Qp_div_2
.
Qed
.
Global
Instance
dfrac_is_op
q
q1
q2
:
IsOp
q
q1
q2
→
IsOp'
(
DfracOwn
q
)
(
DfracOwn
q1
)
(
DfracOwn
q2
)
.
Proof
.
rewrite
/
IsOp'
/
IsOp
dfrac_op_own
=>
->
//.
Qed
.
(** Discarding a fraction is a frame preserving update. *)
Lemma
dfrac_discard_update
q
:
DfracOwn
q
~~>
DfracDiscarded
.
...
...
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