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
Iris
stdpp
Commits
2ad56b99
Commit
2ad56b99
authored
Feb 17, 2020
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`TopSet` instance for `boolset`.
parent
e09f7ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
theories/boolset.v
theories/boolset.v
+3
-2
No files found.
theories/boolset.v
View file @
2ad56b99
...
...
@@ -19,15 +19,16 @@ Instance boolset_intersection {A} : Intersection (boolset A) := λ X1 X2,
BoolSet
(
λ
x
,
boolset_car
X1
x
&&
boolset_car
X2
x
).
Instance
boolset_difference
{
A
}
:
Difference
(
boolset
A
)
:
=
λ
X1
X2
,
BoolSet
(
λ
x
,
boolset_car
X1
x
&&
negb
(
boolset_car
X2
x
)).
Instance
boolset_set
`
{
EqDecision
A
}
:
Set
_
A
(
boolset
A
).
Instance
boolset_
top_
set
`
{
EqDecision
A
}
:
Top
Set
A
(
boolset
A
).
Proof
.
split
;
[
split
|
|].
split
;
[
split
;
[
split
|
|]
|].
-
by
intros
x
?.
-
by
intros
x
y
;
rewrite
<-(
bool_decide_spec
(
x
=
y
)).
-
split
.
apply
orb_prop_elim
.
apply
orb_prop_intro
.
-
split
.
apply
andb_prop_elim
.
apply
andb_prop_intro
.
-
intros
X
Y
x
;
unfold
elem_of
,
boolset_elem_of
;
simpl
.
destruct
(
boolset_car
X
x
),
(
boolset_car
Y
x
)
;
simpl
;
tauto
.
-
done
.
Qed
.
Instance
boolset_elem_of_dec
{
A
}
:
RelDecision
(
∈
@{
boolset
A
}).
Proof
.
refine
(
λ
x
X
,
cast_if
(
decide
(
boolset_car
X
x
)))
;
done
.
Defined
.
...
...
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