Documentation

LeanPool.FullyDynamicMatching.FD1D.V5.Symmetry

Tree symmetry for the v5 policy #

The underlying subtree permutations are policy-independent and live in FD1D.TreeSymmetry. This module proves that the recursively propagated v5 rates and deletion masses are equivariant under those permutations.

Rates at every level weakly above the swapped node are unchanged.

At the first level below v, rates follow the child swap.

Rates at descendant nodes are transported by the subtree swap.

Deletion masses at and above the swapped node are unchanged.

Deletion masses at descendants are transported by the subtree swap.

The fixed-label deletion imbalance at the swapped node changes sign.

A strict ancestor's deletion imbalance is unchanged.

Arbitrary-depth wrappers #

Kernel equivariance and invariant stationary laws #

theorem FD1D.V5.TreeSymmetry.kernel_equivariant_withGap {d L m : ℕ} (v : DyadicNode d) (r : ℕ) (hlevel : d + 1 + r = L) (a : ℝ) (ha : 0 < a) (hm : 0 < m) :
theorem FD1D.V5.TreeSymmetry.kernel_equivariant {d L m : ℕ} (hdL : d < L) (v : DyadicNode d) (a : ℝ) (ha : 0 < a) (hm : 0 < m) :
theorem FD1D.V5.TreeSymmetry.stationary_lawInvariant {d L m : ℕ} (hdL : d < L) (v : DyadicNode d) (a : ℝ) (ha : 0 < a) (hm : 0 < m) {μ : FiniteLaw (InventoryState (DyadicNode L) m)} (hμ : (Dynamics.kernel a ha hm).IsStationary μ) :