AFTD Auto-Formalizing Theoretical Domains

qary_defect_word

def

For alphabet size q ≥ 2, block spacing B, and length n, qary_defect_word q B n hq is the word of length n over Fin q obtained by restricting the defect sequence qary_defect_seq q B hq to indices less than n.

Statement

def qary_defect_word (q B n : ℕ) (hq : 2 ≤ q) : Fin n → Fin q
Defined in
knowledgebase
Verified
10 Nov 2026
Axioms
none listed
Built on 1
  • qary_defect_seqThe infinite sequence over Fin q with defect spacing B and alphabet size q ≥ 2 whose initial q symbols are 0, ..., q-1 and for i ≥ q…

Read back from the Lean

qary_defect_word q B n hq defines a function from Fin n to Fin q (a word of length n over an alphabet of size q), parameterized by natural numbers q, B, and n with a hypothesis hq : 2 ≤ q. It maps each position i : Fin n to the value of qary_defect_seq q B hq evaluated at the underlying index i.1 : ℕ.

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

/-- The deterministic defect word of length n over Fin q with block period B. -/
def qary_defect_word (q B n : ℕ) (hq : 2 ≤ q) : Fin n → Fin q := fun i => qary_defect_seq q B hq i.1
See it in the graphDiscuss this resultChallenge it