MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch16.MarketMeasurable

@[instance_reducible]

The first-act option carries precisely the sigma algebra transported from a timed label or a separate absent marker.

Equations
Instances For

    The specified first-act encoding is a measurable equivalence.

    Equations
    Instances For

      The absent first act has a dummy zero time; its separate label retains absence, so this does not replace a missing act by an act at zero.

      Equations
      Instances For

        The finite first-act label retains the absent marker.

        Equations
        Instances For

          The first-act time read is measurable in the transported structure.

          The first-act label read is measurable; labels are finite and discrete.

          Building a timed present act is measurable.

          theorem MindFormal.MarketReplay.firstFrom_measurable {C : Type u_1} [MeasurableSpace C] [Countable C] :
          Measurable fun (p : NNReal × Option C) => Option.map (fun (i : C) => (p.1, i)) p.2

          Reconstruction from time and finite optional label is measurable.

          Translating first-act times is measurable and preserves absence.

          The first slot is a measurable timed label or absence.

          Closed restriction is jointly measurable for finite timed records.

          Translating an occupied slot and keeping the empty marker is measurable.

          The rebased rest is jointly measurable, including its variable starting slot determined by the closed prefix.

          First-act collection is jointly measurable in age, stored act and record; it retains a present old act and otherwise translates the first slot.

          A party's capped elapsed end is jointly measurable.

          def MindFormal.MarketReplay.planOffer {A : Type u_1} {Price : Type u_2} :
          Plan A Price → Option (Bilateral.Offer A Price)

          The offered-pair read keeps idle phases distinct.

          Equations
          Instances For

            Finite offer selection from a phase plan is measurable.

            theorem MindFormal.MarketReplay.length_measurable {A : Type u_1} {Price : Type u_2} [MeasurableSpace A] [MeasurableSpace Price] (deadline : NNReal) :
            Measurable (length deadline)

            The primitive plan's length is a measurable read.

            theorem MindFormal.MarketReplay.fresh_measurable {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [MeasurableSpace A] [MeasurableSpace Price] :

            The fresh-phase constructor is measurable.

            theorem MindFormal.MarketReplay.observe_measurable {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [Finite A] [MeasurableSpace A] [MeasurableSingletonClass A] [Finite Price] [MeasurableSpace Price] [MeasurableSingletonClass Price] :
            Measurable fun (p : (Phase A N Price × NNReal) × ((a : A) → FiniteActionHistory (Fin (N a)))) => observe p.1.1 p.1.2 p.2

            Phase observation is jointly measurable in the phase, elapsed time and prescribed finite records.

            theorem MindFormal.MarketReplay.phaseEnd_measurable {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [Finite A] [MeasurableSpace A] [MeasurableSingletonClass A] [Finite Price] [MeasurableSpace Price] [MeasurableSingletonClass Price] (deadline : NNReal) :
            Measurable fun (p : Phase A N Price × ((a : A) → FiniteActionHistory (Fin (N a)))) => phaseEnd deadline p.1 p.2

            The phase-end duration is jointly measurable in the ordinary phase coordinates and prescribed records.

            theorem MindFormal.MarketReplay.firstAccepts_firstHistory {A : Type u_1} {N : A → ℕ} (a : A) (accept : Fin (N a) → Bool) (q : Option (NNReal × Fin (N a))) :

            The existing ledger's first-acceptance read on a stored first act is exactly its finite taught label read.

            theorem MindFormal.MarketReplay.settle_offer_measurable {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [MeasurableSpace A] [MeasurableSpace Price] [DecidableEq A] (price : Price → ℝ) (accept : (a : A) → Fin (N a) → Bool) (offer : Bilateral.Offer A Price) :
            Measurable fun (p : Bilateral.Ledger A × Phase A N Price) => Bilateral.settle price offer p.1 accept fun (a : A) => firstHistory (p.2.2.2 a)

            At a fixed offer, the physical transfer computed from stored first acts is jointly measurable in the ledger and phase coordinates.

            theorem MindFormal.MarketReplay.settle_measurable {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [Finite A] [MeasurableSpace A] [MeasurableSingletonClass A] [Finite Price] [MeasurableSpace Price] [MeasurableSingletonClass Price] [DecidableEq A] (price : Price → ℝ) (accept : (a : A) → Fin (N a) → Bool) :
            Measurable fun (p : Bilateral.Ledger A × Phase A N Price) => settle price accept p.1 p.2

            Market settlement, including idle phases, is jointly measurable.

            theorem MindFormal.MarketReplay.replayFuel_measurable {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [Finite A] [MeasurableSpace A] [MeasurableSingletonClass A] [Finite Price] [MeasurableSpace Price] [MeasurableSingletonClass Price] [DecidableEq A] {Ω : Type u_3} [MeasurableSpace Ω] {n : A → ℕ} {T : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_6} [Fintype J] {I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J} {G : EquationGround Ω J} (stream : HomogeneousGroupWorld I G) (deadline : NNReal) (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) (hjump : Measurable fun (p : Memory stream.world.Memory A N Price) => jump p.1 p.2.1 p.2.2) (fuel : ℕ) {X : Type u_7} [MeasurableSpace X] (m : X → Memory stream.world.Memory A N Price) (w : X → J ⊕ stream.world.Private → C(NNReal, ℝ)) (t : X → NNReal) (h : X → FiniteClocks.Histories A N) (hm : Measurable m) (hw : Measurable w) (ht : Measurable t) (hh : Measurable h) :
            Measurable fun (x : X) => replayFuel stream deadline price accept jump fuel (m x) (w x) (t x) fun (a : A) => ↑(h x a)

            Each finite replay level is measurable on prescribed chronological records. This uses the stream's existing joint law and the primitive jump.

            theorem MindFormal.MarketReplay.budget_measurable {A : Type u_1} {N : A → ℕ} [Fintype A] (deadline minimum : NNReal) :
            Measurable fun (p : ((a : A) → FiniteActionHistory (Fin (N a))) × NNReal) => budget deadline minimum p.2 p.1

            The explicit adequate replay budget is a measurable natural count.

            theorem MindFormal.MarketReplay.replay_measurable {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [MeasurableSpace A] [MeasurableSingletonClass A] [Finite Price] [MeasurableSpace Price] [MeasurableSingletonClass Price] [DecidableEq A] {Ω : Type u_3} [MeasurableSpace Ω] {n : A → ℕ} {T : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_6} [Fintype J] {I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J} {G : EquationGround Ω J} [Fintype A] (stream : HomogeneousGroupWorld I G) (deadline minimum : NNReal) (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) (hjump : Measurable fun (p : Memory stream.world.Memory A N Price) => jump p.1 p.2.1 p.2.2) :
            Measurable fun (p : ((Memory stream.world.Memory A N Price × (J ⊕ stream.world.Private → C(NNReal, ℝ))) × FiniteClocks.Histories A N) × NNReal) => replay stream deadline minimum price accept jump p.1.1.1 p.1.1.2 p.2 fun (a : A) => ↑(p.1.2 a)

            Joint measurability of the actual replay, with its computed fuel, on exactly the chronological record domain of the homogeneous class.