Ehrhart-Macdonald counting reciprocity at positive dilation
OpenMagicSquares.interior_reciprocity_posEhrhart--Macdonald reciprocity for the Birkhoff polytope at positive dilation, in counting form. Let and let agree with the semi-magic counting function on the nonnegative integers. For every ,
where is the number of semi-magic squares of line sum with every entry strictly positive.
The left-hand side evaluates the Ehrhart polynomial of the Birkhoff polytope (the doubly stochastic matrices, of dimension ) at the negative integer ; the right-hand side counts its interior lattice points in the dilate , which are exactly the positive squares. This is the specialization of the Ehrhart--Macdonald reciprocity law to , and it is the half of Stanley's argument that brings geometry into the picture: everything else in the reciprocity proof is elementary combinatorics and polynomial algebra.
The dilation must be positive: at the identity is false, since (the all-zero square) while (no entry can be positive). This restriction matches the lattice-point counts preceding the reciprocity theorem, which are introduced for positive integer dilation.
Formalization Note Lean states positivity through positiveInteriorCount, the card-of-filtered-finset interior count over Square n (Fin (t+1)), with the positivity hypothesis 1 ≤ t as an explicit binder.
import Mathlib import Definitions.Def_MagicSquares import Definitions.Def_MagicSquares_positiveInteriorCount open MagicSquares
namespace MagicSquares
theorem interior_reciprocity_pos (n : ℕ) (hn : 1 ≤ n) (p : Polynomial ℚ)
(hp : ∀ t : ℕ, p.eval (t : ℚ) = (semiMagicCount n t : ℚ)) :
∀ t : ℕ, 1 ≤ t → p.eval (-(t : ℚ)) = (-1 : ℚ) ^ ((n - 1) ^ 2) *
(positiveInteriorCount n t : ℚ) := by sorry
end MagicSquares