MindFormal v1.0.0One Mind

MindFormal.Tools.AstraTrade.Sweeps

Complete sweeps reach the strict-order holders. Coverage here concerns individual feasible assent tickets in a hypothetical quiet sweep. The Run adapter derives it from fixed pair/price enumeration and native certificates. No sweep-progress or endpoint premise occurs in the consumer contract.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MindFormal.AstraTrade.sweep_progress {N : ℕ} {book : List (Ticket N)} {s : Ledger N} (hi : Improving book s) (hc : QuietCoverage book s) (hn : ¬Top s.owners) :
    def MindFormal.AstraTrade.route {N : ℕ} (books : ℕ → List (Ticket N)) (initial : Ledger N) :
    ℕ → Ledger N
    Equations
    Instances For
      theorem MindFormal.AstraTrade.route_flatten {N : ℕ} (books : ℕ → List (Ticket N)) (initial : Ledger N) (k : ℕ) :
      route books initial k = run (List.flatMap books (List.range k)) initial
      theorem MindFormal.AstraTrade.route_card {N : ℕ} (books : ℕ → List (Ticket N)) (initial : Ledger N) (k : ℕ) :
      (route books initial k).owners.card = initial.owners.card
      theorem MindFormal.AstraTrade.route_cash {N : ℕ} (books : ℕ → List (Ticket N)) (initial : Ledger N) (k : ℕ) :
      ∑ a : Fin N, (route books initial k).cash a = ∑ a : Fin N, initial.cash a
      theorem MindFormal.AstraTrade.route_funded {N : ℕ} (books : ℕ → List (Ticket N)) (initial : Ledger N) (hf : ∀ (a : Fin N), 0 ≤ initial.cash a) (k : ℕ) (a : Fin N) :
      0 ≤ (route books initial k).cash a
      Equations
      Instances For
        theorem MindFormal.AstraTrade.complete_sweeps {N : ℕ} (books : ℕ → List (Ticket N)) (initial : Ledger N) (hi : ∀ k < sweepBudget initial, Improving (books k) (route books initial k)) (hc : ∀ k < sweepBudget initial, QuietCoverage (books k) (route books initial k)) :
        Top (route books initial (sweepBudget initial)).owners