AFTD Auto-Formalizing Theoretical Domains

dual_melas_seq

def

For a field F equipped with an algebra structure over ZMod 2 and finite-dimensional over ZMod 2, elements α, c : F, and index i : ℕ, dual_melas_seq α c i is defined as the algebra trace from F to ZMod 2 of the element α ^ i + c * (α⁻¹) ^ i.

Statement

noncomputable def dual_melas_seq {F : Type*} [Field F] [Algebra (ZMod 2) F] [FiniteDimensional (ZMod 2) F] (α c : F) (i : ℕ) : ZMod 2
Defined in
scout/2610-38017-on-the-b-symbol-weight-distribution-of-dual-melas-codes-and.md:1069
Verified
01 Nov 2026
Axioms
none listed
Used by 2
  • dual_melas_windowFor a field F finite-dimensional over ZMod 2, natural number k, elements α, c : F, and index i : ℕ, dual_melas_window k α c i is the word…
  • dual_melas_seq_periodFor a field F finite-dimensional over ZMod 2, a natural number k, elements α, c ∈ F such that α has order 2^k - 1, and index i,…

Read back from the Lean

Given a field F that is a finite-dimensional algebra over ZMod 2, elements α, c : F, and a natural number i : ℕ, dual_melas_seq is defined as the algebra trace from F to ZMod 2 of (α ^ i + c * (α⁻¹) ^ i).

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 dual Melas binary sequence defined by s_i = Tr(α^i + c α^(-i)). -/
noncomputable def dual_melas_seq {F : Type*} [Field F] [Algebra (ZMod 2) F] [FiniteDimensional (ZMod 2) F] (α c : F) (i : ℕ) : ZMod 2 := Algebra.trace (ZMod 2) F (α ^ i + c * (α⁻¹) ^ i)
See it in the graphDiscuss this resultChallenge it