The areas / V11. Fields and Galois theory
Mathlib.FieldTheory.RatFunc.AsPolynomial
50 declarations. Mathlib docs · Source
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.
Polynomial structure: C, X, eval
theorem RatFunc.algEquivOfTranscendental.congr_simp E1 #
∀ {K : Type u_1} {L : Type u_2} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (f : L)
(h : Transcendental K f), RatFunc.algEquivOfTranscendental f h = RatFunc.algEquivOfTranscendental f h
theorem RatFunc.coePolynomial.congr_simp E1 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K] (P P_1 : Polynomial K), P = P_1 → ↑P = ↑P_1
theorem RatFunc.X.congr_simp E1 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K], RatFunc.X = RatFunc.X
def RatFunc.C E3 #
{K : Type u} → [inst : CommRing K] → [inst_1 : IsDomain K] → K →+* RatFunc K
RatFunc.C a is the constant rational function a.
theorem RatFunc.algebraMap_eq_C E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K], algebraMap K (RatFunc K) = RatFunc.C
theorem RatFunc.algebraMap_C E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K] (a : K),
(algebraMap (Polynomial K) (RatFunc K)) (Polynomial.C a) = RatFunc.C a
theorem RatFunc.algebraMap_comp_C E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K],
(algebraMap (Polynomial K) (RatFunc K)).comp Polynomial.C = RatFunc.C
theorem RatFunc.smul_eq_C_mul E1 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K] (r : K) (x : RatFunc K), r • x = RatFunc.C r * x
theorem RatFunc.C_injective E1 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K], Function.Injective ⇑RatFunc.C
def RatFunc.X E3 #
{K : Type u} → [inst : CommRing K] → [IsDomain K] → RatFunc K
RatFunc.X is the polynomial variable (aka indeterminate).
theorem RatFunc.algebraMap_X E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K],
(algebraMap (Polynomial K) (RatFunc K)) Polynomial.X = RatFunc.X
theorem RatFunc.algebraMap_monomial E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K] (n : ℕ) (a : K),
(algebraMap (Polynomial K) (RatFunc K)) ((Polynomial.monomial n) a) = RatFunc.C a * RatFunc.X ^ n
theorem RatFunc.aeval_X_left_eq_algebraMap E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K] (p : Polynomial K),
(Polynomial.aeval RatFunc.X) p = (algebraMap (Polynomial K) (RatFunc K)) p
theorem RatFunc.coePolynomial_eq_algebraMap E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K] (p : Polynomial K),
↑p = (algebraMap (Polynomial K) (RatFunc K)) p
theorem RatFunc.liftRingHom_C E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K] {L : Type u_1} [inst_2 : Field L] (φ : Polynomial K →+* L)
(hφ : nonZeroDivisors (Polynomial K) ≤ Submonoid.comap φ (nonZeroDivisors L)) (x : K),
(RatFunc.liftRingHom φ hφ) (RatFunc.C x) = φ (Polynomial.C x)
theorem RatFunc.liftRingHom_X E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K] {L : Type u_1} [inst_2 : Field L] (φ : Polynomial K →+* L)
(hφ : nonZeroDivisors (Polynomial K) ≤ Submonoid.comap φ (nonZeroDivisors L)),
(RatFunc.liftRingHom φ hφ) RatFunc.X = φ Polynomial.X
theorem RatFunc.num_C E0 #
∀ {K : Type u} [inst : Field K] (c : K), (RatFunc.C c).num = Polynomial.C c
theorem RatFunc.denom_C E0 #
∀ {K : Type u} [inst : Field K] (c : K), (RatFunc.C c).denom = 1
theorem RatFunc.num_X E0 #
∀ {K : Type u} [inst : Field K], RatFunc.X.num = Polynomial.X
theorem RatFunc.denom_X E0 #
∀ {K : Type u} [inst : Field K], RatFunc.X.denom = 1
theorem RatFunc.X_ne_zero E1 #
∀ {K : Type u} [inst : Field K], RatFunc.X ≠ 0
def RatFunc.eval E3 #
{K : Type u} → [inst : Field K] → {L : Type u} → [inst_1 : Field L] → (K →+* L) → L → RatFunc K → L
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.
theorem RatFunc.eval_eq_zero_of_eval₂_denom_eq_zero E1 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] {f : K →+* L} {a : L} {x : RatFunc K},
Polynomial.eval₂ f a x.denom = 0 → RatFunc.eval f a x = 0
theorem RatFunc.eval₂_denom_ne_zero E1 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] {f : K →+* L} {a : L} {x : RatFunc K},
RatFunc.eval f a x ≠ 0 → Polynomial.eval₂ f a x.denom ≠ 0
theorem RatFunc.eval_C E0 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] (f : K →+* L) (a : L) {c : K},
RatFunc.eval f a (RatFunc.C c) = f c
theorem RatFunc.eval_X E0 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] (f : K →+* L) (a : L), RatFunc.eval f a RatFunc.X = a
theorem RatFunc.eval_zero E0 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] (f : K →+* L) (a : L), RatFunc.eval f a 0 = 0
theorem RatFunc.eval_one E0 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] (f : K →+* L) (a : L), RatFunc.eval f a 1 = 1
theorem RatFunc.eval_algebraMap E0 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] (f : K →+* L) (a : L) {S : Type u_1}
[inst_2 : CommSemiring S] [inst_3 : Algebra S (Polynomial K)] (p : S),
RatFunc.eval f a ((algebraMap S (RatFunc K)) p) = Polynomial.eval₂ f a ((algebraMap S (Polynomial K)) p)
theorem RatFunc.eval_add E1 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] (f : K →+* L) (a : L) {x y : RatFunc K},
Polynomial.eval₂ f a x.denom ≠ 0 →
Polynomial.eval₂ f a y.denom ≠ 0 → RatFunc.eval f a (x + y) = RatFunc.eval f a x + RatFunc.eval f a y
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.
theorem RatFunc.eval_mul E1 #
∀ {K : Type u} [inst : Field K] {L : Type u} [inst_1 : Field L] (f : K →+* L) (a : L) {x y : RatFunc K},
Polynomial.eval₂ f a x.denom ≠ 0 →
Polynomial.eval₂ f a y.denom ≠ 0 → RatFunc.eval f a (x * y) = RatFunc.eval f a x * RatFunc.eval f a y
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.
def RatFunc.algEquivOfTranscendental E1 #
{K : Type u_1} →
{L : Type u_2} →
[inst : Field K] →
[inst_1 : Field L] → [inst_2 : Algebra K L] → (f : L) → Transcendental K f → RatFunc K ≃ₐ[K] ↥K⟮f⟯
Given a transcendental f : L, the K-algebra isomorphism between RatFunc K and L given
by sending X to f.
theorem RatFunc.algEquivOfTranscendental_algebraMap E0 #
∀ {K : Type u_1} {L : Type u_2} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (f : L)
(h : Transcendental K f) (g : Polynomial K),
(RatFunc.algEquivOfTranscendental f h) ((algebraMap (Polynomial K) (RatFunc K)) g) =
(Polynomial.aeval (IntermediateField.AdjoinSimple.gen K f)) g
theorem RatFunc.algEquivOfTranscendental_X E0 #
∀ {K : Type u_1} {L : Type u_2} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (f : L)
(h : Transcendental K f), ↑((RatFunc.algEquivOfTranscendental f h) RatFunc.X) = f
theorem RatFunc.algEquivOfTranscendental_apply E0 #
∀ {K : Type u_1} {L : Type u_2} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (f : L)
(h : Transcendental K f) (u : RatFunc K),
↑((RatFunc.algEquivOfTranscendental f h) u) = (Polynomial.aeval f) u.num / (Polynomial.aeval f) u.denom
theorem RatFunc.algEquivOfTranscendental_symm_aeval E0 #
∀ {K : Type u_1} {L : Type u_2} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (f : L)
(h : Transcendental K f) (g : Polynomial K),
(RatFunc.algEquivOfTranscendental f h).symm ((Polynomial.aeval (IntermediateField.AdjoinSimple.gen K f)) g) =
(algebraMap (Polynomial K) (RatFunc K)) g
theorem RatFunc.algEquivOfTranscendental_symm_gen E0 #
∀ {K : Type u_1} {L : Type u_2} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (f : L)
(h : Transcendental K f),
(RatFunc.algEquivOfTranscendental f h).symm (IntermediateField.AdjoinSimple.gen K f) = RatFunc.X
theorem RatFunc.transcendental_X E1 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K], Transcendental K RatFunc.X
instance RatFunc.transcendental E0 #
∀ {K : Type u} [inst : CommRing K] [inst_1 : IsDomain K], Algebra.Transcendental K (RatFunc K)
def Polynomial.idealX E3 #
(K : Type u_1) → [inst : Field K] → IsDedekindDomain.HeightOneSpectrum (Polynomial K)
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.
theorem Polynomial.idealX_span E0 #
∀ (K : Type u_1) [inst : Field K], (Polynomial.idealX K).asIdeal = Ideal.span {Polynomial.X}
theorem Polynomial.valuation_X_eq_neg_one E0 #
∀ (K : Type u_1) [inst : Field K],
(IsDedekindDomain.HeightOneSpectrum.valuation (RatFunc K) (Polynomial.idealX K)) RatFunc.X = WithZero.exp (-1)
theorem Polynomial.valuation_of_mk E0 #
∀ (K : Type u_1) [inst : Field K] (f g : Polynomial K),
(IsDedekindDomain.HeightOneSpectrum.valuation (RatFunc K) (Polynomial.idealX K)) (RatFunc.mk f g) =
(Polynomial.idealX K).intValuation f / (Polynomial.idealX K).intValuation g
theorem Polynomial.valuation_monomial_eq_valuation_X_pow E1 #
∀ (K : Type u_1) [inst : Field K] {Γ : Type u_2} [inst_1 : LinearOrderedCommGroupWithZero Γ]
{v : Valuation (RatFunc K) Γ} [hv : Valuation.IsTrivialOn K v] (n : ℕ) {a : K},
a ≠ 0 → v ↑((Polynomial.monomial n) a) = v RatFunc.X ^ n
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.
theorem Polynomial.valuation_eq_valuation_X_pow_natDegree_of_one_lt_valuation_X E1 #
∀ (K : Type u_1) [inst : Field K] {Γ : Type u_2} [inst_1 : LinearOrderedCommGroupWithZero Γ]
{v : Valuation (RatFunc K) Γ} [hv : Valuation.IsTrivialOn K v],
1 < v RatFunc.X → ∀ {p : Polynomial K}, p ≠ 0 → v ↑p = v RatFunc.X ^ p.natDegree
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.
theorem Polynomial.valuation_le_one_of_valuation_X_le_one E1 #
∀ (K : Type u_1) [inst : Field K] {Γ : Type u_2} [inst_1 : LinearOrderedCommGroupWithZero Γ]
{v : Valuation (RatFunc K) Γ} [hv : Valuation.IsTrivialOn K v], v RatFunc.X ≤ 1 → ∀ (p : Polynomial K), v ↑p ≤ 1
If a valuation v is trivial on constants and v RatFunc.X ≤ 1 then for every polynomial p,
v p ≤ 1.
theorem Polynomial.valuation_inv_monomial_eq_valuation_X_zpow E1 #
∀ (K : Type u_1) [inst : Field K] {Γ : Type u_2} [inst_1 : LinearOrderedCommGroupWithZero Γ]
{v : Valuation (RatFunc K) Γ} [hv : Valuation.IsTrivialOn K v] (n : ℕ) {a : K},
a ≠ 0 → v (1 / ↑((Polynomial.monomial n) a)) = v RatFunc.X ^ (-↑n)
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).
instance RatFunc.valuedRatFunc E0 #
(K : Type u_1) → [inst : Field K] → Valued (RatFunc K) (WithZero (Multiplicative ℤ))
We give this instance a name so that it can be locally disabled when defining FqtInfty.
Something similar might be needed after the refactor from Valued to ValuativeRel.
theorem RatFunc.v_def E0 #
∀ (K : Type u_1) [inst : Field K] {x : RatFunc K},
Valued.v x = (IsDedekindDomain.HeightOneSpectrum.valuation (RatFunc K) (Polynomial.idealX K)) x
theorem RatFunc.valuation_surjective E1 #
∀ (K : Type u_1) [inst : Field K], Function.Surjective ⇑Valued.v