@[reducible, inline]
abbrev
MindFormal.MarketReplay.ValidMemory
(M A : Type)
(N : A → ℕ)
(Price : Type)
(deadline minimum : NNReal)
:
The market's ordinary memory is restricted to pending valid phases. The subtype retains only stream memory, ledger and phase, with no replay trace.
Equations
- MindFormal.MarketReplay.ValidMemory M A N Price deadline minimum = { m : MindFormal.MarketReplay.Memory M A N Price // MindFormal.MarketReplay.PhaseValid deadline minimum m.2.2 }
Instances For
noncomputable def
MindFormal.MarketReplay.marketAdvance
{A Price : Type}
{N : A → ℕ}
[Fintype A]
[DecidableEq A]
{Ω : Type u_1}
[MeasurableSpace Ω]
{n : A → ℕ}
{T : A → Type u_2}
{Λ : A → Type u_3}
[(a : A) → Fintype (T a)]
[(a : A) → Fintype (Λ a)]
{J : Type u_4}
[Fintype J]
{I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J}
{G : EquationGround Ω J}
(stream : HomogeneousGroupWorld I G)
(deadline minimum : NNReal)
(hd : 0 < deadline)
(hm : 0 < minimum)
(price : Price → ℝ)
(accept : (a : A) → Fin (N a) → Bool)
(jump :
stream.world.Memory → Bilateral.Ledger A → Phase A N Price → stream.world.Memory × Bilateral.Ledger A × Plan A Price)
(hj :
∀ (s : stream.world.Memory) (l : Bilateral.Ledger A) (p : Phase A N Price),
PlanValid deadline minimum (jump s l p).2.2)
(m : ValidMemory stream.world.Memory A N Price deadline minimum)
(w : J ⊕ stream.world.Private → C(NNReal, ℝ))
(t : NNReal)
(h : (a : A) → FiniteActionHistory (Fin (N a)))
:
ValidMemory stream.world.Memory A N Price deadline minimum
The actual market advance is the proved replay on its invariant subtype.
Equations
- MindFormal.MarketReplay.marketAdvance stream deadline minimum hd hm price accept jump hj m w t h = ⟨MindFormal.MarketReplay.replay stream deadline minimum price accept jump (↑m) w t h, ⋯⟩
Instances For
theorem
MindFormal.MarketReplay.marketAdvance_measurable
{A Price : Type}
{N : A → ℕ}
[Fintype A]
[DecidableEq A]
[MeasurableSpace A]
[MeasurableSingletonClass A]
[Finite Price]
[MeasurableSpace Price]
[MeasurableSingletonClass Price]
{Ω : Type u_1}
[MeasurableSpace Ω]
{n : A → ℕ}
{T : A → Type u_2}
{Λ : A → Type u_3}
[(a : A) → Fintype (T a)]
[(a : A) → Fintype (Λ a)]
{J : Type u_4}
[Fintype J]
{I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J}
{G : EquationGround Ω J}
(stream : HomogeneousGroupWorld I G)
(deadline minimum : NNReal)
(hd : 0 < deadline)
(hm : 0 < minimum)
(price : Price → ℝ)
(accept : (a : A) → Fin (N a) → Bool)
(jump :
stream.world.Memory → Bilateral.Ledger A → Phase A N Price → stream.world.Memory × Bilateral.Ledger A × Plan A Price)
(hj :
∀ (s : stream.world.Memory) (l : Bilateral.Ledger A) (p : Phase A N Price),
PlanValid deadline minimum (jump s l p).2.2)
(hjump : Measurable fun (p : Memory stream.world.Memory A N Price) => jump p.1 p.2.1 p.2.2)
:
Measurable
fun
(p :
((ValidMemory stream.world.Memory A N Price deadline minimum × (J ⊕ stream.world.Private → C(NNReal, ℝ))) × FiniteClocks.Histories A N) × NNReal) =>
marketAdvance stream deadline minimum hd hm price accept jump hj p.1.1.1 p.1.1.2 p.2 fun (a : A) => ↑(p.1.2 a)
Measurability of the market advance follows from the replay construction.
noncomputable def
MindFormal.MarketReplay.market
{A Price : Type}
{N : A → ℕ}
[Fintype A]
[DecidableEq A]
[MeasurableSpace A]
[MeasurableSingletonClass A]
[Finite Price]
[MeasurableSpace Price]
[MeasurableSingletonClass Price]
{Ω : Type u_1}
[MeasurableSpace Ω]
{n : A → ℕ}
{T : A → Type u_2}
{Λ : A → Type u_3}
[(a : A) → Fintype (T a)]
[(a : A) → Fintype (Λ a)]
{J : Type u_4}
[Fintype J]
{I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J}
{G : EquationGround Ω J}
(stream : HomogeneousGroupWorld I G)
(deadline minimum : NNReal)
(hd : 0 < deadline)
(hm : 0 < minimum)
(price : Price → ℝ)
(accept : (a : A) → Fin (N a) → Bool)
(jump :
stream.world.Memory → Bilateral.Ledger A → Phase A N Price → stream.world.Memory × Bilateral.Ledger A × Plan A Price)
(hj :
∀ (s : stream.world.Memory) (l : Bilateral.Ledger A) (p : Phase A N Price),
PlanValid deadline minimum (jump s l p).2.2)
(hjump : Measurable fun (p : Memory stream.world.Memory A N Price) => jump p.1 p.2.1 p.2.2)
(initialLedger : Ω → Bilateral.Ledger A)
(initialPhase : Ω → Phase A N Price)
(ledger_measurable : Measurable initialLedger)
(phase_measurable : Measurable initialPhase)
(initial_valid : ∀ (ω : Ω), PhaseValid deadline minimum (initialPhase ω))
(read : ValidMemory stream.world.Memory A N Price deadline minimum → (a : A) → Fin (N a) → ℝ)
(read_measurable : Measurable read)
(read_bound :
∀ (a : A), ∃ (U : ℝ), 0 ≤ U ∧ ∀ (m : ValidMemory stream.world.Memory A N Price deadline minimum), ‖read m a‖ ≤ U)
(read_positive : ∀ (m : ValidMemory stream.world.Memory A N Price deadline minimum) (a : A), 0 ≤ read m a)
(read_supported :
∀ (m : ValidMemory stream.world.Memory A N Price deadline minimum) (a : A), ∀ i ∉ (I a).sensed, read m a i = 0)
:
18.11: the market is a member of the existing homogeneous class. All replay, class and world laws are proved. The premises are precisely the stream, positive lengths, valid measurable jump, initial data known at zero, and the bounded measurable nonnegative sensed input read.
Equations
- One or more equations did not get rendered due to their size.