AFTD Auto-Formalizing Theoretical Domains

is_two_dim_reed_solomon_code

def

For 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 injective function $\alpha : \mathrm{Fin}\,n \to F$ such that $C$ equals the $F$-submodule spanned by the set containing the all-ones vector and $\alpha$.

Statement

def is_two_dim_reed_solomon_code {n : ℕ} {F : Type*} [Field F]
    (C : Submodule F (Fin n → F)) : Prop
Defined in
arXiv:2611.21275 Definition 5
Verified
19 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

Let n be a natural number, F be a field, and C be an F-submodule of (Fin n → F). The predicate is_two_dim_reed_solomon_code C asserts that there exists an injective function α : Fin n → F such that C is equal to the F-submodule spanned by the set {(fun _ => 1), α} (the all-ones vector and α).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- Predicate stating that a linear code over a field F is a two-dimensional Reed-Solomon code. -/
def is_two_dim_reed_solomon_code {n : ℕ} {F : Type*} [Field F]
    (C : Submodule F (Fin n → F)) : Prop := ∃ α : Fin n → F, Function.Injective α ∧ C = Submodule.span F {fun _ => (1 : F), α}
See it in the graphDiscuss this resultChallenge it