evenFoldOffDiag
def
For any type R equipped with negation and one, and any list b : List R, evenFoldOffDiag b is the list obtained by concatenating b, the single element (-1 : R), and the reversal of b, that is b ++ (-1 : R) :: b.reverse.
Statement
def evenFoldOffDiag {R : Type*} [Neg R] [One R] (b : List R) : List R
- Defined in
- arXiv:2611.28952, Section 1.1, (3)
- Verified
- 25 Nov 2026
- Axioms
- none listed
Read back from the Lean
For a type R equipped with negation (Neg R) and a one element (One R), and a list b : List R, evenFoldOffDiag b is defined as the concatenation of b, the single-element list containing -1 : R, and the reversal of b (that is, b ++ [-1] ++ 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 even fold of a tridiagonal pair: b ++ (-1 : R) :: b.reverse. -/ def evenFoldOffDiag {R : Type*} [Neg R] [One R] (b : List R) : List R := b ++ (-1 : R) :: b.reverse