Denominators of rational polynomials
DefinitionDenominator of a rational polynomial#✓fully proved
For a polynomial \(P \in \mathbb{Q}[x]\), the denominator \(\operatorname{denom}(P)\) is the least common multiple of the denominators (in lowest terms) of the nonzero coefficients of \(P\); in particular \(\operatorname{denom}(0) = 1\). Thus \(\operatorname{denom}(P) = 1\) exactly when \(P \in \mathbb{Z}[x]\).
public def polynomialDenominator (P : ℚ[X]) : ℕ :=
P.support.lcm fun i => (P.coeff i).den
Sources
- Bernd C. Kellner, On the Finiteness of Bernoulli Polynomials Whose Derivative Has Only Integral Coefficients, Journal of Integer Sequences 27 (2024), Article 24.2.8, Section 2 (notation
denom).
Used by 9
TheoremCoefficient denominators divide the denominator of a polynomial#✓fully proved
For every polynomial \(P \in \mathbb{Q}[x]\) and every \(i \in \mathbb{N}\), the denominator (in lowest terms) of the coefficient of \(x^i\) in \(P\) divides the denominator \(\operatorname{denom}(P)\) of \(P\).
public theorem coeff_den_dvd_polynomialDenominator (P : ℚ[X]) (i : ℕ) :
(P.coeff i).den ∣ polynomialDenominator P
public def polynomialDenominator (P : ℚ[X]) : ℕ :=
P.support.lcm fun i => (P.coeff i).den
MathlibExt/Algebra/Polynomial/CoefficientDenominator.lean:43
Sources
- Bernd C. Kellner, On the Finiteness of Bernoulli Polynomials Whose Derivative Has Only Integral Coefficients, Journal of Integer Sequences 27 (2024), Article 24.2.8, Section 2 (definition of
denom).
Uses 1 · Used by 1
TheoremDenominator one characterizes integer polynomials#✓fully proved
For every polynomial \(P \in \mathbb{Q}[x]\), its denominator \(\operatorname{denom}(P)\) equals \(1\) if and only if, for every \(i \in \mathbb{N}\), the coefficient of \(x^i\) in \(P\) is an integer.
public theorem polynomialDenominator_eq_one_iff (P : ℚ[X]) :
polynomialDenominator P = 1 ↔ ∀ i, (P.coeff i).den = 1
public def polynomialDenominator (P : ℚ[X]) : ℕ :=
P.support.lcm fun i => (P.coeff i).den
MathlibExt/Algebra/Polynomial/CoefficientDenominator.lean:43
Sources
- Bernd C. Kellner, On the Finiteness of Bernoulli Polynomials Whose Derivative Has Only Integral Coefficients, Journal of Integer Sequences 27 (2024), Article 24.2.8, Section 1 (
denom(B_n(x)) > 1is equivalent toB_n(x) ∉ ℤ[x]).
Uses 2 · Used by 2
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.