MindFormal v1.0.0One Mind

MindFormal.Tools.A595Trade.Allocation

Finite unit-capacity allocations, their strict rank potential, and the maximum amount of rank available. Ranks are numbered from zero; translating them all by one leaves every deficit and transfer increment unchanged.

Equations
Instances For
    Equations
    Instances For
      theorem MindFormal.A595Trade.top_card {N K : ℕ} (hK : K ≤ N) :
      (top N K).card = K
      theorem MindFormal.A595Trade.transfer_card {h : Finset ℕ} {s b : ℕ} (hs : s ∈ h) (hb : b ∉ h) :
      (transfer h s b).card = h.card
      theorem MindFormal.A595Trade.transfer_potential {h : Finset ℕ} {s b : ℕ} (hs : s ∈ h) (hb : b ∉ h) :
      theorem MindFormal.A595Trade.transfer_improves {h : Finset ℕ} {s b : ℕ} (hs : s ∈ h) (hb : b ∉ h) (hsb : s < b) :
      theorem MindFormal.A595Trade.separated_sum_le {s t : Finset ℕ} (hc : s.card = t.card) (cut : ℕ) (hs : ∀ i ∈ s \ t, i ≤ cut) (ht : ∀ i ∈ t \ s, cut ≤ i) :
      theorem MindFormal.A595Trade.potential_le_top {N K : ℕ} {h : Finset ℕ} (hK : K ≤ N) (hc : h.card = K) (hr : h ⊆ Finset.range N) :
      theorem MindFormal.A595Trade.top_bottom_gap {N K : ℕ} (hK : K ≤ N) :
      potential (top N K) = potential (Finset.range K) + K * (N - K)
      theorem MindFormal.A595Trade.deficit_bound {N K : ℕ} {h : Finset ℕ} (hK : K ≤ N) (hc : h.card = K) :
      deficit N K h ≤ K * (N - K)
      theorem MindFormal.A595Trade.missing_pair {N K : ℕ} {h : Finset ℕ} (hK : K ≤ N) (hc : h.card = K) (hr : h ⊆ Finset.range N) (hne : h ≠ top N K) :
      ∃ s ∈ h, ∃ b ∈ top N K, s ∉ top N K ∧ b ∉ h ∧ s < b
      theorem MindFormal.A595Trade.deficit_zero_iff {N K : ℕ} {h : Finset ℕ} (hK : K ≤ N) (hc : h.card = K) (hr : h ⊆ Finset.range N) :
      deficit N K h = 0 ↔ h = top N K
      theorem MindFormal.A595Trade.improving_transfer_deficit {N K : ℕ} {h : Finset ℕ} {s b : ℕ} (hK : K ≤ N) (hc : h.card = K) (hr : h ⊆ Finset.range N) (hs : s ∈ h) (hb : b ∉ h) (hbN : b < N) (hsb : s < b) :
      deficit N K (transfer h s b) + (b - s) = deficit N K h