MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch15.A595Trade.Sweeps

In One Mind, clause 1 of result 15.2: One price called out to everyone puts the units with the traders who value them most · all its clauses in Lean
theorem MindFormal.A595Trade.result_18_12_1_L596 {Ω : 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 < K * (N - K), ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller < ↑o.buyer) (hcover : ∀ m < K * (N - K), P.PairCoverage m ω) :
P.holdings (K * (N - K)) ω = top N K

18.12.1, L596. P: an arbitrary original-source finite heterogeneous complete native continuation and a legal public offer/settlement protocol. H: K≤N conserved units, each actual legal transfer strictly raises the preserved reference ranking, and every lower-owner/higher-nonowner pair has a represented nonnegative affordable ticket with actual first quote and both assent margins through the finite K(N−K) sweeps. These margins include every output rival, the actual refractory release, pulse expiry and earlier eligible events. C: literal settled holdings at that finite endpoint are exactly the top K. The given continuation retains complete I–III/D4, both relation writers, vector values, gain, traces, both clocks, native pulses and returned input; no eternal protection is asserted.

In One Mind, clause 2 of result 15.2: One price called out to everyone puts the units with the traders who value them most · all its clauses in Lean
theorem MindFormal.A595Trade.result_18_12_2_L596 {Ω : 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) (ho : ∀ m < K * (N - K), ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller < ↑o.buyer) (hcover : ∀ m < K * (N - K), P.PairCoverage m ω) :
P.holdings (K * (N - K)) ω = top N K ∧ P.gross (K * (N - K)) ω ≤ K * (N - K)

18.12.2, L596. P/H: the same finite certified native pair-and-price sweep protocol with strict reference comparisons and conserved K≤N unit-capacity holdings. C: at most K(N−K) sweeps and at most K(N−K) individually executed improving trades suffice. The gross count includes every execution in a multi-trade block. K=0 and K=N include the empty route. All histories have arbitrary original source type.