theorem
MindFormal.A595Trade.Protocol.price_on_completion
{Ω : 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 : ℕ}
(ω : Ω)
(price : ℝ)
(hp : ∀ (j : ℕ), ∀ o ∈ P.book j ω, o.price = price)
(hd :
∀ (j : ℕ), ∀ o ∈ P.book j ω, ∀ (z : Ledger N), o.Legal (P.histories j ω) z → ↑o.seller ∉ top N K ∧ ↑o.buyer ∈ top N K)
(m : ℕ)
(ht : P.holdings m ω = top N K)
:
theorem
MindFormal.A595Trade.Protocol.sparse_price_completion
{Ω : 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.IsProbabilityMeasure μ]
{ℱ : MeasureTheory.Filtration NNReal mΩ}
{r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J}
(P : Protocol r)
{K Q : ℕ}
(hK : K ≤ N)
(hc : ∀ (ω : Ω), (P.initial ω).holders.card = K)
(price : ℝ)
(hprice : ∀ (j : ℕ) (ω : Ω), ∀ o ∈ P.book j ω, o.price = price)
(hd :
∀ (j : ℕ) (ω : Ω),
∀ o ∈ P.book j ω, ∀ (z : Ledger N), o.Legal (P.histories j ω) z → ↑o.seller ∉ top N K ∧ ↑o.buyer ∈ top N K)
(hQ : ∀ (ω : Ω), P.missingCost K 0 ω = Q)
(past : ℕ → MeasurableSpace Ω)
(hsub : ∀ (j : ℕ), past j ≤ mΩ)
(hu : ∀ (j : ℕ), MeasurableSet {ω : Ω | P.holdings j ω ≠ top N K})
(hm : ∀ (j : ℕ), MeasurableSet {ω : Ω | P.holdings (j + 1) ω ≠ P.holdings j ω})
{p : ℝ}
(hp : 0 < p)
(hl :
∀ (j : ℕ),
∀ᵐ (ω : Ω) ∂μ, P.holdings j ω ≠ top N K → p ≤ μ[{ω : Ω | P.holdings (j + 1) ω ≠ P.holdings j ω}.indicator 1 | past j] ω)
:
(∀ᵐ (ω : Ω) ∂μ, ∃ (m : ℕ),
P.holdings m ω = top N K ∧ P.gross m ω = Q ∧ P.prices m ω = List.replicate Q price ∧ ∀ (i : Fin N),
(P.state m ω).cash i - (P.initial ω).cash i = price * (unitHolding (P.initial ω).holders ↑i - unitHolding (top N K) ↑i)) ∧ ∫⁻ (ω : Ω), SparseAgreement.extendedWait (fun (j : ℕ) => {ω : Ω | P.holdings j ω ≠ top N K}) ω ∂μ ≤ ENNReal.ofReal (↑Q / p)
theorem
MindFormal.A595Trade.Protocol.learned_sparse_price_completion
{Ω : 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.IsProbabilityMeasure μ]
{ℱ : MeasureTheory.Filtration NNReal mΩ}
{r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J}
(P : Protocol r)
{K Q : ℕ}
(hK : 0 < K)
(hKN : K < N)
(c b : ℕ → ℝ)
(hcpos : ∀ i < N, 0 < c i)
(hb : StrictMonoOn b (Set.Iio N))
(hc : ∀ (ω : Ω), (P.initial ω).holders.card = K)
(price : ℝ)
(hinterior : b (N - K - 1) < price ∧ price < b (N - K))
(hprice : ∀ (j : ℕ) (ω : Ω), ∀ o ∈ P.book j ω, o.price = price)
(hcomparison :
∀ (j : ℕ) (ω : Ω),
∀ o ∈ P.book j ω,
∀ (z : Ledger N),
o.Legal (P.histories j ω) 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))
(hQ : ∀ (ω : Ω), P.missingCost K 0 ω = Q)
(past : ℕ → MeasurableSpace Ω)
(hsub : ∀ (j : ℕ), past j ≤ mΩ)
(hu : ∀ (j : ℕ), MeasurableSet {ω : Ω | P.holdings j ω ≠ top N K})
(hm : ∀ (j : ℕ), MeasurableSet {ω : Ω | P.holdings (j + 1) ω ≠ P.holdings j ω})
{p : ℝ}
(hp : 0 < p)
(hl :
∀ (j : ℕ),
∀ᵐ (ω : Ω) ∂μ, P.holdings j ω ≠ top N K → p ≤ μ[{ω : Ω | P.holdings (j + 1) ω ≠ P.holdings j ω}.indicator 1 | past j] ω)
:
(∀ᵐ (ω : Ω) ∂μ, ∃ (m : ℕ),
P.holdings m ω = top N K ∧ P.gross m ω = Q ∧ P.prices m ω = List.replicate Q price ∧ ∀ (i : Fin N),
(P.state m ω).cash i - (P.initial ω).cash i = price * (unitHolding (P.initial ω).holders ↑i - unitHolding (top N K) ↑i)) ∧ ∫⁻ (ω : Ω), SparseAgreement.extendedWait (fun (j : ℕ) => {ω : Ω | P.holdings j ω ≠ top N K}) ω ∂μ ≤ ENNReal.ofReal (↑Q / p)