AFTD Auto-Formalizing Theoretical Domains

oddFoldOffDiag

def

The off-diagonal sequence of the odd fold of a tridiagonal pair with parameter ε: for an off-diagonal list b, it is the list obtained by concatenating b, ε, -ε, and the reversal of b.

Statement

def oddFoldOffDiag {R : Type*} [Neg R] (b : List R) (ε : R) : List R
Defined in
arXiv:2611.28952, Section 1.1, (2)
Verified
25 Nov 2026
Axioms
none listed

Read back from the Lean

For a type R with a negation operation [Neg R], a list b of elements of R, and an element ε : R, oddFoldOffDiag b ε is defined as the list obtained by concatenating b, the element ε, the element -ε, and the reverse of b (that is, b ++ (ε :: -ε :: b.reverse)).

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 off-diagonal sequence of the odd fold of a tridiagonal pair: (b, ε, -ε, rev b). -/
def oddFoldOffDiag {R : Type*} [Neg R] (b : List R) (ε : R) : List R := b ++ ε :: -ε :: b.reverse
See it in the graphDiscuss this resultChallenge it