Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Joshua Yanovski
iris-coq
Commits
a5e657c3
Commit
a5e657c3
authored
Sep 20, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lemma for inclusion of dec_agree.
parent
db2eced3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
algebra/dec_agree.v
algebra/dec_agree.v
+5
-0
No files found.
algebra/dec_agree.v
View file @
a5e657c3
...
...
@@ -15,6 +15,8 @@ Instance maybe_DecAgree {A} : Maybe (@DecAgree A) := λ x,
Section
dec_agree
.
Context
`
{
EqDecision
A
}
.
Implicit
Types
a
b
:
A
.
Implicit
Types
x
y
:
dec_agree
A
.
Instance
dec_agree_valid
:
Valid
(
dec_agree
A
)
:=
λ
x
,
if
x
is
DecAgree
_
then
True
else
False
.
...
...
@@ -56,6 +58,9 @@ Proof. destruct x; by rewrite /= ?decide_True. Qed.
Lemma
dec_agree_op_inv
(
x1
x2
:
dec_agree
A
)
:
✓
(
x1
⋅
x2
)
→
x1
=
x2
.
Proof
.
destruct
x1
,
x2
;
by
repeat
(
simplify_eq
/=
||
case_match
).
Qed
.
Lemma
DecAgree_included
a
b
:
DecAgree
a
≼
DecAgree
b
→
a
=
b
.
Proof
.
intros
[[
c
|
]
[
=
]
%
leibniz_equiv_iff
].
by
simplify_option_eq
.
Qed
.
End
dec_agree
.
Arguments
dec_agreeC
:
clear
implicits
.
...
...
Write
Preview
Markdown
is supported
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