Ehrhart-Macdonald counting reciprocity for the Birkhoff polytope
DisprovedMagicSquares.interior_reciprocityEhrhart--Macdonald reciprocity for the Birkhoff polytope, 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.
Formalization Note Lean states positivity through positiveInteriorCount, the card-of-filtered-finset interior count over Square n (Fin (t+1)).
Retired: this statement is false at dilation zero ( while ), as shown by the accepted disproof on this node. Use the corrected node MagicSquares.interior_reciprocity_pos, which restricts the conclusion to positive .
import Mathlib import Definitions.Def_MagicSquares import Definitions.Def_MagicSquares_positiveInteriorCount open MagicSquares
namespace MagicSquares
theorem interior_reciprocity (n : ℕ) (hn : 1 ≤ n) (p : Polynomial ℚ)
(hp : ∀ t : ℕ, p.eval (t : ℚ) = (semiMagicCount n t : ℚ)) :
∀ t : ℕ, p.eval (-(t : ℚ)) = (-1 : ℚ) ^ ((n - 1) ^ 2) *
(positiveInteriorCount n t : ℚ) := by sorry
end MagicSquares