Documentation

CslibFrontier.Foundations.LinearAlgebra.Tensor.Party.WireExponent

Spectral points at unit tensors and wires #

Lemma A.2 of VP ≠ VNP over every field [Ant26]. A spectral point F has the value q ^ g at the unit tensor of size q ≥ 1 with legs at π a, where g is the unit exponent F.unitExponent π ≥ 0 (SpectralPoint.apply_push_unit). For wires, g is the wire exponent F.wireExponent p q. It is a pseudometric with values in [0, 1], and the unit exponent of a set of parties is at most the sum of the wire exponents along the edges of any tree on them (SpectralPoint.unitExponent_le_sum_of_isTree). Moving the legs of a tensor changes the value of a spectral point at most by the values at wires between the old and the new positions (SpectralPoint.apply_push_le), and the wire exponents of a pull-back are those of the images (SpectralPoint.pull_wireExponent).

The support point (SpectralPoint.support) has wire exponents 0, and the powers F ^ s for 0 < s ≤ 1 (SpectralPoint.rpow, the last example after Definition A.1) have s times those of F.

Main definitions #

Main results #

References #

theorem Cslib.PartyTensor.push_unit_le_prod_wire {I A : Type} [Fintype I] [DecidableEq I] [Fintype A] [DecidableEq A] {K : Type} [CommSemiring K] {E : Type} [Fintype E] [DecidableEq E] [Nonempty A] (q : ℕ) (π : A → I) (a b : E → A) (hconn : ∀ (f : A → Fin q), (∀ (e : E), f (a e) = f (b e)) → ∀ (p p' : A), f p = f p') :
push π (unit K A q) ≤ prod fun (e : E) => wire K q (π (a e)) (π (b e))

A unit tensor whose legs π follow a connected graph (with edges from a e to b e) is a restriction of the product of the wires on the edges. Of the graph only connectedness is used: a function to Fin q that is constant along the edges is constant.

noncomputable def Cslib.PartyTensor.SpectralPoint.unitExponent {I A : Type} [Fintype I] [DecidableEq I] [Fintype A] [DecidableEq A] {K : Type} [CommSemiring K] (F : SpectralPoint K I) (π : A → I) :

The unit exponent of F at the legs π: log₂ of its value at the unit tensor of size 2 with a leg at π a for every a (the g_φ of Lemma A.2).

A wire has no direction.

The unit exponent of two parties is their wire exponent.

@[simp]
theorem Cslib.PartyTensor.SpectralPoint.pull_wireExponent {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] {K : Type} [CommSemiring K] (F : SpectralPoint K I) (π : J → I) (p q : J) :
(F.pull π).wireExponent p q = F.wireExponent (π p) (π q)

The wire exponents of a pull-back are those of the images.

noncomputable def Cslib.PartyTensor.SpectralPoint.rpow {I : Type} [Fintype I] [DecidableEq I] {K : Type} [CommSemiring K] (F : SpectralPoint K I) (s : ℝ) (h0 : 0 < s) (h1 : s ≤ 1) :

The power F ^ s of a spectral point, for 0 < s ≤ 1 (the last example after Definition A.1).

@[simp]
theorem Cslib.PartyTensor.SpectralPoint.rpow_apply {I : Type} [Fintype I] [DecidableEq I] {K : Type} [CommSemiring K] (F : SpectralPoint K I) (s : ℝ) (h0 : 0 < s) (h1 : s ≤ 1) (t : PartyTensor K I) :
(F.rpow s h0 h1).toFun t = F.toFun t ^ s
theorem Cslib.PartyTensor.UpperFunctional.push_const_le {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] {K : Type} [CommSemiring K] (P : UpperFunctional K I) (q : I) (t : PartyTensor K J) :
P.toFun (push (fun (x : J) => q) t) ≤ 1

An upper functional is at most 1 at a tensor with all its legs at one party.

theorem Cslib.PartyTensor.SpectralPoint.apply_push_unit {I A : Type} [Fintype I] [DecidableEq I] [Fintype A] [DecidableEq A] {K : Type} [Field K] (F : SpectralPoint K I) [Nonempty I] (π : A → I) {q : ℕ} (hq : 1 ≤ q) :
F.toFun (push π (unit K A q)) = ↑q ^ F.unitExponent π

Paper: Lemma A.2, the unit tensors: F at the unit tensor of size q ≥ 1 with legs π is q to the unit exponent. As in the paper's proof, q ↦ F ⟨q⟩ is at least 1, multiplicative and monotone, hence a power of q.

theorem Cslib.PartyTensor.SpectralPoint.apply_wire {I : Type} [Fintype I] [DecidableEq I] {K : Type} [Field K] (F : SpectralPoint K I) (p q : I) {n : ℕ} (hn : 1 ≤ n) :
F.toFun (wire K n p q) = ↑n ^ F.wireExponent p q

At a wire of dimension n ≥ 1, a spectral point is n to the wire exponent.

theorem Cslib.PartyTensor.SpectralPoint.apply_wire_two {I : Type} [Fintype I] [DecidableEq I] {K : Type} [Field K] (F : SpectralPoint K I) (p q : I) :
F.toFun (wire K 2 p q) = 2 ^ F.wireExponent p q
theorem Cslib.PartyTensor.SpectralPoint.apply_wire_le {I : Type} [Fintype I] [DecidableEq I] {K : Type} [Field K] (F : SpectralPoint K I) (p q : I) (n : ℕ) :
F.toFun (wire K n p q) ≤ ↑n ^ F.wireExponent p q

A spectral point at a wire of dimension n is at most n to the wire exponent, also for n = 0.

A wire of dimension q is covered by q copies of 1, so the wire exponent is at most 1.

A wire from a party to itself is a restriction of 1.

Paper: Lemma A.2, the triangle inequality. As in the paper's proof, contracting the two indices at q shows that the wire from p to r is a restriction of the product of the wires from p to q and from q to r.

theorem Cslib.PartyTensor.SpectralPoint.unitExponent_le_sum_wireExponent {I A : Type} [Fintype I] [DecidableEq I] [Fintype A] [DecidableEq A] {K : Type} [Field K] (F : SpectralPoint K I) [Nonempty I] {E : Type} [Fintype E] [Nonempty A] (π : A → I) (a b : E → A) (hconn : ∀ (f : A → Fin 2), (∀ (e : E), f (a e) = f (b e)) → ∀ (p p' : A), f p = f p') :
F.unitExponent π ≤ ∑ e : E, F.wireExponent (π (a e)) (π (b e))

The unit exponent of the legs of a connected graph is at most the sum of the wire exponents along its edges.

Paper: Lemma A.2, the tree bound: the unit exponent of a set P of parties is at most the sum of the wire exponents along the edges of any tree on P.

theorem Cslib.PartyTensor.SpectralPoint.apply_push_le {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] {K : Type} [Field K] (F : SpectralPoint K I) (π π' : J → I) (t : PartyTensor K J) :
F.toFun (push π t) ≤ (∏ j : J, ↑(Fintype.card (t.Index j)) ^ F.wireExponent (π j) (π' j)) * F.toFun (push π' t)

Moving legs: if the leg j moves from π' j to π j, the value grows at most by the values of the wires from π j to π' j of the dimensions of the legs.

The support point has wire exponent 0.

theorem Cslib.PartyTensor.SpectralPoint.wireExponent_rpow {I : Type} [Fintype I] [DecidableEq I] {K : Type} [Field K] (F : SpectralPoint K I) (s : ℝ) (h0 : 0 < s) (h1 : s ≤ 1) (p q : I) :
(F.rpow s h0 h1).wireExponent p q = s * F.wireExponent p q

The wire exponents of F ^ s are s times those of F.