Ehrhart reciprocity for Birkhoff at small dilations
ProvedMagicSquares.birkhoff_ehrhart_smallcombinatoricsehrhartenumerative-combinatoricsmagic-squares
Let and let agree with on all naturals. For small positive dilations , both sides of Ehrhart reciprocity vanish: and the interior count is .
The left side vanishes by the vanishing list ( is zero at ). The right side vanishes because a row of strictly positive entries sums to at least : no positive integer matrix lies in the dilation. Together with the large-dilation companion, this splits Ehrhart-Macdonald reciprocity for the Birkhoff polytope into an elementary half and the remaining hard core.
Formalization Note The interior count uses the same Set.ncard expression as the full reciprocity statement, so rewriting applies directly; the only imports beyond Mathlib are the counting definitions and the proved vanishing theorem.
Preamble
import Mathlib import Definitions.Def_MagicSquares import Definitions.Def_MagicSquares_positiveInteriorCount open MagicSquares
Formal statement
namespace MagicSquares
theorem birkhoff_ehrhart_small (n : Nat) (hn : 1 <= n) (p : Polynomial Rat) (hp : forall t : Nat, p.eval (t : Rat) = (semiMagicCount n t : Rat)) : forall t : Nat, 1 <= t -> t < n -> p.eval (-(t : Rat)) = (-1 : Rat) ^ ((n - 1) ^ 2) * ((Set.ncard {M : Matrix (Fin n) (Fin n) Rat | (exists D, D ∈ doublyStochastic Rat (Fin n) ∧ M = (t : Rat) • D) ∧ forall i j, 0 < M i j ∧ exists k : Nat, M i j = (k : Rat)}) : Rat) := by sorry
end MagicSquaresSource
R. P. Stanley, Duke Math. J. 40 (1973), 607--632 (small-dilation case of Ehrhart-Macdonald reciprocity); M. Beck et al., Amer. Math. Monthly 110 (2003), 707--717. Vanishing side: the proved vanishing list. Empty side: a row of n positive entries sums to at least n.