(* *)
(**************************************************************************)
-set "baseuri" "cic:/matita/nat/primes".
-
include "nat/div_and_mod.ma".
include "nat/minimization.ma".
include "nat/sigma_and_pi.ma".
]
qed.
+theorem eq_div_plus: \forall n,m,d. O < d \to
+divides d n \to divides d m \to
+(n + m ) / d = n/d + m/d.
+intros.
+elim H1.
+elim H2.
+rewrite > H3.rewrite > H4.
+rewrite < distr_times_plus.
+rewrite > sym_times.
+rewrite > sym_times in ⊢ (? ? ? (? (? % ?) ?)).
+rewrite > sym_times in ⊢ (? ? ? (? ? (? % ?))).
+rewrite > lt_O_to_div_times
+ [rewrite > lt_O_to_div_times
+ [rewrite > lt_O_to_div_times
+ [reflexivity
+ |assumption
+ ]
+ |assumption
+ ]
+ |assumption
+ ]
+qed.
(* boolean divides *)
definition divides_b : nat \to nat \to bool \def