(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)
(*i 	$Id$	 i*)
Section MapCard.
Variables A B : Type.

Lemma length_as_fold_2 :
forall l:alist A,
length l =
fold_right (fun (r:ad * A) (n:nat) => let (a, y) := r in 1 + n) 0 l.