oddFoldDiag
def
The diagonal sequence of the odd fold of a tridiagonal pair: for a diagonal list d, it is the list obtained by concatenating d, 0, and the reversal of d.
Statement
def oddFoldDiag {R : Type*} [Zero R] (d : List R) : List R
- Defined in
- arXiv:2611.28952, Section 1.1, (2)
- Verified
- 25 Nov 2026
- Axioms
- none listed
- Used by 1
- oddFoldDiag_lengthThe diagonal of the odd fold of a list d has length 2 * |d| + 1.
Read back from the Lean
oddFoldDiag is a function that, given a type R with an element 0 : R and a list d : List R, returns the list obtained by concatenating d, the single-element list containing 0, and the reverse of d (that is, d ++ 0 :: d.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 diagonal sequence of the odd fold of a tridiagonal pair: (d, 0, rev d). -/ def oddFoldDiag {R : Type*} [Zero R] (d : List R) : List R := d ++ 0 :: d.reverse