Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simon Spies
stdpp
Commits
cc4ff176
Commit
cc4ff176
authored
Apr 16, 2015
by
Robbert Krebbers
Browse files
Add switch (including unstructured variants such as Duff's device).
parent
853b4b43
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/collections.v
View file @
cc4ff176
...
...
@@ -113,6 +113,9 @@ Section collection_monad_base.
unfold
mguard
,
collection_guard
;
simpl
;
case_match
;
rewrite
?elem_of_empty
;
naive_solver
.
Qed
.
Lemma
elem_of_guard_2
`
{
Decision
P
}
{
A
}
(
x
:
A
)
(
X
:
M
A
)
:
P
→
x
∈
X
→
x
∈
guard
P
;
X
.
Proof
.
by
rewrite
elem_of_guard
.
Qed
.
Lemma
guard_empty
`
{
Decision
P
}
{
A
}
(
X
:
M
A
)
:
guard
P
;
X
≡
∅
↔
¬
P
∨
X
≡
∅
.
Proof
.
rewrite
!
elem_of_equiv_empty
;
setoid_rewrite
elem_of_guard
.
...
...
Write
Preview
Supports
Markdown
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