Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marianna Rapoport
iris-coq
Commits
d7bf36da
Commit
d7bf36da
authored
Jun 08, 2017
by
Robbert Krebbers
Browse files
FromOp and IntoOp instances for frac.
parent
3875c726
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/algebra/frac.v
View file @
d7bf36da
From
Coq
.
QArith
Require
Import
Qcanon
.
From
iris
.
algebra
Require
Export
cmra
.
From
iris
.
proofmode
Require
Import
classes
.
Set
Default
Proof
Using
"Type"
.
Notation
frac
:
=
Qp
(
only
parsing
).
...
...
@@ -48,3 +49,8 @@ Proof. done. Qed.
Lemma
frac_valid'
(
p
:
Qp
)
:
✓
p
↔
(
p
≤
1
%
Qp
)%
Qc
.
Proof
.
done
.
Qed
.
Global
Instance
frac_into_op
q
:
IntoOp
q
(
q
/
2
)%
Qp
(
q
/
2
)%
Qp
.
Proof
.
by
rewrite
/
IntoOp
frac_op'
Qp_div_2
.
Qed
.
Global
Instance
frac_from_op
q
:
FromOp
q
(
q
/
2
)%
Qp
(
q
/
2
)%
Qp
.
Proof
.
by
rewrite
/
FromOp
frac_op'
Qp_div_2
.
Qed
.
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment