Skip to content
Snippets Groups Projects
Commit ea7413c4 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Add `dfrac_valid`.

parent 90debd5b
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,14 @@ Section dfrac.
| DfracBoth q, DfracBoth q' => DfracBoth (q + q')
end.
Lemma dfrac_valid dq :
dq match dq with
| DfracOwn q => q 1
| DfracDiscarded => True
| DfracBoth q => q < 1
end%Qp.
Proof. done. Qed.
Lemma dfrac_op_own q p : DfracOwn p DfracOwn q = DfracOwn (p + q).
Proof. done. Qed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment