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.
- within : self.holders ⊆ Finset.range N
Instances For
@[reducible, inline]
Equations
- MindFormal.A595Trade.Histories M = ((a : Fin N) → MindFormal.FiniteActionHistory (Fin (M a)))
Instances For
noncomputable def
MindFormal.A595Trade.Ticket.run
{N : ℕ}
{M : Fin N → ℕ}
(offers : List (Ticket M))
(h : Histories M)
(s : Ledger N)
:
Ledger N
Equations
- MindFormal.A595Trade.Ticket.run offers h s = List.foldl (fun (s : MindFormal.A595Trade.Ledger N) (o : MindFormal.A595Trade.Ticket M) => o.settle h s) s offers
Instances For
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)
:
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
- MindFormal.A595Trade.nativeHistories r H ω a = ↑(r.records H ω a false)
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)
:
- quote : o.nativeQuote = true → FirstMargin r H ω o.quoter o.quoteIndex o.quoteLabel o.entry o.quoteDeadline
- quoteBeforeAssent : o.nativeQuote = true → o.quoteDeadline < o.assentEntry
- seller : FirstMargin r H ω o.seller o.sellerIndex o.sellerLabel o.assentEntry ↑o.deadline
- buyer : FirstMargin r H ω o.buyer o.buyerIndex o.buyerLabel o.assentEntry ↑o.deadline
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)
:
o.Marks (nativeHistories r H ω)
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)
: