Skip to content
Snippets Groups Projects
Commit cc4ff176 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Add switch (including unstructured variants such as Duff's device).

parent 853b4b43
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment