Module

RationalSeriesPoleBound.lean

Nyll.AlgebraicCurves.Places.Orders.RationalSeriesPoleBound
10 declarations indexed from sourceView source ↗

Linear pole bounds from finite rational-coordinate data

The bound is computed from polynomial coefficients. The power-series inverse recursion, rather than an assumed growth condition, supplies the estimate. Formal translation works in every characteristic and does not divide by factorials. This is an algebraic input to boundary arguments, not a global reciprocity or extension theorem. On an arbitrary curve, a formal diagonal or finite étale lifting must still connect its actual coordinates to such formal expansions; functions need not be rational in a local parameter.

Imports6
  • Nyll.AlgebraicCurves.Places.Basic
  • Mathlib.RingTheory.PowerSeries.Inverse
  • Mathlib.Algebra.Order.BigOperators.Group.Finset
  • Mathlib.Tactic.Linarith
  • Mathlib.Tactic.Ring
  • Mathlib.Algebra.Polynomial.Eval.Coeff
Imported by4

Declarations

AlgebraicCurve.Place.polynomialOrderBound

A computable finite integer bound on the orders of polynomial coefficients.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
def polynomialOrderBound (P : Polynomial F) : ℕ
AlgebraicCurve.Place.ord_add_lower
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem ord_add_lower (a b : F) (B : ℕ)
    (ha : -(B : ℤ) ≤ v.ord a) (hb : -(B : ℤ) ≤ v.ord b) :
    -(B : ℤ) ≤ v.ord (a + b)
AlgebraicCurve.Place.ord_finset_sum_ge_neg_bound

A common nonpositive order bound is preserved by finite sums, including zero terms.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem ord_finset_sum_ge_neg_bound {ι : Type*} (s : Finset ι) (f : ι → F) (B : ℕ)
    (hf : ∀ i ∈ s, -(B : ℤ) ≤ v.ord (f i)) :
    -(B : ℤ) ≤ v.ord (∑ i ∈ s, f i)
AlgebraicCurve.Place.ord_mul_ge_neg_bounds

The sum of two pole bounds bounds the product, including zero factors.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem ord_mul_ge_neg_bounds (a b : F) (A B : ℕ)
    (ha : -(A : ℤ) ≤ v.ord a) (hb : -(B : ℤ) ≤ v.ord b) :
    -((A + B : ℕ) : ℤ) ≤ v.ord (a * b)
AlgebraicCurve.Place.polynomial_coeff_ord_bounds

The finite coefficient sum bounds both signs of every coefficient order.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem polynomial_coeff_ord_bounds (P : Polynomial F) (i : ℕ) :
    -(v.polynomialOrderBound P : ℤ) ≤ v.ord (P.coeff i) ∧
      v.ord (P.coeff i) ≤ (v.polynomialOrderBound P : ℤ)
AlgebraicCurve.Place.polynomial_inverse_coeff_ord_lower

The actual formal inverse has at most linear coefficient poles. The constant is obtained from the finite denominator, including its constant term.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem polynomial_inverse_coeff_ord_lower (Q : Polynomial F) (n : ℕ) :
    -((v.polynomialOrderBound Q * (2 * n + 1) : ℕ) : ℤ) ≤
      v.ord (PowerSeries.coeff n ((Q : PowerSeries F)⁻¹))
AlgebraicCurve.Place.polynomial_quotient_coeff_ord_lower

Numerator and denominator supply an explicit coefficient bound for their formal quotient; no coefficient-bound hypothesis is needed.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem polynomial_quotient_coeff_ord_lower (P Q : Polynomial F) (n : ℕ) :
    -((v.polynomialOrderBound P + v.polynomialOrderBound Q * (2 * n + 1) : ℕ) : ℤ) ≤
      v.ord (PowerSeries.coeff n ((P : PowerSeries F) * (Q : PowerSeries F)⁻¹))
AlgebraicCurve.Place.polynomial_quotient_linear_pole_bound

