diff options
| author | Cyril Cohen | 2020-08-25 00:14:50 +0200 |
|---|---|---|
| committer | Cyril Cohen | 2020-09-03 03:29:46 +0200 |
| commit | 31978e486f48b902d18c5f508e34bc016d7f47b8 (patch) | |
| tree | caaca453f1fe4091e66b946ccf55c03ba145ce96 /mathcomp | |
| parent | 56f5dd148ca2728ef69db7ec2f12bc462a73711e (diff) | |
Adding commr_horner lemma
Diffstat (limited to 'mathcomp')
| -rw-r--r-- | mathcomp/algebra/poly.v | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mathcomp/algebra/poly.v b/mathcomp/algebra/poly.v index e83bc09..a33788d 100644 --- a/mathcomp/algebra/poly.v +++ b/mathcomp/algebra/poly.v @@ -1093,6 +1093,12 @@ Proof. by rewrite /comm_poly !hornerC !simp. Qed. Lemma comm_polyX x : comm_poly 'X x. Proof. by rewrite /comm_poly !hornerX. Qed. +Lemma commr_horner a b p : GRing.comm a b -> comm_coef p a -> GRing.comm a p.[b]. +Proof. +move=> cab cpa; rewrite horner_coef; apply: commr_sum => i _. +by apply: commrM => //; apply: commrX. +Qed. + Lemma hornerM_comm p q x : comm_poly q x -> (p * q).[x] = p.[x] * q.[x]. Proof. move=> comm_qx. |
