The magic constant of a normal 3x3 magic square is 15
ProvedMagicSquares.normal_order_three_constantcombinatoricsmagic-squares
Every normal magic square has line sum .
A normal magic square of order has entries exactly , each used once. Its magic constant is therefore
This is the instance of the general magic-constant identity , which here reads .
Formalization Note The statement avoids division: with the hypothesis
IsNormal M and IsMagic M s the general identity gives 2 * s = 30, and s = 15
follows by linear arithmetic over .
Preamble
import Mathlib import Definitions.Def_MagicSquares open MagicSquares
Formal statement
namespace MagicSquares
theorem normal_order_three_constant (M : Square 3 ℕ) (s : ℕ)
(hN : IsNormal M) (hM : IsMagic M s) :
s = 15 := by sorry
end MagicSquaresSource
Standard folklore on the Lo Shu square; the general identity is the magic-constant formula for normal magic squares.