The centre of a 3x3 magic square is one third of the line sum
ProvedMagicSquares.center_of_order_threecombinatoricsmagic-squares
In a magic square the centre entry is exactly one third of the magic constant.
Let be a array of natural numbers whose three rows, three columns and two main diagonals all sum to the same number . Then
where is the central entry (indices are Fin 3, so the centre is the index ).
The proof is the classical one: add the middle row, the middle column and the two diagonals. The centre is counted four times and every other cell exactly once, so the total is ; but it is also , whence .
Formalization Note Everything stays in , so no divisibility hypothesis is needed: the identity itself forces .
Preamble
import Mathlib import Definitions.Def_MagicSquares open MagicSquares
Formal statement
namespace MagicSquares
theorem center_of_order_three (M : Square 3 ℕ) (s : ℕ)
(hM : IsMagic M s) :
3 * M 1 1 = s := by sorry
end MagicSquaresSource
Classical (Lo Shu); see Beck, Cohen, Cuomo & Gribelyuk, arXiv:math/0201013v3, Section 2, where the magic square is parametrised by the centre entry with line sum .
Human review
Confirmed by the mission captain (proposal self-audit).