theorem
MindFormal.A595Trade.Protocol.sparse_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 L : ℕ}
(hK : K ≤ N)
(hc : ∀ (ω : Ω), (P.initial ω).holders.card = K)
(failed : ℕ → Set Ω)
(hf : Monotone failed)
(ho :
∀ (m : ℕ),
∀ ω ∉ failed m, ∀ j < m, ∀ o ∈ P.book j ω, ∀ (z : Ledger N), o.Legal (P.histories j ω) z → ↑o.seller < ↑o.buyer)
(hL : ∀ (ω : Ω), deficit N K (P.holdings 0 ω) = L)
(past : ℕ → MeasurableSpace Ω)
(hsub : ∀ (j : ℕ), past j ≤ mΩ)
(hu : ∀ (j : ℕ), MeasurableSet {ω : Ω | P.holdings j ω ≠ top N K ∧ ω ∉ failed j})
(hs : ∀ (j : ℕ), MeasurableSet (terminatedTrials N K P.holdings failed j))
(p : ℕ → Ω → ℝ)
(hp : ∀ (j : ℕ), Measurable (p j))
(hp01 : ∀ (j : ℕ) (ω : Ω), 0 ≤ p j ω ∧ p j ω ≤ 1)
(hl :
∀ (j : ℕ),
∀ᵐ (ω : Ω) ∂μ, P.holdings j ω ≠ top N K →
ω ∉ failed j → p j ω ≤ μ[(terminatedTrials N K P.holdings failed j).indicator 1 | past j] ω)
(hdiv : ∀ (ω : Ω), (∀ (j : ℕ), P.holdings j ω ≠ top N K ∧ ω ∉ failed j) → ∑' (j : ℕ), ENNReal.ofReal (p j ω) = ⊤)
:
theorem
MindFormal.A595Trade.Protocol.sparse_finite
{Ω : 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 L : ℕ}
(hK : K ≤ N)
(hc : ∀ (ω : Ω), (P.initial ω).holders.card = K)
(failed : ℕ → Set Ω)
(hf : Monotone failed)
(past : ℕ → MeasurableSpace Ω)
(hsub : ∀ (j : ℕ), past j ≤ mΩ)
(hm : Monotone past)
(hknown : ∀ (j : ℕ), MeasurableSet (terminatedTrials N K P.holdings failed j))
(hstop : ∀ (j : ℕ), MeasurableSet {ω : Ω | P.holdings j ω = top N K ∨ ω ∈ failed j})
(p : ℕ → ℝ)
(hp : ∀ (j : ℕ), 0 ≤ p j ∧ p j ≤ 1)
(hl :
∀ (j : ℕ),
∀ᵐ (ω : Ω) ∂μ, P.holdings j ω ≠ top N K →
ω ∉ failed j → p j ≤ μ[(terminatedTrials N K P.holdings failed j).indicator 1 | past j] ω)
(m : ℕ)
(ho : ∀ ω ∉ failed m, ∀ j < m, ∀ o ∈ P.book j ω, ∀ (z : Ledger N), o.Legal (P.histories j ω) z → ↑o.seller < ↑o.buyer)
(hL : ∀ (ω : Ω), deficit N K (P.holdings 0 ω) = L)
{ε : ℝ}
(hfail : μ.real (failed m) ≤ ε)
:
theorem
MindFormal.A595Trade.Protocol.sparse_expected
{Ω : 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 L : ℕ}
(hK : K ≤ N)
(hc : ∀ᵐ (ω : Ω) ∂μ, (P.initial ω).holders.card = K)
(ho : ∀ᵐ (ω : Ω) ∂μ, ∀ (m : ℕ), ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller < ↑o.buyer)
(hL : ∀ᵐ (ω : Ω) ∂μ, deficit N K (P.holdings 0 ω) = L)
(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] ω)
:
theorem
MindFormal.A595Trade.Protocol.sparse_rank_budget
{Ω : 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 : ℕ), ∀ o ∈ P.book m ω, ∀ (z : Ledger N), o.Legal (P.histories m ω) z → ↑o.seller < ↑o.buyer)
:
theorem
MindFormal.A595Trade.Protocol.sparse_sink_test
{Ω : 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)
(initial : Finset ℕ)
(edge : Finset ℕ → Finset ℕ → Prop)
(he : ∀ (a b : Finset ℕ), edge a b → a.card = K ∧ a ⊆ Finset.range N ∧ Improving N a b)
(hstart : ∀ (ω : Ω), P.holdings 0 ω = initial)
(hlaw : ∀ᵐ (ω : Ω) ∂μ, Supported edge fun (m : ℕ) => P.holdings m ω)
(hrec : ∀ᵐ (ω : Ω) ∂μ, Recurrent edge fun (m : ℕ) => P.holdings m ω)
(hpositive : ∀ (y : Finset ℕ), Relation.ReflTransGen edge initial y → 0 < μ {ω : Ω | ∃ (m : ℕ), P.holdings m ω = y})
: