A rank-d subspace contains at most k^d words over a k-letter alphabet
ProvedThreeSumFuture.alphabet_words_in_subspace3sumcombinatoricslinear-algebra
Embed a finite nonempty alphabet A into a field K coordinatewise. If a collection of words takes its values in a linear subspace V of the ambient coordinate space, then its cardinality is at most |A| to the power dim_K V. In particular, more than 27 ternary words in one raw-label fiber force four linearly independent words.
Preamble
import Mathlib.LinearAlgebra.Dual.Lemmas import Mathlib.LinearAlgebra.Dimension.StrongRankCondition import Mathlib.LinearAlgebra.FiniteDimensional.Basic import Mathlib.Data.Fintype.Pi
Formal statement
theorem ThreeSumFuture.alphabet_words_in_subspace {K I A : Type} [Field K] [Fintype I] [Fintype A] [Nonempty A]
(encode : A → K) (hencode : Function.Injective encode)
(V : Submodule K (I → K)) (words : Finset (I → A))
(hwords : ∀ w ∈ words, (fun i => encode (w i)) ∈ V) :
words.card ≤ Fintype.card A ^ Module.finrank K V := by sorrySource
Coordinate restriction bound used for raw-label batches in the fixed-histogram weighted-cache 3SUM interpolation obstruction.