Documentation

CslibFrontier.Foundations.RingTheory.MvPolynomial.PurePower.Residue

Finite residues for pure-power polynomial relations #

For relations X i ^ ell - r i with totalDegree (r i) < ell, a finite sum of polynomial coefficients defines the formal Laurent residue. The degree bound proves truncated_stable: increasing a sufficiently large truncation bound does not change the sum. Consequently linear is an actual linear functional, and residue_low_degree identifies it with the top-box coefficient at low degree. The coefficient ring is any commutative ring.

This is an algebraic step toward real-arithmetic counting bounds, ported from LeanCanny.CountingHierarchy.PurePowerResidue at lean-canny commit 970f28a5ecefc1327402ade16c068aa4b1b2c183. No resource bound is asserted here.

noncomputable def MvPolynomial.PurePower.indices (n B : ℕ) :
Finset (Fin n → ℕ)

A rectangular finite set of geometric-series indices.

@[simp]
theorem MvPolynomial.PurePower.mem_indices {n B : ℕ} {j : Fin n → ℕ} :
j ∈ indices n B ↔ ∀ (i : Fin n), j i ≤ B
noncomputable def MvPolynomial.PurePower.target {n : ℕ} (ell : ℕ) (j : Fin n → ℕ) :

The target exponent tau + ell*j.

noncomputable def MvPolynomial.PurePower.term {S : Type u_1} [CommRing S] {n : ℕ} (ell : ℕ) (r : Fin n → MvPolynomial (Fin n) S) (v : MvPolynomial (Fin n) S) (j : Fin n → ℕ) :
S

One summand in the finite Laurent coefficient formula.

theorem MvPolynomial.PurePower.numerator_degree {S : Type u_1} [CommRing S] {n ell : ℕ} (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) (v : MvPolynomial (Fin n) S) (j : Fin n → ℕ) :
(v * ∏ i : Fin n, r i ^ j i).totalDegree ≤ v.totalDegree + (ell - 1) * ∑ i : Fin n, j i

The geometric-series numerator grows by at most ell - 1 per index increment.

theorem MvPolynomial.PurePower.term_eq_zero_of_degree_lt {S : Type u_1} [CommRing S] {n ell : ℕ} (hell : 1 ≤ ell) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) (v : MvPolynomial (Fin n) S) (j : Fin n → ℕ) (h : v.totalDegree < n * (ell - 1) + ∑ i : Fin n, j i) :
term ell r v j = 0

The total-degree decrease bounds every contributing geometric-series index.

noncomputable def MvPolynomial.PurePower.truncated {S : Type u_1} [CommRing S] {n : ℕ} (ell : ℕ) (r : Fin n → MvPolynomial (Fin n) S) (B : ℕ) :

A fixed rectangular truncation is a linear map in its numerator.

theorem MvPolynomial.PurePower.truncated_stable {S : Type u_1} [CommRing S] {n ell B C : ℕ} (hell : 1 ≤ ell) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) (v : MvPolynomial (Fin n) S) (hB : v.totalDegree ≤ B) (hBC : B ≤ C) :
(truncated ell r B) v = (truncated ell r C) v

All truncations above the numerator's degree give the same finite sum.

noncomputable def MvPolynomial.PurePower.residue {S : Type u_1} [CommRing S] {n : ℕ} (ell : ℕ) (r : Fin n → MvPolynomial (Fin n) S) (v : MvPolynomial (Fin n) S) :
S

The truncation at the numerator degree gives the canonical residue functional.

theorem MvPolynomial.PurePower.residue_eq_truncated {S : Type u_1} [CommRing S] {n ell B : ℕ} (hell : 1 ≤ ell) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) (v : MvPolynomial (Fin n) S) (hB : v.totalDegree ≤ B) :
residue ell r v = (truncated ell r B) v
theorem MvPolynomial.PurePower.residue_add {S : Type u_1} [CommRing S] {n ell : ℕ} (hell : 1 ≤ ell) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) (v w : MvPolynomial (Fin n) S) :
residue ell r (v + w) = residue ell r v + residue ell r w
theorem MvPolynomial.PurePower.residue_smul {S : Type u_1} [CommRing S] {n ell : ℕ} (hell : 1 ≤ ell) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) (c : S) (v : MvPolynomial (Fin n) S) :
residue ell r (c • v) = c • residue ell r v
noncomputable def MvPolynomial.PurePower.linear {S : Type u_1} [CommRing S] {n ell : ℕ} (hell : 1 ≤ ell) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) :

The canonical residue, with linearity derived from finite degree bounds.

@[simp]
theorem MvPolynomial.PurePower.linear_apply {S : Type u_1} [CommRing S] {n ell : ℕ} (hell : 1 ≤ ell) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) (v : MvPolynomial (Fin n) S) :
(linear hell r hr) v = residue ell r v
theorem MvPolynomial.PurePower.residue_low_degree {S : Type u_1} [CommRing S] {n ell : ℕ} (hell : 1 ≤ ell) (r : Fin n → MvPolynomial (Fin n) S) (hr : ∀ (i : Fin n), (r i).totalDegree < ell) (v : MvPolynomial (Fin n) S) (hv : v.totalDegree ≤ n * (ell - 1)) :
residue ell r v = v.coeff (Finsupp.equivFunOnFinite.symm fun (x : Fin n) => ell - 1)

At low degree the residue is simply the top-box coefficient.