arrangement3_u4
def
The anti-diagonal sum $U_4(S) = \sum_{i=0}^2 ((S(i, \mathrm{rev}(i)) : \mathbb{Z}) + 1)$ of an arrangement $S : \mathrm{Fin}\,3 \times \mathrm{Fin}\,3 \simeq \mathrm{Fin}\,9$.
Statement
def arrangement3_u4 (S : Fin 3 × Fin 3 ≃ Fin 9) : ℤ- Defined in
- arXiv:2610.38386, Section 5.1
- Verified
- 01 Nov 2026
- Axioms
- none listed
Read back from the Lean
arrangement3_u4 is a definition that takes a bijection $S : \text{Fin } 3 \times \text{Fin } 3 \simeq \text{Fin } 9$ and returns the integer sum $\sum_{i \in \text{Fin } 3} ((S(i, \text{Fin.rev}(i))).val + 1)$, which is the sum of the 1-based values assigned by $S$ to the anti-diagonal positions $(i, 2 - i)$ of a $3 \times 3$ grid.
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 anti-diagonal sum U4 of an order-3 arrangement. -/ def arrangement3_u4 (S : Fin 3 × Fin 3 ≃ Fin 9) : ℤ := ∑ i : Fin 3, ((S (i, Fin.rev i)).val + 1 : ℤ)