Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
stdpp
Commits
22d4a0cd
Commit
22d4a0cd
authored
Feb 20, 2019
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
∈ on `listset` is decidable.
parent
91a46cc0
Pipeline
#14825
failed with stage
in 6 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
theories/listset.v
theories/listset.v
+6
-1
No files found.
theories/listset.v
View file @
22d4a0cd
...
...
@@ -38,7 +38,12 @@ Proof.
abstract
(
by
rewrite
listset_empty_alt
).
Defined
.
Context
`
{!
EqDecision
A
}.
Context
`
{
Aeq
:
!
EqDecision
A
}.
Global
Instance
listset_elem_of_dec
:
RelDecision
(
∈
@{
listset
A
}).
Proof
using
Aeq
.
refine
(
λ
x
X
,
cast_if
(
decide
(
x
∈
listset_car
X
)))
;
done
.
Defined
.
Global
Instance
listset_intersection
:
Intersection
(
listset
A
)
:
=
λ
l
k
,
let
(
l'
)
:
=
l
in
let
(
k'
)
:
=
k
in
Listset
(
list_intersection
l'
k'
).
...
...
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