MindFormal v1.0.0One Mind

MindFormal.Run.A595Trade.Protocol

A common finite-population continuation consumes literal complete native histories. Its settlement reads only public ticket/ledger data.

theorem MindFormal.A595Trade.Ticket.run_rank_step {N : ℕ} {M : Fin N → ℕ} (offers : List (Ticket M)) (h : Histories M) (s : Ledger N) {K : ℕ} (hK : K ≤ N) (hc : s.holders.card = K) (horder : ∀ o ∈ offers, ∀ (z : Ledger N), o.Legal h z → ↑o.seller < ↑o.buyer) :
(run offers h s).holders = s.holders ∨ deficit N K (run offers h s).holders + 1 ≤ deficit N K s.holders
structure MindFormal.A595Trade.Protocol {Ω : 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) :
Type u_1
Instances For
    noncomputable def MindFormal.A595Trade.Protocol.histories {Ω : 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 : ℕ) (ω : Ω) :
    Equations
    Instances For
      def MindFormal.A595Trade.Protocol.state {Ω : 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) :
      ℕ → Ω → Ledger N
      Equations
      Instances For
        noncomputable def MindFormal.A595Trade.Protocol.holdings {Ω : 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 : ℕ) (ω : Ω) :
        Equations
        Instances For
          theorem MindFormal.A595Trade.Protocol.conservation {Ω : 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.holdings m ω).card = (P.initial ω).holders.card ∧ ∑ i : Fin N, (P.state m ω).cash i = ∑ i : Fin N, (P.initial ω).cash i
          theorem MindFormal.A595Trade.Protocol.funded {Ω : 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 : ℕ) (ω : Ω) (hf : ∀ (i : Fin N), 0 ≤ (P.initial ω).cash i) (i : Fin N) :
          0 ≤ (P.state m ω).cash i
          theorem MindFormal.A595Trade.Protocol.rank_route {Ω : 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) (horder : ∀ (m : ℕ), ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller < ↑o.buyer) :
          RankRoute N K fun (m : ℕ) => P.holdings m ω
          def MindFormal.A595Trade.Protocol.PairCoverage {Ω : 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 : ℕ) (ω : Ω) :

          A complete sweep covers each improving pair by a represented funded ticket with full native quote/assent margins. A stationary sweep cannot have consumed an earlier budget, so this incoming coverage suffices.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.A595Trade.Protocol.pair_coverage_progress {Ω : 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) {m : ℕ} {ω : Ω} (hc : (P.holdings m ω).card = K) (hn : P.holdings m ω ≠ top N K) (hcover : P.PairCoverage m ω) (horder : ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller < ↑o.buyer) :
            P.holdings (m + 1) ω ≠ P.holdings m ω
            theorem MindFormal.A595Trade.Protocol.complete_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) (horder : ∀ (m : ℕ), ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller < ↑o.buyer) (hcover : ∀ (m : ℕ), P.PairCoverage m ω) :
            ∃ m ≤ K * (N - K), P.holdings m ω = top N K