arrangement3_u1
def
The first column moment $U_1(S) = \sum_{i=0}^2 \sum_{j=0}^2 j \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_u1 (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
Definition of a function arrangement3_u1 that takes a bijection S : Fin 3 × Fin 3 ≃ Fin 9 and returns the integer given by the sum over all i : Fin 3 and j : Fin 3 of j * (S(i, j).val + 1), where j is coerced to ℤ and S(i, j).val + 1 is coerced to ℤ (i.e., treating j as an integer in {0, 1, 2} and the value of S(i, j) as a 1-based 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 column moment U1 of an order-3 arrangement. -/ def arrangement3_u1 (S : Fin 3 × Fin 3 ≃ Fin 9) : ℤ := ∑ i : Fin 3, ∑ j : Fin 3, (j : ℤ) * ((S (i, j)).val + 1 : ℤ)