Ehrhart reciprocity for Birkhoff at large dilations
OpenMagicSquares.birkhoff_ehrhart_largeLet and let agree with on all naturals. For large dilations , Ehrhart-Macdonald reciprocity holds at :
This is the hard core of reciprocity for the Birkhoff polytope in interior-count form: the small-dilation companion (both sides zero) is elementary, while this case carries the full content of Stanley's reciprocity law. It is the Set.ncard counterpart of the functional-equation family; the proved identification of the interior count with translates between the two forms.
Formalization Note Same Set.ncard expression as the full statement, so the split-and-recombine sketch rewrites directly. Provable from Ehrhart theory (Hilbert series of the Birkhoff monoid); do not import the functional-equation theorems, which depend on this circle transitively.
import Mathlib import Definitions.Def_MagicSquares import Definitions.Def_MagicSquares_positiveInteriorCount open MagicSquares
namespace MagicSquares
theorem birkhoff_ehrhart_large (n : Nat) (hn : 1 <= n) (p : Polynomial Rat) (hp : forall t : Nat, p.eval (t : Rat) = (semiMagicCount n t : Rat)) : forall t : Nat, n <= t -> 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 MagicSquares