Documentation

CslibFrontier.Foundations.LinearAlgebra.Tensor.Degeneration

Degenerations of tensors and Bini's conversion #

A degeneration of order h of S to T (Cslib.Tensor.IsDegen) is a restriction of S over the polynomial ring K[ε] whose result is ε ^ h • T + ε ^ (h + 1) • E for some error tensor E. It is the "packing modulo ε" of Pass, Definition 2.2, with the denominators ε ^ h of its maps cleared, and the approximate bilinear algorithms of Bini. The shared-left form Cslib.Tensor.IsSLDegen f h T S fixes the left encoder to the inclusion of an injection f, as in the same-left packings of Pass.

Degenerations compose (IsDegen.trans): the inner witness is taken at ε ^ (h + 1), as in the proof of Pass, Lemma 2.9 (Appendix A.2), so that its error survives the outer decoder, and the composite has order (h + 1) (k + 1) - 1. (The orders do not add: the outer decoder may divide the inner error by ε ^ h.) Degenerations are closed under the tensor product, finite tensor products, direct sums, leg exchanges and reindexing, like restrictions. Shared-left degenerations are closed under the operations that keep the left leg: the exchange of the right input and the output, tensor products and deletion of summands.

Bini's conversion (IsDegen.exists_rank_tpow, Bini; Pass, Lemma 2.4): a degeneration of unit r to T gives, for every m, a rank bound (D m + 1) r ^ m on the tensor power tpow m T, where D bounds the degree in ε of the witness. The coefficient of ε ^ h of a polynomial of degree at most D is a fixed linear combination of its values at D + 1 integer points, so the D + 1 evaluations of the witness, each a restriction of unit r, combine into a restriction of unit ((D + 1) r).

Main definitions #

Main results #

References #

Mapping entries by ring homomorphisms #

