Generalities on the polynomial structure of rational functions #
- Main evaluation properties
- Study of the X-adic valuation
Main definitions #
RatFunc.Cis the constant polynomialRatFunc.Xis the indeterminateRatFunc.evalevaluates a rational function given a value for the indeterminateidealXis the principal ideal generated byXin the ring of polynomials over a field K, regarded as an element of the height-one-spectrum.
RatFunc.X is the polynomial variable (aka indeterminate).
Equations
- RatFunc.X = (algebraMap (Polynomial K) (RatFunc K)) Polynomial.X
Instances For
Evaluate a rational function p given a ring hom f from the scalar field
to the target and a value x for the variable in the target.
Fractions are reduced by clearing common denominators before evaluating:
eval id 1 ((X^2 - 1) / (X - 1)) = eval id 1 (X + 1) = 2, not 0 / 0 = 0.
Equations
- RatFunc.eval f a p = Polynomial.eval₂ f a p.num / Polynomial.eval₂ f a p.denom
Instances For
eval is an additive homomorphism except when a denominator evaluates to 0.
Counterexample: eval _ 1 (X / (X-1)) + eval _ 1 (-1 / (X-1)) = 0
... ≠ 1 = eval _ 1 ((X-1) / (X-1)).
See also RatFunc.eval₂_denom_ne_zero to make the hypotheses simpler but less general.
eval is a multiplicative homomorphism except when a denominator evaluates to 0.
Counterexample: eval _ 0 X * eval _ 0 (1/X) = 0 ≠ 1 = eval _ 0 1 = eval _ 0 (X * 1/X).
See also RatFunc.eval₂_denom_ne_zero to make the hypotheses simpler but less general.
This is the principal ideal generated by X in the ring of polynomials over a field K,
regarded as an element of the height-one-spectrum.
Equations
- Polynomial.idealX K = { asIdeal := Ideal.span {Polynomial.X}, isPrime := ⋯, ne_bot := ⋯ }
Instances For
If a valuation v is trivial on constants then for every n : ℕ the valuation of
(monomial n a) is equal to (v RatFunc.X) ^ n.
If a valuation v is trivial on constants and 1 < v RatFunc.X then for every polynomial p,
v p = v RatFunc.X ^ p.natDegree.
Note: The condition 1 < v RatFunc.X is typically satisfied by the valuation at infinity.
If a valuation v is trivial on constants and v RatFunc.X ≤ 1 then for every polynomial p,
v p ≤ 1.
If a valuation v is trivial on constants then for every n : ℕ the valuation of
1 / (monomial n a) (as an element of the field of rational functions) is equal
to (v RatFunc.X) ^ (- n).