Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.CauchyModes

The geometric expansion of the Cauchy kernel #

This file proves the geometric expansion (D.12) of [OAI26k] (§D.4.5, p. 62), which turns the crossing entries of the Cauchy matrix near a grid point into the modes of Cslib.Circuits.Frontier.TensorNetwork.ModeSplitting.

Local kernels (localKernel). By Lemma D.4 (cauchyKernel_comp_mem_lifts), the Cauchy kernel W_d on the grid of L = 2 ^ a slots has 2-integral coefficients in local coordinates z ↦ W_d(t + α z), α = 2 ^ (a + 1). localKernel a t d is this polynomial over ℤ_(2), and for a ring homomorphism κ : ℤ_(2) → R and ζ ∈ R, kernelValue κ ζ a t d is its value W_d(t + α ζ) in R.

The expansion. Fix t and two grid points d₀ and d = d₀ + 2 ^ (i + 1) j with 2 ^ (i + 1) ∤ t - d₀, i ≤ a. All kernels are C(T) / (C'(0) (T - d)), so W_d(T) (T - d) = W_{d₀}(T) (T - d₀). Write t - d₀ = 2 ^ v u₀ with u₀ odd and v ≤ i; dividing by 2 ^ v in ℤ_(2)[z] makes

W_d(t + α z) (u₀ + 2 ^ (a + 1 - v) z - 2 ^ (i + 1 - v) j) equal to W_{d₀}(t + α z) (u₀ + 2 ^ (a + 1 - v) z)

(localKernel_mul_eq). In a ring R with 2 ^ p = 0, U = u₀ + 2 ^ (a + 1 - v) ζ is a unit, and with the cross ratio ρ = 2 ^ (i + 1 - v) U⁻¹ = 2 ^ (i + 1) / (T - d₀) (crossRatio) the factor 1 - ρ j is inverted by its geometric series, since 2 ∣ ρ:

W_d(T) = ∑_{b < p} W_{d₀}(T) ρ ^ b j ^ b (kernelValue_eq_sum),

the manuscript's (D.12), there written with the remainder beyond b + 1 < p_t dropped modulo 2 ^ p_t. When d₀ ≠ t, W_{d₀}(T) is divisible by 2 (Lemma D.4), so the coefficient of j ^ b is divisible by 2 ^ (b + 1) (two_pow_dvd_kernelValue_mul_crossRatio_pow): the weight w_Z = b + 1 of the mode.

The modes of a packing (TensorNetwork.cauchyModeSplitting). Pack the edges into packets of 2 ^ a slots, oriented in coordinate i as in Lemma D.3 (2): each packet q has a pair of groups, and digit i of an edge's slot says which of them is its row group. For a grid point t of valuation i, a row slot x and a column slot y of a packet with two different groups lie in different groups exactly when their digits i agree, and then v₂(t - y₀ + x) ≤ i for the tile y₀ = y mod 2 ^ (i + 1) (not_dvd_sub_sub_of_testBit_eq). So the Cauchy matrix at T = t + α ζ (TensorNetwork.cauchyValueMatrix) splits into its local entries and one mode per packet, tile and b < p, of weight b + 1, and the child identity of Cslib.Circuits.Frontier.TensorNetwork.ModeSplitting applies (TensorNetwork.deformedContraction_cauchyValueMatrix_eq_sum). The manuscript's modes are those with b + 1 < p_t; the one with b + 1 = p_t has weight p_t and drops out of (D.14).

Main definitions #

Main results #

References #

Local kernels over ℤ_(2) #

The Cauchy kernel W_d on the grid of 2 ^ a slots in local coordinates z ↦ W_d(t + α z), α = 2 ^ (a + 1), as a polynomial over ℤ_(2) (Lemma D.4 of [OAI26k]); zero when t or d is off the grid.

The local kernel is the Cauchy kernel composed with t + α z.

theorem Cslib.Circuits.Frontier.exists_localKernel_eq_two_mul {a : ℕ} {t d : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hd : d ∈ cauchyGrid (2 ^ a)) (hdt : d ≠ t) :

Lemma D.4, divisibility, over ℤ_(2). Away from its node, the local kernel is twice a polynomial over ℤ_(2).

theorem Cslib.Circuits.Frontier.localKernel_mul_eq {a i v : ℕ} {t d₀ d j u₀ : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hd₀ : d₀ ∈ cauchyGrid (2 ^ a)) (hd : d ∈ cauchyGrid (2 ^ a)) (hdd : d = d₀ + 2 ^ (i + 1) * j) (htd : t - d₀ = 2 ^ v * u₀) (hvi : v ≤ i) (hia : i ≤ a) :
localKernel a t d * (Polynomial.C ↑u₀ + Polynomial.C (2 ^ (a + 1 - v)) * Polynomial.X - Polynomial.C ↑(2 ^ (i + 1 - v) * j)) = localKernel a t d₀ * (Polynomial.C ↑u₀ + Polynomial.C (2 ^ (a + 1 - v)) * Polynomial.X)

The kernels of a tile. For grid points d₀ and d = d₀ + 2 ^ (i + 1) j, with t - d₀ = 2 ^ v u₀ and v ≤ i ≤ a, the local kernels satisfy W_d (u₀ + 2 ^ (a + 1 - v) z - 2 ^ (i + 1 - v) j) = W_{d₀} (u₀ + 2 ^ (a + 1 - v) z): both sides are C(t + α z) / (C'(0) 2 ^ v).

Values in a ring where 2 is nilpotent #

noncomputable def Cslib.Circuits.Frontier.kernelValue {R : Type u_1} [CommRing R] (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) (a : ℕ) (t d : ℤ) :
R

The value W_d(t + α ζ) of the Cauchy kernel at T = t + α ζ, α = 2 ^ (a + 1), in a ring R receiving ℤ_(2) through κ.

noncomputable def Cslib.Circuits.Frontier.crossRatio {R : Type u_1} [CommRing R] (a i : ℕ) (t d₀ : ℤ) (ζ : R) :
R

The cross ratio ρ = 2 ^ (i + 1) / (T - d₀) at T = t + α ζ: with t - d₀ = 2 ^ v u₀, u₀ odd, it is 2 ^ (i + 1 - v) times the inverse of u₀ + 2 ^ (a + 1 - v) ζ.

theorem Cslib.Circuits.Frontier.isUnit_crossRatio_denom {R : Type u_1} [CommRing R] {p a i : ℕ} (hp : 2 ^ p = 0) (hia : i ≤ a) {t d₀ : ℤ} (hcross : ¬2 ^ (i + 1) ∣ t - d₀) (ζ : R) :
IsUnit (↑((t - d₀) / 2 ^ padicValInt 2 (t - d₀)) + 2 ^ (a + 1 - padicValInt 2 (t - d₀)) * ζ)

Write t - d₀ = 2 ^ v u₀ with u₀ odd. If 2 is nilpotent, 2 ^ (i + 1) ∤ t - d₀ and i ≤ a, then the element u₀ + 2 ^ (a + 1 - v) ζ that crossRatio a i t d₀ ζ inverts is a unit: v ≤ i ≤ a, so it is 1 plus a nilpotent multiple of 2.

theorem Cslib.Circuits.Frontier.kernelValue_eq_sum {R : Type u_1} [CommRing R] (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) {p a i : ℕ} (hp : 2 ^ p = 0) {t d₀ d j : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hd₀ : d₀ ∈ cauchyGrid (2 ^ a)) (hd : d ∈ cauchyGrid (2 ^ a)) (hdd : d = d₀ + 2 ^ (i + 1) * j) (hcross : ¬2 ^ (i + 1) ∣ t - d₀) (hia : i ≤ a) :
kernelValue κ ζ a t d = ∑ b ∈ Finset.range p, kernelValue κ ζ a t d₀ * crossRatio a i t d₀ ζ ^ b * ↑j ^ b

The geometric expansion (D.12). Let 2 ^ p = 0 in R, and let d₀ and d = d₀ + 2 ^ (i + 1) j be grid points of 2 ^ a slots with 2 ^ (i + 1) ∤ t - d₀ and i ≤ a. Then W_d(T) = ∑_{b < p} W_{d₀}(T) ρ ^ b j ^ b at T = t + α ζ, with ρ = crossRatio a i t d₀ ζ.

theorem Cslib.Circuits.Frontier.two_pow_dvd_kernelValue_mul_crossRatio_pow {R : Type u_1} [CommRing R] (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) {a i : ℕ} {t d₀ : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hd₀ : d₀ ∈ cauchyGrid (2 ^ a)) (hcross : ¬2 ^ (i + 1) ∣ t - d₀) (b : ℕ) :
2 ^ (b + 1) ∣ kernelValue κ ζ a t d₀ * crossRatio a i t d₀ ζ ^ b

The coefficients of (D.12) have weight b + 1. When d₀ ≠ t, the coefficient W_{d₀}(T) ρ ^ b of j ^ b is divisible by 2 ^ (b + 1).

The modes of a packing #

theorem Cslib.Circuits.Frontier.not_dvd_sub_sub_of_testBit_eq {t : ℤ} {i x y₀ : ℕ} (hti : 2 ^ i ∣ t) (hti' : ¬2 ^ (i + 1) ∣ t) (hy₀ : y₀ < 2 ^ (i + 1)) (hbit : x.testBit i = y₀.testBit i) :
¬2 ^ (i + 1) ∣ t - (↑y₀ - ↑x)

A row and a column slot with the same binary digit i, at a grid point t of valuation i: t - (y₀ - x) is not divisible by 2 ^ (i + 1), for the residue y₀ < 2 ^ (i + 1) of the column slot. (Otherwise y₀ ≡ x + 2 ^ i modulo 2 ^ (i + 1), which flips digit i.)

noncomputable def Cslib.Circuits.Frontier.TensorNetwork.cauchyValueMatrix {R : Type u_1} [CommRing R] {E : Type u_3} {P : Type u_5} [DecidableEq P] (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) (a : ℕ) (t : ℤ) (packet : E → P) (slot : E → ℕ) :
Matrix E E R

The Cauchy matrix of a packing at T = t + α ζ, α = 2 ^ (a + 1): between two edges of the same packet, the Cauchy kernel at the difference of their slots, and zero between packets (the manuscript's (D.7) at T).

noncomputable def Cslib.Circuits.Frontier.TensorNetwork.cauchyModeCoeff {R : Type u_1} [CommRing R] {E : Type u_3} {G : Type u_4} {P : Type u_5} [DecidableEq G] [DecidableEq P] (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) (a i : ℕ) (t : ℤ) (packet : E → P) (slot : E → ℕ) (sym : P → G × G) {p : ℕ} (e : E) (Z : P × Fin (2 ^ (i + 1)) × Fin p) :
R

The coefficient of the mode Z = (q, y₀, b) in the row form of e: for a row of the packet q whose two groups differ, with digit i of its slot x equal to that of y₀, it is W_{y₀ - x}(T) ρ ^ b, the coefficient of j ^ b in (D.12); otherwise zero.

noncomputable def Cslib.Circuits.Frontier.TensorNetwork.cauchyModeForm {E : Type u_3} {G : Type u_4} {P : Type u_5} [DecidableEq G] [DecidableEq P] (R : Type u_6) [CommRing R] (i : ℕ) (packet : E → P) (slot : E → ℕ) (sym : P → G × G) {p : ℕ} (Z : P × Fin (2 ^ (i + 1)) × Fin p) (e' : E) :
R

The form of the mode Z = (q, y₀, b) at the column e': for a column of the packet q whose two groups differ, in slot y = y₀ + 2 ^ (i + 1) j of the tile y₀, it is j ^ b; otherwise zero.

noncomputable def Cslib.Circuits.Frontier.TensorNetwork.cauchyModeSplitting {R : Type u_1} [CommRing R] {V : Type u_2} {E : Type u_3} {G : Type u_4} {P : Type u_5} [Fintype P] [DecidableEq G] [DecidableEq P] {N : TensorNetwork R Bool V E} {group : V → G} {packet : E → P} {slot : E → ℕ} {sym : P → G × G} {i : ℕ} (side : V → Bool) (hsrc : ∀ (e : E), side (N.src e) = true) (htgt : ∀ (e : E), side (N.tgt e) = false) (horient : ∀ (e : E), (group (N.src e), group (N.tgt e)) = if (slot e).testBit i = true then (sym (packet e)).swap else sym (packet e)) {a : ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) (hia : i < a) (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) {p : ℕ} (hp : 2 ^ p = 0) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hti : 2 ^ i ∣ t) (hti' : ¬2 ^ (i + 1) ∣ t) :
N.ModeSplitting (cauchyValueMatrix κ ζ a t packet slot) G P (P × Fin (2 ^ (i + 1)) × Fin p)

The modes of the Cauchy matrix (§D.4.5). Let the edges of N be packed into packets of 2 ^ a slots, with an orientation in coordinate i < a: each packet q has a pair of groups sym q, and an edge in slot x of q runs from group (sym q).1 to group (sym q).2 when digit i of x is 0, and the other way when it is 1. Let t be a grid point of valuation i and 2 ^ p = 0 in R. Then the Cauchy matrix at T = t + α ζ has a mode splitting: entries between the same group are local, and for each packet q whose two groups differ, each tile y₀ of the column slots y ≡ y₀ (mod 2 ^ (i + 1)) and each b < p there is a mode with coefficient W_{y₀ - x}(T) ρ ^ b in the row form of slot x (cauchyModeCoeff) and form ∑ j ^ b X_y over the columns y = y₀ + 2 ^ (i + 1) j of the tile (cauchyModeForm): the manuscript's (D.12).

@[simp]
theorem Cslib.Circuits.Frontier.TensorNetwork.cauchyModeSplitting_side {R : Type u_1} [CommRing R] {V : Type u_2} {E : Type u_3} {G : Type u_4} {P : Type u_5} [Fintype P] [DecidableEq G] [DecidableEq P] {N : TensorNetwork R Bool V E} {group : V → G} {packet : E → P} {slot : E → ℕ} {sym : P → G × G} {i : ℕ} (side : V → Bool) (hsrc : ∀ (e : E), side (N.src e) = true) (htgt : ∀ (e : E), side (N.tgt e) = false) (horient : ∀ (e : E), (group (N.src e), group (N.tgt e)) = if (slot e).testBit i = true then (sym (packet e)).swap else sym (packet e)) {a : ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) (hia : i < a) (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) {p : ℕ} (hp : 2 ^ p = 0) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hti : 2 ^ i ∣ t) (hti' : ¬2 ^ (i + 1) ∣ t) :
(cauchyModeSplitting side hsrc htgt horient hslot hia κ ζ hp ht hti hti').side = side
@[simp]
theorem Cslib.Circuits.Frontier.TensorNetwork.cauchyModeSplitting_group {R : Type u_1} [CommRing R] {V : Type u_2} {E : Type u_3} {G : Type u_4} {P : Type u_5} [Fintype P] [DecidableEq G] [DecidableEq P] {N : TensorNetwork R Bool V E} {group : V → G} {packet : E → P} {slot : E → ℕ} {sym : P → G × G} {i : ℕ} (side : V → Bool) (hsrc : ∀ (e : E), side (N.src e) = true) (htgt : ∀ (e : E), side (N.tgt e) = false) (horient : ∀ (e : E), (group (N.src e), group (N.tgt e)) = if (slot e).testBit i = true then (sym (packet e)).swap else sym (packet e)) {a : ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) (hia : i < a) (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) {p : ℕ} (hp : 2 ^ p = 0) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hti : 2 ^ i ∣ t) (hti' : ¬2 ^ (i + 1) ∣ t) :
(cauchyModeSplitting side hsrc htgt horient hslot hia κ ζ hp ht hti hti').group = group
@[simp]
theorem Cslib.Circuits.Frontier.TensorNetwork.cauchyModeSplitting_packet {R : Type u_1} [CommRing R] {V : Type u_2} {E : Type u_3} {G : Type u_4} {P : Type u_5} [Fintype P] [DecidableEq G] [DecidableEq P] {N : TensorNetwork R Bool V E} {group : V → G} {packet : E → P} {slot : E → ℕ} {sym : P → G × G} {i : ℕ} (side : V → Bool) (hsrc : ∀ (e : E), side (N.src e) = true) (htgt : ∀ (e : E), side (N.tgt e) = false) (horient : ∀ (e : E), (group (N.src e), group (N.tgt e)) = if (slot e).testBit i = true then (sym (packet e)).swap else sym (packet e)) {a : ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) (hia : i < a) (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) {p : ℕ} (hp : 2 ^ p = 0) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hti : 2 ^ i ∣ t) (hti' : ¬2 ^ (i + 1) ∣ t) :
(cauchyModeSplitting side hsrc htgt horient hslot hia κ ζ hp ht hti hti').packet = packet
theorem Cslib.Circuits.Frontier.TensorNetwork.two_pow_dvd_cauchyModeCoeff {R : Type u_1} [CommRing R] {E : Type u_3} {G : Type u_4} {P : Type u_5} [DecidableEq G] [DecidableEq P] {packet : E → P} {slot : E → ℕ} {sym : P → G × G} {i a : ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) (hia : i < a) (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) {p : ℕ} {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hti : 2 ^ i ∣ t) (hti' : ¬2 ^ (i + 1) ∣ t) (e : E) (Z : P × Fin (2 ^ (i + 1)) × Fin p) :
2 ^ (↑Z.2.2 + 1) ∣ cauchyModeCoeff κ ζ a i t packet slot sym e Z

The modes have weight b + 1: the coefficient of the mode (q, y₀, b) is divisible by 2 ^ (b + 1), so the child identity (D.16) applies with these weights.

theorem Cslib.Circuits.Frontier.TensorNetwork.deformedContraction_cauchyValueMatrix_eq_sum {R : Type u_1} [CommRing R] {V : Type u_2} {E : Type u_3} {G : Type u_4} {P : Type u_5} [Fintype E] [Fintype P] [DecidableEq G] [DecidableEq P] {N : TensorNetwork R Bool V E} {group : V → G} {packet : E → P} {slot : E → ℕ} {sym : P → G × G} {i : ℕ} [Fintype V] [DecidableEq V] [Fintype G] [DecidableEq E] (side : V → Bool) (hsrc : ∀ (e : E), side (N.src e) = true) (htgt : ∀ (e : E), side (N.tgt e) = false) (horient : ∀ (e : E), (group (N.src e), group (N.tgt e)) = if (slot e).testBit i = true then (sym (packet e)).swap else sym (packet e)) {a : ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) (hia : i < a) (κ : ↥(Rat.padicValuation 2).integer →+* R) (ζ : R) {p : ℕ} (hp : 2 ^ p = 0) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hti : 2 ^ i ∣ t) (hti' : ¬2 ^ (i + 1) ∣ t) :
N.deformedContraction side (cauchyValueMatrix κ ζ a t packet slot) = ∑ β ∈ modeBudget (fun (Z : P × Fin (2 ^ (i + 1)) × Fin p) => ↑Z.2.2 + 1) p, ∏ g : G, ((cauchyModeSplitting side hsrc htgt horient hslot hia κ ζ hp ht hti hti').child β g).contraction

The child identity for the Cauchy matrix ((D.16) of [OAI26k] at an interpolation value). With 2 ^ p = 0 in R, the deformed contraction along the Cauchy matrix of a packing at T = t + α ζ, for a grid point t of valuation i, is the sum over the exponent tuples of total weight ∑ (b + 1) β_{(q, y₀, b)} < p of the products over the groups of the contractions of the children of cauchyModeSplitting.