theorem Cslib.Tensor.map_restrict {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {R : Type u_11} {R' : Type u_12} [CommSemiring R] [CommSemiring R'] (f : R →+* R') [Fintype X'] [Fintype Y'] [Fintype Z'] (α : Matrix X' X R) (β : Matrix Y' Y R) (γ : Matrix Z Z' R) (S : Tensor R X' Y' Z') :
map (⇑f) (restrict α β γ S) = restrict (α.map ⇑f) (β.map ⇑f) (γ.map ⇑f) (map (⇑f) S)

Restriction commutes with mapping all entries by a ring homomorphism.

@[simp]
theorem Cslib.Tensor.map_incl {X : Type u_2} {X' : Type u_5} {R : Type u_11} {R' : Type u_12} [CommSemiring R] [CommSemiring R'] (f : R →+* R') [DecidableEq X'] (g : X → X') :
(incl g).map ⇑f = incl g

Degenerations #

def Cslib.Tensor.IsDegen {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] (h : ℕ) (T : Tensor K X Y Z) (S : Tensor K X' Y' Z') :

Degeneration of order h: over K[ε], a restriction of S equals ε ^ h • T + ε ^ (h + 1) • E for some error tensor E.

def Cslib.Tensor.IsSLDegen {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] (f : X → X') (h : ℕ) (T : Tensor K X Y Z) (S : Tensor K X' Y' Z') :

Shared-left degeneration of order h along f: a degeneration whose left encoder is the inclusion matrix of f, so that every source receives the common left input.

theorem Cslib.Tensor.IsSLDegen.toIsDegen {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsSLDegen f h T S) :
IsDegen h T S
theorem Cslib.Tensor.IsDegen.of_isRestriction {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (h : T.IsRestriction S) :
IsDegen 0 T S

A restriction is a degeneration of order 0.

theorem Cslib.Tensor.IsSLDegen.of_restrict_incl {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (β : Matrix Y' Y K) (γ : Matrix Z Z' K) (h : restrict (incl f) β γ S = T) :
IsSLDegen f 0 T S

A shared-left restriction is a shared-left degeneration of order 0.

theorem Cslib.Tensor.IsDegen.mono {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] {h h' : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsDegen h T S) (hh : h ≤ h') :
IsDegen h' T S

Raising the order of a degeneration: multiply the decoder by ε.

theorem Cslib.Tensor.IsSLDegen.mono {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {h h' : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsSLDegen f h T S) (hh : h ≤ h') :
IsSLDegen f h' T S
theorem Cslib.Tensor.IsDegen.trans {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [Fintype X''] [Fintype Y''] [Fintype Z''] {h k : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {U : Tensor K X'' Y'' Z''} (hT : IsDegen h T S) (hS : IsDegen k S U) :
IsDegen (h * k + h + k) T U

Composition of degenerations (Pass, Lemma 2.9): the inner witness is taken at ε ^ (h + 1), so that the outer decoder, which divides by at most ε ^ h, leaves its error divisible by ε; the composite has order h k + h + k = (h + 1) (k + 1) - 1.

theorem Cslib.Tensor.incl_comp {X : Type u_2} {X' : Type u_5} {X'' : Type u_8} {R : Type u_11} [CommSemiring R] [Fintype X'] [DecidableEq X'] [DecidableEq X''] (f : X → X') (g : X' → X'') :
incl (g ∘ f) = incl g * incl f

The inclusion matrix of a composite is the product of the inclusion matrices.

theorem Cslib.Tensor.IsSLDegen.trans {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [Fintype X''] [Fintype Y''] [Fintype Z''] [DecidableEq X'] [DecidableEq X''] {f : X → X'} {g : X' → X''} {h k : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {U : Tensor K X'' Y'' Z''} (hT : IsSLDegen f h T S) (hS : IsSLDegen g k S U) :
IsSLDegen (g ∘ f) (h * k + h + k) T U

Composition of shared-left degenerations, the injections composing; the inner witness is taken at ε ^ (h + 1) as in IsDegen.trans.

theorem Cslib.Tensor.IsRestriction.trans_isDegen {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [Fintype X''] [Fintype Y''] [Fintype Z''] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {U : Tensor K X'' Y'' Z''} (hT : T.IsRestriction S) (hS : IsDegen h S U) :
IsDegen h T U

Composing a degeneration with a restriction of its target.

theorem Cslib.Tensor.IsDegen.trans_isRestriction {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [Fintype X''] [Fintype Y''] [Fintype Z''] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {U : Tensor K X'' Y'' Z''} (hT : IsDegen h T S) (hS : S.IsRestriction U) :
IsDegen h T U

Composing a degeneration with a restriction of its source.

Leg exchanges and reindexing #

theorem Cslib.Tensor.IsDegen.swap12 {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsDegen h T S) :
theorem Cslib.Tensor.IsDegen.swap23 {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsDegen h T S) :
theorem Cslib.Tensor.IsDegen.swap13 {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsDegen h T S) :
theorem Cslib.Tensor.IsSLDegen.swap23 {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsSLDegen f h T S) :

The exchange of the right input and the output keeps the left leg, so it preserves shared-left degenerations.

theorem Cslib.Tensor.IsDegen.reindex_target {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (e₁ : X ≃ X'') (e₂ : Y ≃ Y'') (e₃ : Z ≃ Z'') (hT : IsDegen h T S) :
IsDegen h (reindex e₁ e₂ e₃ T) S
theorem Cslib.Tensor.IsDegen.reindex_source {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [Fintype X''] [Fintype Y''] [Fintype Z''] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (e₁ : X' ≃ X'') (e₂ : Y' ≃ Y'') (e₃ : Z' ≃ Z'') (hT : IsDegen h T S) :
IsDegen h T (reindex e₁ e₂ e₃ S)
theorem Cslib.Tensor.IsDegen.of_reindex_target {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {e₁ : X ≃ X''} {e₂ : Y ≃ Y''} {e₃ : Z ≃ Z''} (hT : IsDegen h (reindex e₁ e₂ e₃ T) S) :
IsDegen h T S

Removing a reindexing of the target of a degeneration.

theorem Cslib.Tensor.IsDegen.of_reindex_source {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [Fintype X''] [Fintype Y''] [Fintype Z''] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {e₁ : X' ≃ X''} {e₂ : Y' ≃ Y''} {e₃ : Z' ≃ Z''} (hT : IsDegen h T (reindex e₁ e₂ e₃ S)) :
IsDegen h T S

Removing a reindexing of the source of a degeneration.

theorem Cslib.Tensor.IsSLDegen.reindex_target {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (e₁ : X ≃ X'') (e₂ : Y ≃ Y'') (e₃ : Z ≃ Z'') (hT : IsSLDegen f h T S) :
IsSLDegen (f ∘ ⇑e₁.symm) h (reindex e₁ e₂ e₃ T) S

Reindexing the target of a shared-left degeneration composes the injection with the left equivalence.

theorem Cslib.Tensor.IsSLDegen.reindex_source {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] [Fintype X''] [Fintype Y''] [Fintype Z''] [DecidableEq X''] {f : X → X'} {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (e₁ : X' ≃ X'') (e₂ : Y' ≃ Y'') (e₃ : Z' ≃ Z'') (hT : IsSLDegen f h T S) :
IsSLDegen (⇑e₁ ∘ f) h T (reindex e₁ e₂ e₃ S)

Reindexing the source of a shared-left degeneration composes the left equivalence with the injection.

theorem Cslib.Tensor.IsSLDegen.of_reindex_target {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X'' → X'} {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {e₁ : X ≃ X''} {e₂ : Y ≃ Y''} {e₃ : Z ≃ Z''} (hT : IsSLDegen f h (reindex e₁ e₂ e₃ T) S) :
IsSLDegen (f ∘ ⇑e₁) h T S

Removing a reindexing of the target of a shared-left degeneration.

theorem Cslib.Tensor.IsSLDegen.of_reindex_source {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] [Fintype X''] [Fintype Y''] [Fintype Z''] [DecidableEq X''] {f : X → X''} {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {e₁ : X' ≃ X''} {e₂ : Y' ≃ Y''} {e₃ : Z' ≃ Z''} (hT : IsSLDegen f h T (reindex e₁ e₂ e₃ S)) :
IsSLDegen (⇑e₁.symm ∘ f) h T S

Removing a reindexing of the source of a shared-left degeneration.

Tensor products and sums #

theorem Cslib.Tensor.IsDegen.tprod {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [Fintype X''] [Fintype Y''] [Fintype Z''] {X₂ : Type u_11} {Y₂ : Type u_12} {Z₂ : Type u_13} {h h' : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {T' : Tensor K X₂ Y₂ Z₂} {S' : Tensor K X'' Y'' Z''} (hT : IsDegen h T S) (hT' : IsDegen h' T' S') :
IsDegen (h + h') (T.tprod T') (S.tprod S')
theorem Cslib.Tensor.IsDegen.tprodPi {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] {ι : Type u_11} [Fintype ι] [DecidableEq ι] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ι → ℕ} {T : ι → Tensor K X Y Z} {S : ι → Tensor K X' Y' Z'} (hT : ∀ (i : ι), IsDegen (h i) (T i) (S i)) :
IsDegen (∑ i : ι, h i) (Tensor.tprodPi T) (Tensor.tprodPi S)
theorem Cslib.Tensor.IsDegen.tpow {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsDegen h T S) (d : ℕ) :
IsDegen (d * h) (Tensor.tpow d T) (Tensor.tpow d S)
theorem Cslib.Tensor.IsDegen.dsum {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] {ι : Type u_11} [Fintype ι] [DecidableEq ι] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ℕ} {T : ι → Tensor K X Y Z} {S : ι → Tensor K X' Y' Z'} (hT : ∀ (i : ι), IsDegen h (T i) (S i)) :
theorem Cslib.Tensor.IsSLDegen.tprod {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} {X'' : Type u_8} {Y'' : Type u_9} {Z'' : Type u_10} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [Fintype X''] [Fintype Y''] [Fintype Z''] [DecidableEq X'] [DecidableEq X''] {X₂ : Type u_11} {Y₂ : Type u_12} {Z₂ : Type u_13} {f : X → X'} {f' : X₂ → X''} {h h' : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} {T' : Tensor K X₂ Y₂ Z₂} {S' : Tensor K X'' Y'' Z''} (hT : IsSLDegen f h T S) (hT' : IsSLDegen f' h' T' S') :
IsSLDegen (Prod.map f f') (h + h') (T.tprod T') (S.tprod S')

Shared-left degenerations tensor, the injections multiplying.

theorem Cslib.Tensor.IsSLDegen.tprodPi {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] {ι : Type u_11} [Fintype ι] [DecidableEq ι] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {h : ι → ℕ} {T : ι → Tensor K X Y Z} {S : ι → Tensor K X' Y' Z'} (hT : ∀ (i : ι), IsSLDegen f (h i) (T i) (S i)) :
IsSLDegen (fun (x : ι → X) (i : ι) => f (x i)) (∑ i : ι, h i) (Tensor.tprodPi T) (Tensor.tprodPi S)
theorem Cslib.Tensor.IsSLDegen.tpow {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {h : ℕ} {T : Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsSLDegen f h T S) (d : ℕ) :
IsSLDegen (fun (x : Fin d → X) (i : Fin d) => f (x i)) (d * h) (Tensor.tpow d T) (Tensor.tpow d S)
theorem Cslib.Tensor.IsSLDegen.slSum_comp {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] {ι : Type u_11} {κ : Type u_12} [Finite ι] [DecidableEq ι] [DecidableEq κ] [Finite X] [Finite Y] [Finite Z] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {h : ℕ} {G : ι → Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsSLDegen f h (slSum G) S) (e : κ → ι) (he : Function.Injective e) :
IsSLDegen f h (slSum (G ∘ e)) S

Deleting and reordering the summands of the target of a shared-left degeneration.

theorem Cslib.Tensor.IsSLDegen.slSum_source_comp {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] {ι : Type u_11} {κ : Type u_12} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X'] [Fintype Y'] [Fintype Z'] [DecidableEq X'] {f : X → X'} {h : ℕ} {T : Tensor K X Y Z} {G : ι → Tensor K X' Y' Z'} (e : κ → ι) (he : Function.Injective e) (hT : IsSLDegen f h T (slSum (G ∘ e))) :
IsSLDegen f h T (slSum G)

Adding unused sources (Pass, Observation 2.5): a shared-left degeneration from a shared-left sum of some of the summands of slSum G is one from slSum G.

theorem Cslib.Tensor.IsDegen.dsum_comp {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {X' : Type u_5} {Y' : Type u_6} {Z' : Type u_7} [CommRing K] {ι : Type u_11} {κ : Type u_12} [Finite ι] [DecidableEq ι] [DecidableEq κ] [Finite X] [Finite Y] [Finite Z] [Fintype X'] [Fintype Y'] [Fintype Z'] {h : ℕ} {G : ι → Tensor K X Y Z} {S : Tensor K X' Y' Z'} (hT : IsDegen h (Tensor.dsum G) S) (e : κ → ι) (he : Function.Injective e) :
IsDegen h (Tensor.dsum (G ∘ e)) S

Deleting and reordering the summands of the target of a degeneration.

Bini's conversion #

theorem Cslib.Tensor.exists_coeff_eq_sum_eval {K : Type u_1} [Field K] [CharZero K] (h D : ℕ) :
∃ (c : Fin (D + 1) → K), ∀ (p : Polynomial K), p.natDegree ≤ D → p.coeff h = ∑ k : Fin (D + 1), c k * Polynomial.eval (↑↑k) p

The coefficient of ε ^ h of a polynomial of degree at most D is a fixed linear combination of its values at the integer points 0, …, D.

theorem Cslib.Tensor.IsDegen.rank_of_natDegree_le {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} [Field K] [CharZero K] [Finite X] [Finite Y] [Finite Z] {h D r : ℕ} {T : Tensor K X Y Z} (α : Matrix (Fin r) X (Polynomial K)) (β : Matrix (Fin r) Y (Polynomial K)) (γ : Matrix Z (Fin r) (Polynomial K)) (E : Tensor (Polynomial K) X Y Z) (hw : restrict α β γ (map (⇑Polynomial.C) (unit r)) = Polynomial.X ^ h • map (⇑Polynomial.C) T + Polynomial.X ^ (h + 1) • E) (hD : ∀ (x : X) (y : Y) (z : Z), (restrict α β γ (map (⇑Polynomial.C) (unit r)) x y z).natDegree ≤ D) :
Rank ((D + 1) * r) T

A degeneration of unit r whose witness has degree at most D gives rank (D + 1) r.

theorem Cslib.Tensor.IsDegen.exists_rank_tpow {K : Type u_1} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} [Field K] [CharZero K] [Finite X] [Finite Y] [Finite Z] {h r : ℕ} {T : Tensor K X Y Z} (hT : IsDegen h T (unit r)) :
∃ (D : ℕ), ∀ (m : ℕ), Rank ((D * m + 1) * r ^ m) (Tensor.tpow m T)

Bini's conversion (Bini; Pass, Lemma 2.4): a degeneration of unit r to T gives rank bounds (D m + 1) r ^ m on the tensor powers of T, for a degree bound D depending only on the degeneration.