MindFormal v1.0.0One Mind

MindFormal.Run.A595Trade.Quantity

theorem MindFormal.A595Trade.Ticket.no_execution {N : ℕ} {M : Fin N → ℕ} (offers : List (Ticket M)) (h : Histories M) (s : Ledger N) (hz : executionCount offers h s = 0) :
run offers h s = s
def MindFormal.A595Trade.Protocol.gross {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J} (P : Protocol r) :
ℕ → Ω → ℕ
Equations
Instances For
    def MindFormal.A595Trade.Protocol.prices {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J} (P : Protocol r) :
    ℕ → Ω → List ℝ
    Equations
    Instances For
      theorem MindFormal.A595Trade.Protocol.quantity_accounting {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J} (P : Protocol r) (target : Finset ℕ) (ω : Ω) (hdirect : ∀ (m : ℕ), ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller ∉ target ∧ ↑o.buyer ∈ target) (m : ℕ) :
      P.gross m ω + missing target (P.holdings m ω) = missing target (P.holdings 0 ω)
      theorem MindFormal.A595Trade.Protocol.prices_length {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J} (P : Protocol r) (m : ℕ) (ω : Ω) :
      (P.prices m ω).length = P.gross m ω
      theorem MindFormal.A595Trade.Protocol.prices_common {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J} (P : Protocol r) (price : ℝ) (ω : Ω) (hp : ∀ (m : ℕ), ∀ o ∈ P.book m ω, o.price = price) (m : ℕ) :
      P.prices m ω = List.replicate (P.gross m ω) price
      theorem MindFormal.A595Trade.Protocol.cash_flow {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J} (P : Protocol r) (price : ℝ) (ω : Ω) (hp : ∀ (m : ℕ), ∀ o ∈ P.book m ω, o.price = price) (m : ℕ) (i : Fin N) :
      (P.state m ω).cash i - (P.initial ω).cash i = price * (unitHolding (P.initial ω).holders ↑i - unitHolding (P.holdings m ω) ↑i)
      theorem MindFormal.A595Trade.Protocol.common_price_sweeps {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J} (P : Protocol r) {K : ℕ} (hK : K ≤ N) (ω : Ω) (hc : (P.initial ω).holders.card = K) (price : ℝ) (hp : ∀ (m : ℕ), ∀ o ∈ P.book m ω, o.price = price) (hd : ∀ (m : ℕ), ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller ∉ top N K ∧ ↑o.buyer ∈ top N K) (hcover : ∀ (m : ℕ), P.PairCoverage m ω) :
      have Q := missing (top N K) (P.initial ω).holders; P.holdings Q ω = top N K ∧ P.gross Q ω = Q ∧ P.prices Q ω = List.replicate Q price ∧ ∀ (i : Fin N), (P.state Q ω).cash i - (P.initial ω).cash i = price * (unitHolding (P.initial ω).holders ↑i - unitHolding (top N K) ↑i)

      Complete affordable native sweeps finish within the number of missing top holders. The endpoint is derived from the same actual quote and assent margins as the general route. The record is exactly a repeated paid price; its normalized law is a Dirac mass when the repetition count is positive.