MindFormal v1.0.0One Mind

MindFormal.Tools.A595Trade.Quantities

theorem MindFormal.A595Trade.missing_zero_iff {target h : Finset ℕ} (hc : h.card = target.card) :
missing target h = 0 ↔ h = target
Instances For
    theorem MindFormal.A595Trade.directRoute_length {target h : Finset ℕ} {xs : List (ℕ × ℕ)} (hr : DirectRoute target h xs) :
    xs.length = missing target h
    theorem MindFormal.A595Trade.shortest_reallocation (target h : Finset ℕ) (hc : h.card = target.card) :
    ∃ (xs : List (ℕ × ℕ)), DirectRoute target h xs ∧ xs.length = missing target h

    Any physical sequence of unit transfers, including indirect resales.

    Instances For
      theorem MindFormal.A595Trade.unitRoute_quantity_bound {target h final : Finset ℕ} {xs : List (ℕ × ℕ)} (hr : UnitRoute h xs final) :
      missing target h ≤ xs.length + missing target final
      theorem MindFormal.A595Trade.minimum_reallocation {target h : Finset ℕ} {xs : List (ℕ × ℕ)} (hr : UnitRoute h xs target) :
      missing target h ≤ xs.length
      theorem MindFormal.A595Trade.quantity_sweeps {N K : ℕ} {h : ℕ → Finset ℕ} (hv : ∀ (m : ℕ), (h m).card = K) (hstep : ∀ (m : ℕ), h m ≠ top N K → missing (top N K) (h (m + 1)) + 1 ≤ missing (top N K) (h m)) (hstay : ∀ (m : ℕ), h m = top N K → h (m + 1) = top N K) (hK : K ≤ N) :
      h (missing (top N K) (h 0)) = top N K