Fractional token allocation for a graph cubeahedron
ProvedMarkovScattering.Halohedron.fractionalTokenAllocationmarkov-scattering
Let each token scope be a finite set of sites carrying arbitrary nonnegative real mass, and each site have nonnegative capacity. All token masses can be distributed within their scopes without exceeding any site capacity exactly when every set of sites has capacity at least the total mass of the tokens entirely contained in it. This is the fractional matching step of the stochastic graph-cubeahedron construction. A Lean proof for this weighted formulation is requested.
Preamble
import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Data.Real.Basic import Mathlib.Data.Finset.Powerset open scoped BigOperators
Formal statement
theorem MarkovScattering.Halohedron.fractionalTokenAllocation
{n : ℕ} (tokens : Finset (Finset (Fin n))) (c : Finset (Fin n) → ℝ) (y : Fin n → ℝ)
(hc : ∀ T ∈ tokens, 0 ≤ c T) (hy : ∀ i, 0 ≤ y i) :
(∀ S : Finset (Fin n), (∑ T ∈ tokens.filter (fun T => T ⊆ S), c T) ≤ ∑ i ∈ S, y i) ↔
∃ alloc : Finset (Fin n) → Fin n → ℝ,
(∀ T ∈ tokens, ∀ i, 0 ≤ alloc T i) ∧
(∀ T ∈ tokens, ∀ i, i ∉ T → alloc T i = 0) ∧
(∀ T ∈ tokens, ∑ i, alloc T i = c T) ∧
(∀ i, (∑ T ∈ tokens, alloc T i) ≤ y i) := by sorrySource