(* ALL DARTS IN AN f-ORBIT ARE DISTINCT: *)  

Definition diff_orb(m:fmap)(z:dart):Prop:=
 let nr:= Iter_upb_aux m z (fmap_to_set m) in
  (diff_int m z 0 (nr - 1))%nat.

Lemma mod_p:forall(m:fmap)(z:dart)(i:nat), inv_hmap m -> exd m z -> let p := Iter_upb m z in {j :nat | Iter (f m) i z = Iter (f m) j z /\ (j < p)%nat}.