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
Simon Spies
stdpp
Commits
fe9771cc
Commit
fe9771cc
authored
Sep 03, 2014
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decider for empty listsets.
parent
52a3dc34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
theories/listset.v
theories/listset.v
+10
-0
No files found.
theories/listset.v
View file @
fe9771cc
...
...
@@ -24,6 +24,16 @@ Proof.
*
by
apply
elem_of_list_singleton
.
*
intros
[?]
[?].
apply
elem_of_app
.
Qed
.
Lemma
listset_empty_alt
X
:
X
≡
∅
↔
listset_car
X
=
[].
Proof
.
destruct
X
as
[
l
]
;
split
;
[|
by
intros
;
simplify_equality'
].
intros
[
Hl
_
]
;
destruct
l
as
[|
x
l
]
;
[
done
|].
feed
inversion
(
Hl
x
)
;
left
.
Qed
.
Global
Instance
listset_empty_dec
(
X
:
listset
A
)
:
Decision
(
X
≡
∅
).
Proof
.
refine
(
cast_if
(
decide
(
listset_car
X
=
[])))
;
abstract
(
by
rewrite
listset_empty_alt
).
Defined
.
Context
`
{
∀
x
y
:
A
,
Decision
(
x
=
y
)}.
...
...
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