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

Merge branch 'map_empty_or_choose' into 'master'

add map_choose_or_empty

See merge request !413
parents 2c03acaf 324065a3
No related branches found
No related tags found
1 merge request!413add map_choose_or_empty
Pipeline #72483 passed
......@@ -1015,6 +1015,9 @@ Proof.
by rewrite <-?map_to_list_empty_iff.
Defined.
Lemma map_choose_or_empty {A} (m : M A) : ( i x, m !! i = Some x) m = ∅.
Proof. destruct (decide (m = )); [right|left]; auto using map_choose. Qed.
(** Properties of the imap function *)
Lemma map_lookup_imap {A B} (f : K A option B) (m : M A) i :
map_imap f m !! i = m !! i ≫= f i.
......
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