is_two_dim_reed_solomon_code_of_injective
For any field $F$ and any injective function $\alpha : \mathrm{Fin}\,n \to F$, the $F$-submodule spanned by the set containing the all-ones vector and $\alpha$ is a two-dimensional Reed-Solomon code.
Statement
lemma is_two_dim_reed_solomon_code_of_injective {n : ℕ} {F : Type*} [Field F] (α : Fin n → F) (hα : Function.Injective α) : is_two_dim_reed_solomon_code (Submodule.span F {fun _ => (1 : F), α})
- Source
- arXiv:2611.21275 Definition 5
- Verified
- 19 Nov 2026
- Axioms
Quot.soundpropext- Built on 1
- is_two_dim_reed_solomon_codeFor any field $F$ and any $F$-submodule $C$ of $\mathrm{Fin}\,n \to F$, $C$ is a two-dimensional Reed-Solomon code if there exists an…
Read back from the Lean
For any natural number $n$, any field $F$, and any function $\alpha : \text{Fin } n \to F$, if $\alpha$ is injective, then the $F$-submodule of $\text{Fin } n \to F$ spanned by the constant 1 vector and $\alpha$ is a two-dimensional Reed–Solomon code (is_two_dim_reed_solomon_code).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
By definition, a submodule is a two-dimensional Reed-Solomon code if it is the span of the all-ones vector and an injective evaluation vector. The given vector $\alpha$ and the assumption that it is injective satisfy this definition immediately, with the required equality holding by reflexivity.
The span of the all-ones vector and $\alpha$ is a two-dimensional Reed-Solomon code.
By definition, a submodule $C \subseteq F^n$ is a two-dimensional Reed-Solomon code if there exists an injective evaluation vector $\beta : \mathrm{Fin}\,n \to F$ such that $C = \mathrm{span}_F \{\mathbf{1}, \beta\}$. We witness this existential statement directly using the provided vector $\alpha$, its assumed injectivity (hypothesis `hα`), and the reflexivity of equality (`rfl`).
uses
rflis_two_dim_reed_solomon_code (Submodule.span F {fun _ => (1 : F), α}) := ⟨α, hα, rfl⟩
rfl- Equality is reflexive: for any element $a$, $a = a$.
Written by a model (gemini-3.8-flash) from the Lean source alone (no goal states were available). Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
/-- The span of the all-ones vector and an injective evaluation vector is a two-dimensional Reed-Solomon code. -/lemma is_two_dim_reed_solomon_code_of_injective {n : ℕ} {F : Type*} [Field F] (α : Fin n → F) (hα : Function.Injective α) : is_two_dim_reed_solomon_code (Submodule.span F {fun _ => (1 : F), α}) := ⟨α, hα, rfl⟩