arrangement3_u2
def
The first row moment $U_2(S) = \sum_{i=0}^2 \sum_{j=0}^2 i \cdot ((S(i, j) : \mathbb{Z}) + 1)$ of an arrangement $S : \mathrm{Fin}\,3 \times \mathrm{Fin}\,3 \simeq \mathrm{Fin}\,9$.
Statement
def arrangement3_u2 (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_u2 defines a function taking a bijection S : Fin 3 × Fin 3 ≃ Fin 9 and returning the integer given by the sum over all i : Fin 3 and j : Fin 3 of (i : ℤ) * ((S (i, j)).val + 1 : ℤ), where i contributes its value as an integer in {0, 1, 2} and (S (i, j)).val + 1 contributes the value of S(i, j) plus 1 as an integer in {1, ..., 9}.
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 first row moment U2 of an order-3 arrangement. -/ def arrangement3_u2 (S : Fin 3 × Fin 3 ≃ Fin 9) : ℤ := ∑ i : Fin 3, ∑ j : Fin 3, (i : ℤ) * ((S (i, j)).val + 1 : ℤ)