Documentation

CslibFrontier.Foundations.LinearAlgebra.Tensor.Party.Equivalent

Equivalent tensors #

Two tensors over a set of parties are equivalent when each is a restriction of the other, AntisymmRel (· ≤ ·) s t for the restriction preorder; §A.1 of [Ant26] identifies such tensors. Tensors whose legs correspond to one another with equal entries are equivalent (PartyTensor.antisymmRel_of_equiv). This file has the laws of products, products of families, powers and push-forwards up to equivalence. The classes of tensors are Mathlib's Antisymmetrization (PartyTensor K I) (· ≤ ·), a partial order, and the product makes them a commutative monoid, into which toAntisymmetrization is multiplicative; this is where the product law for families is proved, once.

Main results #

References #

theorem Cslib.PartyTensor.antisymmRel_of_equiv {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {s t : PartyTensor K I} (e : (p : I) → s.Index p ≃ t.Index p) (h : ∀ (x : (p : I) → s.Index p), s.entry x = t.entry fun (p : I) => (e p) (x p)) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) s t

Tensors whose index sets correspond to one another, leg by leg, with equal entries are equivalent.

theorem Cslib.PartyTensor.antisymmRel_mul {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {s t s' t' : PartyTensor K I} (h : AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) s s') (h' : AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) t t') :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (s * t) (s' * t')

Products of equivalent tensors are equivalent.

Products #

theorem Cslib.PartyTensor.antisymmRel_mul_comm {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (s t : PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (s * t) (t * s)

The product is commutative.

theorem Cslib.PartyTensor.antisymmRel_mul_assoc {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (s t u : PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (s * t * u) (s * (t * u))

The product is associative.

theorem Cslib.PartyTensor.antisymmRel_one_mul {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (t : PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (1 * t) t

1 is neutral.

theorem Cslib.PartyTensor.antisymmRel_mul_one {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (t : PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (t * 1) t

1 is neutral.

theorem Cslib.PartyTensor.antisymmRel_prod_reindex {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {κ κ' : Type} [Fintype κ] [DecidableEq κ] [Fintype κ'] [DecidableEq κ'] (b : κ → PartyTensor K I) (e : κ' ≃ κ) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (prod b) (prod fun (k : κ') => b (e k))

Renaming the factors of a product.

theorem Cslib.PartyTensor.antisymmRel_prod_of_isEmpty {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {κ : Type} [Fintype κ] [DecidableEq κ] [IsEmpty κ] (b : κ → PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (prod b) 1

The product of the empty family is 1.

theorem Cslib.PartyTensor.antisymmRel_prod_unique {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {κ : Type} [Fintype κ] [DecidableEq κ] [Unique κ] (b : κ → PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (prod b) (b default)

The product of a family with one member.

theorem Cslib.PartyTensor.antisymmRel_prod_sum {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {κ κ' : Type} [Fintype κ] [DecidableEq κ] [Fintype κ'] [DecidableEq κ'] (b : κ ⊕ κ' → PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (prod b) ((prod fun (k : κ) => b (Sum.inl k)) * prod fun (k : κ') => b (Sum.inr k))

The product over a disjoint union.

theorem Cslib.PartyTensor.antisymmRel_prod_fin_succ {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {n : ℕ} (b : Fin (n + 1) → PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (prod b) (b 0 * prod fun (k : Fin n) => b k.succ)

The product of a family indexed by 0, …, n is its first member times the product of the others.

theorem Cslib.PartyTensor.antisymmRel_prod_fin_two {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (b : Fin 2 → PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (prod b) (b 0 * b 1)

The product of a family of two tensors.

Powers #

theorem Cslib.PartyTensor.antisymmRel_pow_zero {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (t : PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (t ^ 0) 1

The power with exponent 0.

theorem Cslib.PartyTensor.antisymmRel_pow_succ {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (t : PartyTensor K I) (k : ℕ) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (t ^ (k + 1)) (t * t ^ k)

The power with exponent k + 1.

Push-forwards #

theorem Cslib.PartyTensor.antisymmRel_push_id {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (t : PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (push id t) t

Giving each leg to the party of its own name changes nothing, up to equivalence.

theorem Cslib.PartyTensor.antisymmRel_push_push {K : Type} [CommSemiring K] {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] {L : Type} [Fintype L] [DecidableEq L] (π : J → I) (ρ : L → J) (t : PartyTensor K L) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (push π (push ρ t)) (push (π ∘ ρ) t)

Giving legs away twice.

theorem Cslib.PartyTensor.antisymmRel_push_mul {K : Type} [CommSemiring K] {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] (π : J → I) (s t : PartyTensor K J) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (push π (s * t)) (push π s * push π t)

Giving the legs of a product away.

theorem Cslib.PartyTensor.antisymmRel_push_one {K : Type} [CommSemiring K] {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] (π : J → I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (push π 1) 1

Giving the legs of 1 away.

theorem Cslib.PartyTensor.antisymmRel_push_prod {K : Type} [CommSemiring K] {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] {κ : Type} [Fintype κ] [DecidableEq κ] (π : J → I) (b : κ → PartyTensor K J) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (push π (prod b)) (prod fun (k : κ) => push π (b k))

Giving the legs of the product of a family away.

theorem Cslib.PartyTensor.antisymmRel_push_pow {K : Type} [CommSemiring K] {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] (π : J → I) (t : PartyTensor K J) (k : ℕ) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (push π (t ^ k)) (push π t ^ k)

Giving the legs of a power away.

Classes of tensors #

theorem Cslib.PartyTensor.antisymmRel_ofAntisymmetrization_toAntisymmetrization {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (t : PartyTensor K I) :
AntisymmRel (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (ofAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) t)) t

A representative of the class of t is equivalent to t.

@[instance_reducible]

The classes of tensors form a commutative monoid under the product.

theorem Cslib.PartyTensor.toAntisymmetrization_mul {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (s t : PartyTensor K I) :
toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (s * t) = toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) s * toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) t
theorem Cslib.PartyTensor.toAntisymmetrization_pow {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] (t : PartyTensor K I) (n : ℕ) :
toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (t ^ n) = toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) t ^ n
theorem Cslib.PartyTensor.toAntisymmetrization_prod {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {κ : Type} [Fintype κ] [DecidableEq κ] (b : κ → PartyTensor K I) :
toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (prod b) = ∏ k : κ, toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (b k)
theorem Cslib.PartyTensor.toAntisymmetrization_prod_pow {K : Type} [CommSemiring K] {I : Type} [Fintype I] [DecidableEq I] {B : Type} [Fintype B] [DecidableEq B] (A : B → PartyTensor K I) (v : B → ℕ) :
toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (prod fun (β : B) => A β ^ v β) = ∏ β : B, toAntisymmetrization (fun (x1 x2 : PartyTensor K I) => x1 ≤ x2) (A β) ^ v β

The class of a product of powers of tensors.