Coordinate tensors and slot symmetrization
DefinitionKLS408915f_FunctionalInequalities_Analysis_Tensor_CoordinateCoord n k is the Euclidean space EuclideanSpace ℝ (Fin k → Fin n), whose norm is the coordinate Hilbert–Schmidt norm for real tensors with slots and entries indexed by Fin n. slots k a b selects positions with , while slotPerm permutes tensor slots by . The declarations slotPerm_one, slotPerm_mul, and slotPerm_apply establish the representation laws, slotRep packages this action, and symmetrize n k q averages over permutations of the first slots.
Superseded upload. This snapshot was replaced by the readable modular upload KLSModular_FunctionalInequalities_Analysis_Tensor_Coordinate: open the replacement. The replacement preserves the source snapshot and mathematical statement, with source-module imports and identifiers without a commit suffix. This historical node remains available for existing imports.
import Definitions.Def_KLS408915f_FunctionalInequalities_Analysis_Tensor_Symmetrization
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Analysis.Normed.Operator.LinearIsometry
import Mathlib.Data.Fintype.Perm
import Mathlib.Data.Nat.Choose.Central
import Mathlib.Data.Nat.Choose.Vandermonde
import Mathlib.GroupTheory.Perm.Basic
noncomputable section
open Finset
namespace FunctionalInequalities
namespace Analysis
namespace Tensor
/-- Real tensors with `k` indices, each ranging over `Fin n`, as a Euclidean space: the norm is the
Hilbert–Schmidt norm `|A| = (∑_{i₁,…,i_k} A_{i₁…i_k}²)^{1/2}` of BKL Section 2. -/
abbrev Coord (n k : ℕ) : Type := EuclideanSpace ℝ (Fin k → Fin n)
/-- The positions `a ≤ p < b` among the `k` index positions. -/
def slots (k a b : ℕ) : Finset (Fin k) :=
univ.filter fun p => a ≤ p.val ∧ p.val < b
/-- Permuting the index positions of a tensor: `(slotPerm σ A) i = A (i ∘ σ)`. -/
def slotPerm (n k : ℕ) (σ : Equiv.Perm (Fin k)) : Coord n k ≃ₗᵢ[ℝ] Coord n k :=
LinearIsometryEquiv.piLpCongrLeft 2 ℝ ℝ (Equiv.arrowCongr σ (Equiv.refl (Fin n)))
theorem slotPerm_apply (n k : ℕ) (σ : Equiv.Perm (Fin k)) (A : Coord n k) (i : Fin k → Fin n) :
slotPerm n k σ A i = A (i ∘ σ) := by
simp [slotPerm, LinearIsometryEquiv.piLpCongrLeft_apply,
Equiv.piCongrLeft', Equiv.arrowCongr, Function.comp_def]
theorem slotPerm_one (n k : ℕ) : slotPerm n k 1 = 1 := by
apply LinearIsometryEquiv.ext
intro A
apply PiLp.ext
intro i
rw [slotPerm_apply]
simp
theorem slotPerm_mul (n k : ℕ) (σ τ : Equiv.Perm (Fin k)) :
slotPerm n k (σ * τ) = slotPerm n k σ * slotPerm n k τ := by
ext A i
simp [slotPerm_apply, LinearIsometryEquiv.coe_mul, Function.comp_apply,
Function.comp_assoc]
/-- The orthogonal representation of `Perm (Fin k)` on tensors with `k` indices by permutation of
index positions. -/
def slotRep (n k : ℕ) : Equiv.Perm (Fin k) →* (Coord n k ≃ₗᵢ[ℝ] Coord n k) where
toFun := slotPerm n k
map_one' := slotPerm_one n k
map_mul' := slotPerm_mul n k
/-- `S_q A`: the average of `A` over all permutations of its first `q` indices. -/
def symmetrize (n k q : ℕ) (A : Coord n k) : Coord n k :=
blockAverage (slotRep n k) (slots k 0 q) A
end Tensor
end Analysis
end FunctionalInequalities