MindFormal v1.0.0One Mind

MindFormal.Run.A595Trade.Ledger

A finite-population, unit-capacity settlement interface. Quotes and both assents are literal first native marks in complete histories. The world checks ownership and funding and then performs only the declared transfer; no private value, reference rank or agreement oracle enters settlement.

Instances For
    def MindFormal.A595Trade.cashTransfer {N : ℕ} (cash : Fin N → ℝ) (s b : Fin N) (price : ℝ) (i : Fin N) :
    Equations
    Instances For
      theorem MindFormal.A595Trade.cashTransfer_sum {N : ℕ} (cash : Fin N → ℝ) (s b : Fin N) (price : ℝ) :
      ∑ i : Fin N, cashTransfer cash s b price i = ∑ i : Fin N, cash i
      theorem MindFormal.A595Trade.cashTransfer_nonnegative {N : ℕ} {cash : Fin N → ℝ} {s b : Fin N} {price : ℝ} (hc : ∀ (i : Fin N), 0 ≤ cash i) (hp : 0 ≤ price) (hf : price ≤ cash b) (i : Fin N) :
      0 ≤ cashTransfer cash s b price i
      structure MindFormal.A595Trade.Ticket {N : ℕ} (M : Fin N → ℕ) :
      Instances For
        @[reducible, inline]
        abbrev MindFormal.A595Trade.Histories {N : ℕ} (M : Fin N → ℕ) :
        Equations
        Instances For
          def MindFormal.A595Trade.FirstMark {N : ℕ} {M : Fin N → ℕ} (h : Histories M) (a : Fin N) (index : ℕ) (label : Fin (M a)) (entry deadline : ℝ) :
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def MindFormal.A595Trade.Ticket.Marks {N : ℕ} {M : Fin N → ℕ} (o : Ticket M) (h : Histories M) :
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def MindFormal.A595Trade.Ticket.Legal {N : ℕ} {M : Fin N → ℕ} (o : Ticket M) (h : Histories M) (s : Ledger N) :
              Equations
              Instances For
                noncomputable def MindFormal.A595Trade.Ticket.settle {N : ℕ} {M : Fin N → ℕ} (o : Ticket M) (h : Histories M) (s : Ledger N) :
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem MindFormal.A595Trade.Ticket.settle_card {N : ℕ} {M : Fin N → ℕ} (o : Ticket M) (h : Histories M) (s : Ledger N) :
                  theorem MindFormal.A595Trade.Ticket.settle_cash_sum {N : ℕ} {M : Fin N → ℕ} (o : Ticket M) (h : Histories M) (s : Ledger N) :
                  ∑ i : Fin N, (o.settle h s).cash i = ∑ i : Fin N, s.cash i
                  theorem MindFormal.A595Trade.Ticket.settle_funded {N : ℕ} {M : Fin N → ℕ} (o : Ticket M) (h : Histories M) (s : Ledger N) (hc : ∀ (i : Fin N), 0 ≤ s.cash i) (i : Fin N) :
                  0 ≤ (o.settle h s).cash i
                  noncomputable def MindFormal.A595Trade.Ticket.run {N : ℕ} {M : Fin N → ℕ} (offers : List (Ticket M)) (h : Histories M) (s : Ledger N) :
                  Equations
                  Instances For
                    theorem MindFormal.A595Trade.Ticket.run_conservation {N : ℕ} {M : Fin N → ℕ} (offers : List (Ticket M)) (h : Histories M) (s : Ledger N) :
                    (run offers h s).holders.card = s.holders.card ∧ ∑ i : Fin N, (run offers h s).cash i = ∑ i : Fin N, s.cash i
                    theorem MindFormal.A595Trade.Ticket.run_funded {N : ℕ} {M : Fin N → ℕ} (offers : List (Ticket M)) (h : Histories M) (s : Ledger N) (hc : ∀ (i : Fin N), 0 ≤ s.cash i) (i : Fin N) :
                    0 ≤ (run offers h s).cash i
                    theorem MindFormal.A595Trade.Ticket.settle_protected {N : ℕ} {M : Fin N → ℕ} (o : Ticket M) (h : Histories M) (s : Ledger N) (hsign : o.Legal h s → ↑o.seller < ↑o.buyer) :
                    theorem MindFormal.A595Trade.Ticket.run_potential_ge {N : ℕ} {M : Fin N → ℕ} (offers : List (Ticket M)) (h : Histories M) (s : Ledger N) (horder : ∀ o ∈ offers, ∀ (z : Ledger N), o.Legal h z → ↑o.seller < ↑o.buyer) :
                    theorem MindFormal.A595Trade.Ticket.run_no_transfer {N : ℕ} {M : Fin N → ℕ} (offers : List (Ticket M)) (h : Histories M) (s : Ledger N) (horder : ∀ o ∈ offers, ∀ (z : Ledger N), o.Legal h z → ↑o.seller < ↑o.buyer) (he : (run offers h s).holders = s.holders) (o : Ticket M) :
                    o ∈ offers → ¬o.Legal h s
                    theorem MindFormal.A595Trade.Ticket.sweep_progress {N : ℕ} {M : Fin N → ℕ} (offers : List (Ticket M)) (h : Histories M) (s : Ledger N) (horder : ∀ o ∈ offers, ∀ (z : Ledger N), o.Legal h z → ↑o.seller < ↑o.buyer) (hcoverage : ∃ o ∈ offers, o.Legal h s) :
                    (run offers h s).holders ≠ s.holders

                    Enumeration of pairs/prices is used only to find an actual legal ticket when a complete sweep would otherwise remain stationary.

                    noncomputable def MindFormal.A595Trade.nativeHistories {Ω : 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) (H : NNReal) (ω : Ω) :
                    Equations
                    Instances For
                      def MindFormal.A595Trade.FirstMargin {Ω : 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) (H : NNReal) (ω : Ω) (a : Fin N) (index : ℕ) (label : Fin (M a)) (entry deadline : ℝ) :

                      A certificate supplies inequalities on the actual complete path. Every output rival participates in RaceMargin, and earlier action indices must already precede the encounter's entry. No emitted mark is supplied.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem MindFormal.A595Trade.FirstMargin.mark {Ω : 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} {H : NNReal} {ω : Ω} {a : Fin N} {index : ℕ} {label : Fin (M a)} {entry deadline : ℝ} (h : FirstMargin r H ω a index label entry deadline) :
                        FirstMark (nativeHistories r H ω) a index label entry deadline
                        structure MindFormal.A595Trade.TicketMargins {Ω : 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) (H : NNReal) (ω : Ω) (o : Ticket M) :
                        Instances For
                          theorem MindFormal.A595Trade.TicketMargins.marks {Ω : 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} {H : NNReal} {ω : Ω} {o : Ticket M} (h : TicketMargins r H ω o) :
                          theorem MindFormal.A595Trade.TicketMargins.executes {Ω : 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} {H : NNReal} {ω : Ω} {o : Ticket M} (h : TicketMargins r H ω o) (s : Ledger N) (hrep : o.represented = true) (hp : 0 ≤ o.price) (hs : ↑o.seller ∈ s.holders) (hb : ↑o.buyer ∉ s.holders) (hf : o.price ≤ s.cash o.buyer) :