AFTD Auto-Formalizing Theoretical Domains

arrangement3_e4_zero

def

The four-term line-sum energy zero condition $E_4(S) = 0$ for an arrangement $S : \mathrm{Fin}\,3 \times \mathrm{Fin}\,3 \simeq \mathrm{Fin}\,9$, asserting that the column moment $\sum_{i=0}^2 \sum_{j=0}^2 j(S(i,j)+1) = 45$, the row moment $\sum_{i=0}^2 \sum_{j=0}^2 i(S(i,j)+1) = 45$, the main diagonal sum $\sum_{i=0}^2 (S(i,i)+1) = 15$, and the anti-diagonal sum $\sum_{i=0}^2 (S(i, 2-i)+1) = 15$.

Statement

def arrangement3_e4_zero (S : Fin 3 × Fin 3 ≃ Fin 9) : Prop
Defined in
arXiv:2610.38386, Definition 2.4 and Section 5.1
Verified
01 Nov 2026
Axioms
none listed
Used by 2

Read back from the Lean

Given an equivalence (bijection) S : Fin 3 × Fin 3 ≃ Fin 9, arrangement3_e4_zero S is the proposition asserting that all four of the following equalities hold in ℤ (where (S(i, j)).val + 1 takes values in {1, ..., 9}, and i, j : Fin 3 are coerced to ℤ with values in {0, 1, 2}): 1. The column-weighted sum $\sum_{i=0}^2 \sum_{j=0}^2 j \cdot ((S(i, j)).\text{val} + 1) = 45$. 2. The row-weighted sum $\sum_{i=0}^2 \sum_{j=0}^2 i \cdot ((S(i, j)).\text{val} + 1) = 45$. 3. The main diagonal sum $\sum_{i=0}^2 ((S(i, i)).\text{val} + 1) = 15$. 4. The anti-diagonal sum $\sum_{i=0}^2 ((S(i, \text{Fin.rev } i)).\text{val} + 1) = 15$ (where $\text{Fin.rev } i = 2 - i$).

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 four-term line-sum energy zero condition E4(S) = 0 for an order-3 arrangement. -/
def arrangement3_e4_zero (S : Fin 3 × Fin 3 ≃ Fin 9) : Prop :=
  (∑ i : Fin 3, ∑ j : Fin 3, (j : ℤ) * ((S (i, j)).val + 1 : ℤ) = 45) ∧
  (∑ i : Fin 3, ∑ j : Fin 3, (i : ℤ) * ((S (i, j)).val + 1 : ℤ) = 45) ∧
  (∑ i : Fin 3, ((S (i, i)).val + 1 : ℤ) = 15) ∧
  (∑ i : Fin 3, ((S (i, Fin.rev i)).val + 1 : ℤ) = 15)
See it in the graphDiscuss this resultChallenge it