]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/library/nat/relevant_equations.ma
Several changes. Proof of Fermat's little theorem completed.
[helm.git] / helm / matita / library / nat / relevant_equations.ma
index fee1fd4071a600027e5301d68979d2f15bf2bbff..1c0f25f5770a34a2be644a093997a0fabc65a018 100644 (file)
@@ -15,6 +15,7 @@
 set "baseuri" "cic:/matita/nat/relevant_equations.ma".
 
 include "nat/times.ma".
+include "nat/minus.ma".
 
 theorem times_plus_l: \forall n,m,p:nat. (n+m)*p = n*p + m*p.
 intros.
@@ -27,6 +28,17 @@ apply sym_times.
 apply sym_times.
 qed.
 
+theorem times_minus_l: \forall n,m,p:nat. (n-m)*p = n*p - m*p.
+intros.
+apply trans_eq ? ? (p*(n-m)).
+apply sym_times.
+apply trans_eq ? ? (p*n-p*m).
+apply distr_times_minus.
+apply eq_f2.
+apply sym_times.
+apply sym_times.
+qed.
+
 theorem times_plus_plus: \forall n,m,p,q:nat. (n + m)*(p + q) =
 n*p + n*q + m*p + m*q.
 intros.