Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.IntegralCoordinates

Integral local coordinates for the Cauchy kernel #

This file proves Lemma D.4 of [OAI26k] (§D.4.3, p. 59; proof on p. 60): near each grid point the Cauchy kernel has 2-integral coefficients. Let L = 2 ^ a, so that the grid S = {-L, …, L - 1} is a complete residue system modulo α = 2 ^ (a + 1). For t, d ∈ S, the polynomial z ↦ W_d(t + α z) obtained from the Cauchy kernel W_d = cauchyKernel L d has coefficients in ℤ_(2), the rationals with odd denominator (Cslib.Circuits.Frontier.cauchyKernel_comp_mem_lifts); when d ≠ t it is moreover divisible by 2 (Cslib.Circuits.Frontier.exists_cauchyKernel_comp_eq_two_mul). Here ℤ_(2) is the valuation ring (Rat.padicValuation 2).integer (available as the scoped notation ℤ₍₂₎ inside Cslib.Circuits.Frontier.TensorNetwork), and "coefficients in ℤ_(2)" is membership in Polynomial.lifts of its inclusion.

The proof is the manuscript's. Since S is a complete residue system modulo 2 ^ (a + 1), the nonzero differences t - q, q ∈ S, have the same 2-adic valuations for every t; so C'(t) = ∏_{q ≠ t} (t - q) has the valuation of C'(0) (Cslib.Circuits.Frontier.padicValuation_prod_sub_eq). Each factor t - q + α z with q ≠ t is (t - q) (1 + α / (t - q) z) with α / (t - q) divisible by 2, and the factor q = t is α z.

Entrywise, the Cauchy matrix has the same property (Cslib.Circuits.Frontier.cauchyMatrix_comp_mem_lifts). Consequently, for tensors with entries in a subring B of a ℚ-algebra R that contains ℤ_(2), the deformed contraction F(T) along the Cauchy matrix satisfies F(t + α z) ∈ B[z] (Cslib.Circuits.Frontier.TensorNetwork.deformedContraction_cauchyMatrix_comp_mem_liftsRing): the manuscript's F(t + α z) ∈ A[z] with B = O. Coefficients in ℤ_(2) reduce modulo 2 ^ p through Rat.padicIntegerToZModPow; the valuations of integers that the proof uses are Rat.padicValuation_pow_le_of_abs_lt and Rat.padicValuation_add_pow_of_abs_lt. The algorithmic half of the lemma, evaluating W_xy(t + α ζ) mod 2 ^ p in polynomial time, belongs to the runtime development.

Main results #

References #

Two-adic valuations on the grid #

theorem Cslib.Circuits.Frontier.padicValuation_prod_sub_eq_prod_Ioo {a : ℕ} {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) :
(Rat.padicValuation 2) (∏ q ∈ (cauchyGrid (2 ^ a)).erase t, (↑t - ↑q)) = ∏ r ∈ Finset.Ioo 0 (2 ^ (a + 1)), (Rat.padicValuation 2) ↑r

The grid is a complete residue system. For t on the grid of L = 2 ^ a slots, the nonzero differences t - q, q ∈ S, have the valuations of 1, …, 2 L - 1: send q to the residue of t - q modulo 2 L.

theorem Cslib.Circuits.Frontier.padicValuation_prod_sub_eq {a : ℕ} {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) :
(Rat.padicValuation 2) (∏ q ∈ (cauchyGrid (2 ^ a)).erase t, (↑t - ↑q)) = (Rat.padicValuation 2) (∏ q ∈ (cauchyGrid (2 ^ a)).erase 0, (0 - ↑q))

v₂(C'(t)) = v₂(C'(0)) on the grid of L = 2 ^ a slots, where C'(t) = ∏_{q ∈ S, q ≠ t} (t - q).

theorem Cslib.Circuits.Frontier.padicValuation_two_pow_le_sub {a : ℕ} {t q : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hq : q ∈ cauchyGrid (2 ^ a)) (hne : q ≠ t) :
(Rat.padicValuation 2) (2 ^ a) ≤ (Rat.padicValuation 2) (↑t - ↑q)

Distinct grid points of L = 2 ^ a slots differ by at most a factors of two.

The kernel in local coordinates #

The subring ℤ_(2) of rationals with odd denominator, Valuation.integer (Rat.padicValuation 2). Scoped to Cslib.Circuits.Frontier.TensorNetwork.

Lemma D.4, divisibility. Away from its own node, d ≠ t, the Cauchy kernel in local coordinates z ↦ W_d(t + α z), α = 2 ^ (a + 1), is twice a polynomial with 2-integral coefficients: the factor α z survives, and α / (t - d) is divisible by 2.

Lemma D.4, integrality. For grid points t, d of L = 2 ^ a slots, the Cauchy kernel in local coordinates z ↦ W_d(t + α z), α = 2 ^ (a + 1), has coefficients in ℤ_(2). At its own node, d = t, its constant term is C'(t) / C'(0), of valuation one, and the other factors are 1 + α / (t - q) z.

The Cauchy matrix and the deformed contraction #

theorem Cslib.Circuits.Frontier.cauchyMatrix_comp_mem_lifts {E : Type u_1} {P : Type u_2} [DecidableEq P] {a : ℕ} {packet : E → P} {slot : E → ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (e e' : E) :

Lemma D.4 for the Cauchy matrix. For a packing into packets of 2 ^ a slots, every entry of the Cauchy matrix in local coordinates z ↦ W(t + α z) has 2-integral coefficients.

theorem Cslib.Circuits.Frontier.TensorNetwork.deformedContraction_mem {R : Type u_1} {V : Type u_2} {E : Type u_3} [CommRing R] [Fintype V] [Fintype E] [DecidableEq E] (N : TensorNetwork R Bool V E) (side : V → Bool) (W : Matrix E E R) (T : Subring R) (hN : ∀ (v : V) (x : E → Bool), N.tensor v x ∈ T) (hW : ∀ (e e' : E), W e e' ∈ T) :

A deformed contraction lies in every subring that contains the tensor entries and the matrix entries: it is a polynomial expression in them.

theorem Cslib.Circuits.Frontier.TensorNetwork.deformedContraction_cauchyMatrix_comp_mem_liftsRing {R : Type u_1} {V : Type u_2} {E : Type u_3} [CommRing R] [Fintype V] [Fintype E] [DecidableEq E] [Algebra ℚ R] {P : Type u_4} [DecidableEq P] (N : TensorNetwork R Bool V E) (side : V → Bool) {a : ℕ} {packet : E → P} {slot : E → ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (B : Subring R) (hB : ∀ c ∈ (Rat.padicValuation 2).integer, (algebraMap ℚ R) c ∈ B) (hN : ∀ (v : V) (x : E → Bool), N.tensor v x ∈ B) :

Lemma D.4 for the deformed contraction. Let R be a ℚ-algebra and B a subring of R containing ℤ_(2), and let the tensors have entries in B. Along the Cauchy matrix of a packing into packets of 2 ^ a slots, the deformed contraction F(T) satisfies F(t + α z) ∈ B[z] at every grid point t, with α = 2 ^ (a + 1). For the manuscript, R = K, B = O and F(0) is the contraction (eval_zero_deformedContraction_cauchyMatrix).