Documentation

CslibFrontier.Foundations.LinearAlgebra.Tensor.Party.Price.Basic

Prices #

Definition A.4 (def:price) of VP ≠ VNP over every field [Ant26]. A price on a finite set V is a limit of multiples c • F.wireExponent, c ≥ 0, of the wire exponents of spectral points F on V (Cslib.PartyTensor.prices, the closure of Cslib.PartyTensor.priceCone). A function on the pairs of any set Y is a price (Cslib.PartyTensor.IsPrice) if all its pull-backs to finite sets are prices.

Prices are pseudometrics. They are closed under pull-backs, multiples and pointwise limits, and the prices below a given function form a compact set.

Main definitions #

Main results #

References #

def Cslib.PartyTensor.priceCone (K : Type) [Field K] (V : Type) [Fintype V] [DecidableEq V] :
Set (V → V → ℝ)

The multiples c • F.wireExponent, c ≥ 0, of the wire exponents of spectral points.

def Cslib.PartyTensor.prices (K : Type) [Field K] (V : Type) [Fintype V] [DecidableEq V] :
Set (V → V → ℝ)

The prices on a finite set of parties: the closure of priceCone.

theorem Cslib.PartyTensor.priceCone_comp {K : Type} [Field K] {U V : Type} [Fintype U] [DecidableEq U] [Fintype V] [DecidableEq V] (f : U → V) {d : V → V → ℝ} (h : d ∈ priceCone K V) :
(fun (a b : U) => d (f a) (f b)) ∈ priceCone K U
theorem Cslib.PartyTensor.prices_comp {K : Type} [Field K] {U V : Type} [Fintype U] [DecidableEq U] [Fintype V] [DecidableEq V] (f : U → V) {d : V → V → ℝ} (h : d ∈ prices K V) :
(fun (a b : U) => d (f a) (f b)) ∈ prices K U
theorem Cslib.PartyTensor.priceCone_smul {K : Type} [Field K] {V : Type} [Fintype V] [DecidableEq V] {d : V → V → ℝ} (h : d ∈ priceCone K V) {c : ℝ} (hc : 0 ≤ c) :
(fun (a b : V) => c * d a b) ∈ priceCone K V
theorem Cslib.PartyTensor.prices_smul {K : Type} [Field K] {V : Type} [Fintype V] [DecidableEq V] {d : V → V → ℝ} (h : d ∈ prices K V) {c : ℝ} (hc : 0 ≤ c) :
(fun (a b : V) => c * d a b) ∈ prices K V
theorem Cslib.PartyTensor.prices_induction {K : Type} [Field K] {V : Type} [Fintype V] [DecidableEq V] {d : V → V → ℝ} (h : d ∈ prices K V) {S : Set (V → V → ℝ)} (hS : IsClosed S) (hF : ∀ (F : SpectralPoint K V) (c : ℝ), 0 ≤ c → (fun (u v : V) => c * F.wireExponent u v) ∈ S) :
d ∈ S

A closed property of the wire exponents of spectral points that is kept by multiples holds for prices.

def Cslib.PartyTensor.IsPrice (K : Type) [Field K] {Y : Type u_1} (w : Y → Y → ℝ) :

A function w on the pairs of a set Y is a price if all its pull-backs to finite sets are.

theorem Cslib.PartyTensor.IsPrice.mem {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} (h : IsPrice K w) {V : Type} [Fintype V] [DecidableEq V] (g : V → Y) :
(fun (a b : V) => w (g a) (g b)) ∈ prices K V
theorem Cslib.PartyTensor.isPrice_of_mem {K : Type} [Field K] {V : Type} [Fintype V] [DecidableEq V] {d : V → V → ℝ} (h : d ∈ prices K V) :

The wire exponent of a spectral point is a price.

theorem Cslib.PartyTensor.isPrice_of_finset {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} (h : ∀ (S : Finset Y), IsPrice K fun (a b : ↥S) => w ↑a ↑b) :

A function is a price if its restrictions to finite subsets are.

theorem Cslib.PartyTensor.IsPrice.exists_spectralPoint {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} (h : IsPrice K w) {V : Type} [Fintype V] [DecidableEq V] (g : V → Y) {δ : ℝ} (hδ : 0 < δ) :
∃ (F : SpectralPoint K V) (c : ℝ), 0 ≤ c ∧ ∀ (a b : V), |w (g a) (g b) - c * F.wireExponent a b| < δ

