intro m; induction m; simpl; intros.
rewrite Hunit_left; auto.
destruct o; simpl.
symmetry.
rewrite IHm1.
rewrite <- Hassoc.
rewrite <- Hassoc.
symmetry.
rewrite IHm1.
rewrite IHm2.
auto.
symmetry.
rewrite IHm1.
rewrite <- Hassoc.
symmetry.
rewrite IHm1.
rewrite IHm2.
auto.
Qed.

(* Specifications: *)
Lemma map_fold_index_lookup' : forall
(m:map A) (g:positive -> positive) (z:B) v x,
m#v = Some x -> exists l, exists r,
map_fold_index' A B f c z g m =
c l (c (f (g v) x) r).
Lemma map_fold_index_lookup' : forall
(m:map A) (g:positive -> positive) (z:B) v x,
m#v = Some x -> exists l, exists r,
map_fold_index' A B f c z g m =
c l (c (f (g v) x) r).
Lemma map_fold_index_lookup' : forall
(m:map A) (g:positive -> positive) (z:B) v x,
m#v = Some x -> exists l, exists r,
map_fold_index' A B f c z g m =
c l (c (f (g v) x) r).