]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/library/nat/primes.ma
Bertrand's conjecture (weak), some work in progress
[helm.git] / helm / software / matita / library / nat / primes.ma
index ec7118980e1a82a53609a14bd76c0371e6a83585..0186d4324e3890666660282de63d5dc619a83520 100644 (file)
@@ -286,6 +286,28 @@ cut(O \lt c)
 ]
 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