A genuine rational formal expansion satisfies its denominator equation and a linear pole estimate derived from its finite polynomial data.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem polynomial_quotient_linear_pole_bound
    (P Q : Polynomial F) (hQ : Q.coeff 0 ≠ 0) :
    let S := (P : PowerSeries F) * (Q : PowerSeries F)⁻¹
    let C := v.polynomialOrderBound P + 2 * v.polynomialOrderBound Q
    S * (Q : PowerSeries F) = (P : PowerSeries F) ∧
      ∀ n : ℕ, -((C * (n + 1) : ℕ) : ℤ) ≤ v.ord (PowerSeries.coeff n S) := by
  intro S C
  constructor
  · change ((P : PowerSeries F) * (Q : PowerSeries F)⁻¹) * (Q : PowerSeries F) = _
    rw [mul_assoc, PowerSeries.inv_mul_cancel _ (by
      simpa only [Polynomial.constantCoeff_coe] using hQ), mul_one]
  · intro n
    have h := polynomial_quotient_coeff_ord_lower v P Q n
    have hle : v.polynomialOrderBound P + v.polynomialOrderBound Q * (2 * n + 1) ≤
        C * (n + 1) := by
      dsimp only [C]
      nlinarith
    have hle' :
        ((v.polynomialOrderBound P + v.polynomialOrderBound Q * (2 * n + 1) : ℕ) : ℤ) ≤
        ((C * (n + 1) : ℕ) : ℤ) := by exact_mod_cast hle
    dsimp only [S]
    exact (neg_le_neg hle').trans h
AlgebraicCurve.Place.polynomial_quotient_family_linear_pole_bound

One constant, computed from a finite list of rational coordinates, bounds all their formal expansions. Each denominator is inverted as an actual series.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem polynomial_quotient_family_linear_pole_bound
    {ι : Type*} [Fintype ι] (P Q : ι → Polynomial F)
    (hQ : ∀ i, (Q i).coeff 0 ≠ 0) :
    let S := fun i => (P i : PowerSeries F) * (Q i : PowerSeries F)⁻¹
    let C := ∑ i, (v.polynomialOrderBound (P i) + 2 * v.polynomialOrderBound (Q i))
    ∀ i, S i * (Q i : PowerSeries F) = (P i : PowerSeries F) ∧
      ∀ n : ℕ, -((C * (n + 1) : ℕ) : ℤ) ≤ v.ord (PowerSeries.coeff n (S i)) := by
  classical
  intro S C i
  obtain ⟨heq, hbound⟩ := polynomial_quotient_linear_pole_bound v (P i) (Q i) (hQ i)
  refine ⟨heq, ?_⟩
  intro n
  have hi : v.polynomialOrderBound (P i) + 2 * v.polynomialOrderBound (Q i) ≤ C := by
    dsimp only [C]
    exact Finset.single_le_sum (fun j _ => Nat.zero_le
      (v.polynomialOrderBound (P j) + 2 * v.polynomialOrderBound (Q j))) (Finset.mem_univ i)
  have hle :
      (((v.polynomialOrderBound (P i) + 2 * v.polynomialOrderBound (Q i)) *
        (n + 1) : ℕ) : ℤ) ≤ ((C * (n + 1) : ℕ) : ℤ) := by
    exact_mod_cast Nat.mul_le_mul_right (n + 1) hi
  exact (neg_le_neg hle).trans (hbound n)
AlgebraicCurve.Place.translated_rational_difference_linear_pole_bound

For the scalar rational function q(T)=P(T)/Q(T), the formal translation ratio minus one has zero constant term and a linear pole bound. Applying this to an arbitrary curve still requires a constructed formal diagonal or étale lift; rationality in a local parameter is not assumed here.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open scoped BigOperators
namespace AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem translated_rational_difference_linear_pole_bound
    (P Q : Polynomial F) (t : F) (hP : P.eval t ≠ 0) (hQ : Q.eval t ≠ 0) :
    let T := Polynomial.C t + Polynomial.X
    let N := P.comp T * Polynomial.C (Q.eval t) - Q.comp T * Polynomial.C (P.eval t)
    let D := Q.comp T * Polynomial.C (P.eval t)
    let S := (N : PowerSeries F) * (D : PowerSeries F)⁻¹
    let C := v.polynomialOrderBound N + 2 * v.polynomialOrderBound D
    S = (P.comp T : PowerSeries F) * (Q.comp T : PowerSeries F)⁻¹ *
      PowerSeries.C (Q.eval t / P.eval t) - 1 ∧
      S * (D : PowerSeries F) = (N : PowerSeries F) ∧
      PowerSeries.constantCoeff S = 0 ∧
      ∀ n : ℕ, -((C * (n + 1) : ℕ) : ℤ) ≤ v.ord (PowerSeries.coeff n S) := by
  intro T N D S C
  have hP0 : (P.comp T).coeff 0 = P.eval t := by
    rw [Polynomial.coeff_zero_eq_eval_zero, Polynomial.eval_comp]
    simp only [T, Polynomial.eval_add, Polynomial.eval_C, Polynomial.eval_X, add_zero]
  have hQ0 : (Q.comp T).coeff 0 = Q.eval t := by
    rw [Polynomial.coeff_zero_eq_eval_zero, Polynomial.eval_comp]
    simp only [T, Polynomial.eval_add, Polynomial.eval_C, Polynomial.eval_X, add_zero]
  have hD : D.coeff 0 ≠ 0 := by
    change (Q.comp T * Polynomial.C (P.eval t)).coeff 0 ≠ 0
    rw [Polynomial.coeff_mul_C, hQ0]
    exact mul_ne_zero hQ hP
  have hN : N.coeff 0 = 0 := by
    change (P.comp T * Polynomial.C (Q.eval t) -
      Q.comp T * Polynomial.C (P.eval t)).coeff 0 = 0
    rw [Polynomial.coeff_sub, Polynomial.coeff_mul_C, Polynomial.coeff_mul_C, hP0, hQ0]
    exact sub_eq_zero.mpr (mul_comm _ _)
  have hQseries : PowerSeries.constantCoeff (Q.comp T : PowerSeries F) ≠ 0 := by
    simpa only [Polynomial.constantCoeff_coe, hQ0] using hQ
  have hratio :
      (P.comp T : PowerSeries F) * (Q.comp T : PowerSeries F)⁻¹ *
        PowerSeries.C (Q.eval t / P.eval t) - 1 = S := by
    apply (PowerSeries.eq_mul_inv_iff_mul_eq (by
      simpa only [Polynomial.constantCoeff_coe] using hD)).mpr
    change ((P.comp T : PowerSeries F) * (Q.comp T : PowerSeries F)⁻¹ *
      PowerSeries.C (Q.eval t / P.eval t) - 1) *
        (Q.comp T * Polynomial.C (P.eval t) : Polynomial F) =
      (P.comp T * Polynomial.C (Q.eval t) -
        Q.comp T * Polynomial.C (P.eval t) : Polynomial F)
    simp only [Polynomial.coe_sub, Polynomial.coe_mul, Polynomial.coe_C]
    calc
      _ = (P.comp T : PowerSeries F) *
          ((Q.comp T : PowerSeries F)⁻¹ * (Q.comp T : PowerSeries F)) *
          PowerSeries.C ((Q.eval t / P.eval t) * P.eval t) -
            (Q.comp T : PowerSeries F) * PowerSeries.C (P.eval t) := by
        rw [map_mul]
        ring
      _ = _ := by
        rw [PowerSeries.inv_mul_cancel _ hQseries, div_mul_cancel₀ _ hP, mul_one]
  obtain ⟨heq, hbound⟩ := polynomial_quotient_linear_pole_bound v N D hD
  refine ⟨hratio.symm, heq, ?_, hbound⟩
  change PowerSeries.constantCoeff ((N : PowerSeries F) * (D : PowerSeries F)⁻¹) = 0
  rw [map_mul, Polynomial.constantCoeff_coe, hN, zero_mul]