theorem
MindFormal.A595Trade.Protocol.quantity_prefix
{Ω : 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 ℕ)
(ω : Ω)
(T : ℕ)
(hd : ∀ m < T, ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller ∉ target ∧ ↑o.buyer ∈ target)
:
theorem
MindFormal.A595Trade.Protocol.prices_prefix
{Ω : 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 : ℝ)
(ω : Ω)
(T : ℕ)
(hp : ∀ m < T, ∀ o ∈ P.book m ω, o.price = price)
:
theorem
MindFormal.A595Trade.Protocol.cash_prefix
{Ω : 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 : ℝ)
(ω : Ω)
(T : ℕ)
(hp : ∀ m < T, ∀ o ∈ P.book m ω, o.price = price)
(i : Fin N)
:
theorem
MindFormal.A595Trade.Protocol.finite_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 < missing (top N K) (P.initial ω).holders, ∀ o ∈ P.book m ω, o.price = price)
(hd :
∀ m < missing (top N K) (P.initial ω).holders,
∀ 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 < missing (top N K) (P.initial ω).holders, P.PairCoverage m ω)
:
theorem
MindFormal.A595Trade.Protocol.learned_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 : 0 < K)
(hKN : K < N)
(ω : Ω)
(hc : (P.initial ω).holders.card = K)
(c b : ℕ → ℝ)
(hcpos : ∀ i < N, 0 < c i)
(hb : StrictMonoOn b (Set.Iio N))
(price : ℝ)
(hprice : b (N - K - 1) < price ∧ price < b (N - K))
(hp : ∀ m < missing (top N K) (P.initial ω).holders, ∀ o ∈ P.book m ω, o.price = price)
(hcomparison :
∀ m < missing (top N K) (P.initial ω).holders,
∀ o ∈ P.book m ω,
∀ (z : Ledger N),
o.Legal (P.histories m ω) z →
bundleUtility (c ↑o.seller) (b ↑o.seller) true (z.cash o.seller) < bundleUtility (c ↑o.seller) (b ↑o.seller) false (z.cash o.seller + o.price) ∧ bundleUtility (c ↑o.buyer) (b ↑o.buyer) false (z.cash o.buyer) < bundleUtility (c ↑o.buyer) (b ↑o.buyer) true (z.cash o.buyer - o.price))
(hcover : ∀ m < missing (top N K) (P.initial ω).holders, P.PairCoverage m ω)
: