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
eb553b28
Commit
eb553b28
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.mpi-sws.org/iris/iris
parents
d77b159c
3aef0170
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
+19
-0
19 additions, 0 deletions
iris/algebra/dfrac.v
with
19 additions
and
0 deletions
iris/algebra/dfrac.v
+
19
−
0
View file @
eb553b28
...
...
@@ -18,6 +18,7 @@
discarded. Conversely, knowing that a fraction has been discarded implies
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
stdpp
Require
Import
countable
.
From
iris
.
algebra
Require
Export
cmra
.
From
iris
.
algebra
Require
Import
proofmode_classes
updates
frac
.
From
iris
.
prelude
Require
Import
options
.
...
...
@@ -37,6 +38,24 @@ Section dfrac.
Implicit
Types
p
q
:
Qp
.
Implicit
Types
dp
dq
:
dfrac
.
Global
Instance
dfrac_inhabited
:
Inhabited
dfrac
:=
populate
DfracDiscarded
.
Global
Instance
dfrac_eq_dec
:
EqDecision
dfrac
.
Proof
.
solve_decision
.
Defined
.
Global
Instance
dfrac_countable
:
Countable
dfrac
.
Proof
.
set
(
enc
dq
:=
match
dq
with
|
DfracOwn
q
=>
inl
q
|
DfracDiscarded
=>
inr
(
inl
())
|
DfracBoth
q
=>
inr
(
inr
q
)
end
)
.
set
(
dec
y
:=
Some
match
y
with
|
inl
q
=>
DfracOwn
q
|
inr
(
inl
())
=>
DfracDiscarded
|
inr
(
inr
q
)
=>
DfracBoth
q
end
)
.
refine
(
inj_countable
enc
dec
_)
.
by
intros
[]
.
Qed
.
Global
Instance
DfracOwn_inj
:
Inj
(
=
)
(
=
)
DfracOwn
.
Proof
.
by
injection
1
.
Qed
.
Global
Instance
DfracBoth_inj
:
Inj
(
=
)
(
=
)
DfracBoth
.
...
...
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