The two-direction panmagic squares of order three
ProvedMagicSquares.panmagic_count_threeThe order-three two-direction panmagic count. This statement is about the stronger predicate IsPanMagic, which requires both families of broken diagonals (descending and ascending) to sum to the line sum, and it determines
The single square at line sum is the constant array with every entry . Context. The purpose of this node is to sit next to pandiagonal_count_three so that the two readings of "pandiagonal" are both present on the platform and cannot be confused: the one-direction reading used by the counting literature gives a degree-two polynomial that never vanishes, whereas the two-direction reading collapses to the constant square and vanishes off multiples of three. Citing one in place of the other is the most likely faithfulness error in this area.
import Mathlib import Definitions.Def_MagicSquares import Definitions.Def_MagicSquaresPandiagonal open MagicSquares
namespace MagicSquares theorem panmagic_count_three (t : ℕ) : panMagicCount 3 t = if 3 ∣ t then 1 else 0 := by sorry end MagicSquares