Documentation

CslibFrontier.Foundations.LinearAlgebra.Tensor.Party.Spectrum

Upper functionals and spectral points #

An upper functional on the parties I (Cslib.PartyTensor.UpperFunctional) is a real function P ≥ 0 on the tensors over I with P 1 = 1, P (s * t) ≤ P s * P t, and P s ≤ ∑ k, P (b k) whenever s is covered by the family b. A spectral point (Cslib.PartyTensor.SpectralPoint) is a multiplicative upper functional, F (s * t) = F s * F t. With the empty family, an upper functional is 0 at a tensor whose array is 0 (UpperFunctional.eq_zero). Spectral points in this sense form a larger class than the points of Strassen's asymptotic spectrum, which are in addition additive under direct sums and normalized on unit tensors.

An upper functional is monotone for restriction and constant on equivalence classes, at least 1 at a nonzero tensor and at most the rank; a spectral point is multiplicative on products of families and on powers, and can be pulled back along a map of parties (SpectralPoint.pull, t ↦ φ (π t)). Over a field, the support point is 1 at every tensor with a nonzero entry and 0 at the zero tensor (SpectralPoint.support, the first example after Definition A.1).

The rank in coordinates: t ≤ unit K I r holds exactly when t is a sum of r products of vectors (PartyTensor.le_unit_iff), if there is a party.

Main definitions #

Main results #

References #

Rank #

theorem Cslib.PartyTensor.le_unit_iff {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] [Nonempty I] {t : PartyTensor K I} {r : ℕ} :
t ≤ unit K I r ↔ ∃ (u : Fin r → (p : I) → t.Index p → K), ∀ (x : (p : I) → t.Index p), t.entry x = ∑ s : Fin r, ∏ p : I, u s p (x p)

Rank in coordinates: t is a restriction of the unit tensor of size r if and only if it is a sum of r products of vectors.

theorem Cslib.PartyTensor.coveredBy_one_of_le_unit {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] [Nonempty I] {t : PartyTensor K I} {r : ℕ} (h : t ≤ unit K I r) :
t.CoveredBy fun (x : Fin r) => 1

A tensor of rank at most r is covered by r copies of 1.

theorem Cslib.PartyTensor.le_unit_card {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] [Nonempty I] (t : PartyTensor K I) :
t ≤ unit K I (Fintype.card ((p : I) → t.Index p))

Every tensor has rank at most the number of its entries.

Upper functionals #

An upper functional on the tensors over the parties I: a real function P ≥ 0 with P 1 = 1, P (s * t) ≤ P s * P t, and P s ≤ ∑ k, P (b k) whenever s is covered by the b k.

Instances For

    A spectral point on the tensors over the parties I: a multiplicative upper functional.

    Instances For

      An upper functional is monotone for restriction.

      theorem Cslib.PartyTensor.UpperFunctional.congr {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (P : UpperFunctional K I) {s t : PartyTensor K I} (h : AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) s t) :
      P.toFun s = P.toFun t

      Equivalent tensors have the same value.

      theorem Cslib.PartyTensor.UpperFunctional.eq_zero {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (P : UpperFunctional K I) {t : PartyTensor K I} (h : ∀ (x : (p : I) → t.Index p), t.entry x = 0) :
      P.toFun t = 0

      An upper functional is 0 at a tensor whose array is 0.

      theorem Cslib.PartyTensor.UpperFunctional.le_sum_entry {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (P : UpperFunctional K I) {κ : Type} [Fintype κ] (s : PartyTensor K I) (v : κ → ((p : I) → s.Index p) → K) (h : ∀ (x : (p : I) → s.Index p), s.entry x = ∑ k : κ, v k x) :
      P.toFun s ≤ ∑ k : κ, P.toFun (s.withEntry (v k))

      An upper functional is subadditive for sums of arrays.

      theorem Cslib.PartyTensor.UpperFunctional.one_le {I : Type} [Fintype I] [DecidableEq I] {K : Type} [Field K] (P : UpperFunctional K I) [Nonempty I] {t : PartyTensor K I} {y : (p : I) → t.Index p} (h : t.entry y ≠ 0) :
      1 ≤ P.toFun t

      An upper functional is at least 1 at a tensor with a nonzero entry, if there is a party.

      theorem Cslib.PartyTensor.UpperFunctional.le_of_le_unit {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (P : UpperFunctional K I) [Nonempty I] {t : PartyTensor K I} {r : ℕ} (h : t ≤ unit K I r) :
      P.toFun t ≤ ↑r

      An upper functional is at most the rank.

      theorem Cslib.PartyTensor.UpperFunctional.le_card {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (P : UpperFunctional K I) [Nonempty I] (t : PartyTensor K I) :
      P.toFun t ≤ ↑(Fintype.card ((p : I) → t.Index p))

      An upper functional is at most the number of entries.

      theorem Cslib.PartyTensor.UpperFunctional.le_mul {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (P : UpperFunctional K I) {s t u : PartyTensor K I} (h : s ≤ t * u) :
      P.toFun s ≤ P.toFun t * P.toFun u

      A restriction of a product is at most the product of the values.

      An upper functional as a function on classes.

      @[instance_reducible]

      A spectral point as a monoid homomorphism from the classes of tensors to ℝ.

      theorem Cslib.PartyTensor.SpectralPoint.map_prod {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (F : SpectralPoint K I) {κ : Type} [Fintype κ] [DecidableEq κ] (b : κ → PartyTensor K I) :
      F.toFun (prod b) = ∏ k : κ, F.toFun (b k)

      A spectral point at the product of a family.

      theorem Cslib.PartyTensor.SpectralPoint.map_pow {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (F : SpectralPoint K I) (t : PartyTensor K I) (k : ℕ) :
      F.toFun (t ^ k) = F.toFun t ^ k

      A spectral point at a power.

      theorem Cslib.PartyTensor.SpectralPoint.le_prod {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (F : SpectralPoint K I) {κ : Type} [Fintype κ] [DecidableEq κ] {s : PartyTensor K I} {b : κ → PartyTensor K I} (h : s ≤ prod b) :
      F.toFun s ≤ ∏ k : κ, F.toFun (b k)

      A restriction of the product of a family is at most the product of the values.

      The pull-back of a spectral point along a map π of parties: a tensor over J has the value of its push-forward, in which the leg j is held by π j.

      @[simp]
      theorem Cslib.PartyTensor.SpectralPoint.pull_apply {K : Type} [CommSemiring K] {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] (F : SpectralPoint K I) (π : J → I) (t : PartyTensor K J) :
      (F.pull π).toFun t = F.toFun (push π t)

      The support point: 1 at every tensor with a nonzero entry and 0 at the zero tensor (the first example after Definition A.1).

      @[simp]
      theorem Cslib.PartyTensor.SpectralPoint.support_apply {I : Type} [Fintype I] [DecidableEq I] {K : Type} [Field K] (t : PartyTensor K I) :
      (support K I).toFun t = if ∃ (x : (p : I) → t.Index p), t.entry x ≠ 0 then 1 else 0