(** ** Modulo arithmetic *)
(** We define and state properties of equality and arithmetic modulo a positive integer. *)
Section EQ_MODULO.
Variable modul: Z.
Hypothesis modul_pos: modul > 0.
Definition eqmod (x y: Z) : Prop := exists k, x = k * modul + y.

Lemma eqmod_trans: forall x y z, eqmod x y -> eqmod y z -> eqmod x z.