Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(data/*): lemmas on division of polynomials by constant polynomia…
…ls (#4206) From the Witt vector project We provide a specialized version for polynomials over zmod n, which turns out to be convenient in practice. Co-Authored-By: Rob Y. Lewis <rob.y.lewis@gmail.com>
- Loading branch information
1 parent
c7d818c
commit 9591d43
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/- | ||
Copyright (c) 2020 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import data.mv_polynomial.basic | ||
import data.zmod.basic | ||
|
||
/-! | ||
## Facts concerning polynomials over `zmod n` | ||
-/ | ||
|
||
namespace mv_polynomial | ||
|
||
/-- A polynomial over the integers is divisible by `n : ℕ` | ||
if and only if it is zero over `zmod n`. -/ | ||
lemma C_dvd_iff_zmod {σ : Type*} (n : ℕ) (φ : mv_polynomial σ ℤ) : | ||
C (n:ℤ) ∣ φ ↔ map (int.cast_ring_hom (zmod n)) φ = 0 := | ||
C_dvd_iff_map_hom_eq_zero _ _ (char_p.int_cast_eq_zero_iff (zmod n) n) _ | ||
|
||
end mv_polynomial |