definition mod : nat \to nat \to nat \def
\lambda n,m.
match m with
-[O \Rightarrow m
+[O \Rightarrow n
| (S p) \Rightarrow mod_aux n n p].
interpretation "natural remainder" 'module x y =
rewrite > plus_minus.
rewrite > sym_times.
rewrite < H5.
-rewrite < sym_times.
+rewrite < sym_times.
apply plus_to_minus.
apply H3.
apply le_times_r.