Approximation by the wire exponent of a spectral point.

theorem Cslib.PartyTensor.isPrice_zero {K : Type} [Field K] {Y : Type u_1} :
IsPrice K fun (x x_1 : Y) => 0

0 is a price.

theorem Cslib.PartyTensor.isPrice_iff_forall_exists {K : Type} [Field K] {V : Type} [Fintype V] [DecidableEq V] (d : V → V → ℝ) :
IsPrice K d ↔ ∀ (δ : ℝ), 0 < δ → ∃ (F : SpectralPoint K V) (s : ℝ), 0 ≤ s ∧ ∀ (u v : V), |d u v - s * F.wireExponent u v| < δ

Paper: Definition A.4 (def:price). A price on a finite set V is a limit of multiples s · d_φ, s ≥ 0, with φ a spectral point on V; a function on the pairs of an arbitrary set Y is a price if all its pull-backs to finite sets are prices.

theorem Cslib.PartyTensor.IsPrice.nonneg {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} (h : IsPrice K w) (a b : Y) :
0 ≤ w a b
theorem Cslib.PartyTensor.IsPrice.self {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} (h : IsPrice K w) (a : Y) :
w a a = 0
theorem Cslib.PartyTensor.IsPrice.symm {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} (h : IsPrice K w) (a b : Y) :
w a b = w b a
theorem Cslib.PartyTensor.IsPrice.triangle {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} (h : IsPrice K w) (a b c : Y) :
w a c ≤ w a b + w b c
theorem Cslib.PartyTensor.IsPrice.comp {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} {Z : Type u_2} (h : IsPrice K w) (g : Z → Y) :
IsPrice K fun (a b : Z) => w (g a) (g b)

Pull-backs of prices are prices.

theorem Cslib.PartyTensor.IsPrice.smul {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} (h : IsPrice K w) {c : ℝ} (hc : 0 ≤ c) :
IsPrice K fun (a b : Y) => c * w a b

Nonnegative multiples of prices are prices.

theorem Cslib.PartyTensor.isClosed_setOf_isPrice (K : Type) [Field K] {Y : Type u_1} :
IsClosed {w : Y → Y → ℝ | IsPrice K w}

The set of prices is closed under pointwise convergence.

theorem Cslib.PartyTensor.isPrice_of_tendsto {K : Type} [Field K] {Y : Type u_1} {w : Y → Y → ℝ} {ι : Type u_2} {l : Filter ι} [l.NeBot] {d : ι → Y → Y → ℝ} (h : ∀ (a b : Y), Filter.Tendsto (fun (i : ι) => d i a b) l (nhds (w a b))) (hd : ∀ᶠ (i : ι) in l, IsPrice K (d i)) :

Pointwise limits of prices are prices.

theorem Cslib.PartyTensor.isCompact_setOf_isPrice_le (K : Type) [Field K] {Y : Type u_1} (C : Y → Y → ℝ) :
IsCompact {w : Y → Y → ℝ | IsPrice K w ∧ ∀ (a b : Y), w a b ≤ C a b}

The prices below a given function form a compact set, by Tychonoff's theorem.

theorem Cslib.PartyTensor.unit_two_entry {K : Type} [CommSemiring K] {n : ℕ} (y : Fin 2 → Fin n) :
(unit K (Fin 2) n).entry y = if y 0 = y 1 then 1 else 0

The entries of the unit tensor with two legs (a wire before it is placed).

def Cslib.PartyTensor.wires (K : Type) [CommSemiring K] {I E : Type} [DecidableEq I] [Fintype E] [DecidableEq E] (a b : E → I) (n : E → ℕ) :

A product of wires: one of dimension n e from a e to b e for every e.

theorem Cslib.PartyTensor.SpectralPoint.apply_wires {K : Type} [Field K] {I E : Type} [Fintype I] [DecidableEq I] [Fintype E] [DecidableEq E] (F : SpectralPoint K I) (a b : E → I) {n : E → ℕ} (hn : ∀ (e : E), 1 ≤ n e) :
F.toFun (wires K a b n) = ∏ e : E, ↑(n e) ^ F.wireExponent (a e) (b e)

A spectral point at a product of wires of dimensions n e ≥ 1.