Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.LocalDeformation

The deformed contraction in local coordinates #

This file connects the polynomial F(T) of (D.8) in [OAI26k] (§D.4.3, p. 59) with its values at the interpolation points of §D.4.4–§D.4.5 (pp. 61–62).

Let B be a commutative ring receiving ℤ_(2) through κ, and let N be a Boolean tensor network with entries in B. For a packing of the edges into packets of 2 ^ a slots and a grid point t, the local deformation (TensorNetwork.localDeformation) is the deformed contraction of N along the matrix of local kernels W_{y - x}(t + α z) over B[z] (cauchyLocalMatrix), built from Cslib.Circuits.Frontier.localKernel. It is the manuscript's F(t + α z) ∈ A[z]:

So the values of the children of §D.4.6 at ζ are values of one polynomial over B, and interpolation recovers its reduction.

Main definitions #

Main results #

References #

noncomputable def Cslib.Circuits.Frontier.cauchyLocalMatrix {B : Type u_1} {E : Type u_3} {P : Type u_4} [CommRing B] [DecidableEq P] (κ : ↥(Rat.padicValuation 2).integer →+* B) (a : ℕ) (t : ℤ) (packet : E → P) (slot : E → ℕ) :

The Cauchy matrix of a packing into packets of 2 ^ a slots in local coordinates z ↦ W(t + α z), α = 2 ^ (a + 1), over B[z] for a ring B receiving ℤ_(2) through κ: between two edges of the same packet, the local kernel at the difference of their slots, and zero between packets.

theorem Cslib.Circuits.Frontier.TensorNetwork.map_map {V : Type u_2} {E : Type u_3} {R : Type u_5} {S : Type u_6} {T : Type u_7} {U : Type u_8} [CommSemiring R] [CommSemiring S] [CommSemiring T] (f : R →+* S) (g : S →+* T) (N : TensorNetwork R U V E) :
map g (map f N) = map (g.comp f) N

Mapping the tensors twice is mapping them by the composition.

noncomputable def Cslib.Circuits.Frontier.TensorNetwork.localDeformation {B : Type u_1} {V : Type u_2} {E : Type u_3} {P : Type u_4} [CommRing B] [Fintype V] [Fintype E] [DecidableEq E] [DecidableEq P] (N : TensorNetwork B Bool V E) (side : V → Bool) (κ : ↥(Rat.padicValuation 2).integer →+* B) (a : ℕ) (t : ℤ) (packet : E → P) (slot : E → ℕ) :

The deformed contraction along the Cauchy matrix of a packing in local coordinates at the grid point t, as a polynomial in z over B: the manuscript's F(t + α z) ∈ A[z].

theorem Cslib.Circuits.Frontier.TensorNetwork.map_localDeformation {B : Type u_1} {V : Type u_2} {E : Type u_3} {P : Type u_4} [CommRing B] [Fintype V] [Fintype E] [DecidableEq E] [DecidableEq P] {R : Type u_5} [CommRing R] [Algebra ℚ R] (N : TensorNetwork B Bool V E) (side : V → Bool) (κ : ↥(Rat.padicValuation 2).integer →+* B) (ι : B →+* R) (hκ : ι.comp κ = (algebraMap ℚ R).comp (Rat.padicValuation 2).integer.subtype) {a : ℕ} {packet : E → P} {slot : E → ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) :
Polynomial.map ι (N.localDeformation side κ a t packet slot) = ((map Polynomial.C (map ι N)).deformedContraction side ((cauchyMatrix (2 ^ a) packet slot).map ⇑(Polynomial.mapRingHom (algebraMap ℚ R)))).comp (Polynomial.C ↑t + Polynomial.C (2 ^ (a + 1)) * Polynomial.X)

The local deformation is F(t + α z). In a ℚ-algebra R receiving B through ι compatibly with ℚ, the image of the local deformation at a grid point t is the deformed contraction F(T) along the Cauchy matrix, composed with T = t + α z.

theorem Cslib.Circuits.Frontier.TensorNetwork.eval₂_localDeformation {B : Type u_1} {V : Type u_2} {E : Type u_3} {P : Type u_4} [CommRing B] [Fintype V] [Fintype E] [DecidableEq E] [DecidableEq P] {R' : Type u_5} [CommRing R'] (N : TensorNetwork B Bool V E) (side : V → Bool) (κ : ↥(Rat.padicValuation 2).integer →+* B) (π : B →+* R') (ζ : R') (a : ℕ) (t : ℤ) (packet : E → P) (slot : E → ℕ) :
Polynomial.eval₂ π ζ (N.localDeformation side κ a t packet slot) = (map π N).deformedContraction side (cauchyValueMatrix (π.comp κ) ζ a t packet slot)

Values of the local deformation. Under a ring homomorphism π : B → R', the value of the local deformation at z = ζ is the deformed contraction of the reduced network along the Cauchy matrix at T = t + α ζ.

Degrees #

theorem Cslib.Circuits.Frontier.TensorNetwork.natDegree_deformedContraction_le {V : Type u_2} {E : Type u_3} [Fintype V] [Fintype E] [DecidableEq E] {R : Type u_5} [CommRing R] (N : TensorNetwork R Bool V E) (side : V → Bool) (W : Matrix E E (Polynomial R)) {d : ℕ} (hW : ∀ (e e' : E), (W e e').natDegree ≤ d) :

Degree of a deformed contraction. For tensors that are constants and a matrix whose entries have degree at most d, the deformed contraction has degree at most d times the number of edges: it is a sum of products of one affine factor per edge.

theorem Cslib.Circuits.Frontier.TensorNetwork.natDegree_localKernel_le {a : ℕ} {t d : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) (hd : d ∈ cauchyGrid (2 ^ a)) :
(localKernel a t d).natDegree ≤ 2 * 2 ^ a - 1

On the grid, the local kernel has degree at most 2 L - 1, L = 2 ^ a.

theorem Cslib.Circuits.Frontier.TensorNetwork.natDegree_localDeformation_le {B : Type u_1} {V : Type u_2} {E : Type u_3} {P : Type u_4} [CommRing B] [Fintype V] [Fintype E] [DecidableEq E] [DecidableEq P] (N : TensorNetwork B Bool V E) (side : V → Bool) (κ : ↥(Rat.padicValuation 2).integer →+* B) {a : ℕ} {packet : E → P} {slot : E → ℕ} (hslot : ∀ (e : E), slot e < 2 ^ a) {t : ℤ} (ht : t ∈ cauchyGrid (2 ^ a)) :
(N.localDeformation side κ a t packet slot).natDegree ≤ Fintype.card E * (2 * 2 ^ a - 1)

The local deformation has degree at most M (2 L - 1) for M edges.

theorem Cslib.Circuits.Frontier.TensorNetwork.natDegree_deformedContraction_cauchyMatrix_le {V : Type u_2} {E : Type u_3} {P : Type u_4} [Fintype V] [Fintype E] [DecidableEq E] [DecidableEq P] {R : Type u_5} [CommRing R] [Algebra ℚ R] (N : TensorNetwork R Bool V E) (side : V → Bool) {L : ℕ} {packet : E → P} {slot : E → ℕ} (hslot : ∀ (e : E), slot e < L) :

The deformed contraction F(T) along the Cauchy matrix of a packing into packets of L slots has degree at most M (2 L - 1) for M edges (§D.4.3 of [OAI26k], p. 59).