In an order-three magic square, opposite cells sum to twice the centre
ProvedMagicSquares.order_three_opposite_sum_eq_twice_centerOpposite cells in an order-three magic square. Let be a magic square with line sum . Then for every pair of centrally opposite cells,
Equivalently, an order-three magic square is automatically associative with complement constant . Since MacMahon's identity gives , each such pair sums to , and in particular the square is determined by its centre: every opposite pair is pinned to twice it.
The four pairs are – and – (the two diagonals) and –, – (the middle column and middle row); the fifth "pair" is the centre with itself, which is trivial. This is the structural fact behind the classical parametrisation of magic squares by two corner entries: once and one corner are chosen, all remaining cells follow.
Formalization Note Cells are indexed by Fin 3 and Fin.rev is the
reversal , so and are
the centrally opposite pair. The proof expands the nine line identities and
finishes by linear arithmetic; no integrality hypothesis beyond is
needed.
import Mathlib import Definitions.Def_MagicSquares
namespace MagicSquares
theorem order_three_opposite_sum_eq_twice_center
(M : Square 3 ℕ) (s : ℕ) (hM : IsMagic M s) (i j : Fin 3) :
M i j + M (Fin.rev i) (Fin.rev j) = 2 * M 1 1 := by sorry
end MagicSquares
Confirmed by the mission captain (proposal self-audit).