Documentation

SHSLib.Core.DavisOneSegmentConditionalStep

The conditional step of the one-segment martingale #

The segmentwise decomposition reduced the deterministic-cap increment law — the last structural input of the elapsed occupation theory — to the martingale property of the contribution of a single flow segment. Its deterministic half is the truncated one-segment compensation identity. This module supplies the missing conditional step.

The contribution of segment N splits pathwise into a completed part, carried by the realized reset once the segment has ended, and an active part, the partial occupation compensator accumulated while the segment is still running. Conditionally on the history available at time s, on the event that segment N is active at s with age u = s − T_N, the holding time has the integrated-hazard law renormalized by the survivor factor Sur(u), and the channel has the normalized intensity law. The conditional means of the two parts at a later time t, with v = t − T_N, are therefore

The truncated one-segment compensation identity evaluates the first integral as Sur(v)·comp(v) − Sur(u)·comp(u), so the difference of the two conditional means is exactly −comp(u), which is the value of the segment contribution at time s. That is the conditional step, and it makes the single-segment contribution a martingale; by the segmentwise decomposition the deterministic-cap increment law follows.

The conditional laws themselves — the two integral identities on events of the filtration, and the centering of a segment not yet started at s — are collected in DavisSegmentConditionalStepLaw, an interface a concrete model verifies from its holding-time and channel laws.

Pathwise splitting of the single-segment contribution #

def SHS.davisSegmentCompletedContribution {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) (ω : Ω) :

The fully realized and compensated contribution of segment N, carried once that segment has been completed.

Equations
Instances For
    def SHS.davisSegmentCompletedPart {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) (t : NNReal) (ω : Ω) :

    The completed part of the contribution of segment N at elapsed time t: the realized centered reset, retained once the segment has ended.

    Equations
    Instances For
      def SHS.davisSegmentActivePart {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) (t : NNReal) (ω : Ω) :

      The active part of the contribution of segment N at elapsed time t: the partial occupation compensator accumulated while the segment is still running.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem SHS.davisElapsedOccupationSegmentContribution_eq_ite_jumpTime {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (hne : ξ.NonExplosive) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) (t : NNReal) (ω : Ω) :
        S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N t ω = if ξ.jumpTime (N + 1) ω ≤ t then S.davisSegmentCompletedContribution hflow ξ initial g N ω else if ξ.jumpTime N ω ≤ t then -S.davisSegmentResetOccupationCompensator hflow g (S.davisStateAfterJump hflow ξ initial N ω) (t - ξ.jumpTime N ω) else 0

        Jump-time form of the single-segment contribution.

        theorem SHS.davisElapsedOccupationSegmentContribution_eq_sub {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (hne : ξ.NonExplosive) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) (t : NNReal) (ω : Ω) :
        S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N t ω = S.davisSegmentCompletedPart hflow ξ initial g N t ω - S.davisSegmentActivePart hflow ξ initial g N t ω

        The single-segment contribution is the completed part minus the active part.

        The two conditional means #

        def SHS.davisSegmentConditionalCompletedMean {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) (g : DavisState Q n → ℝ) (z : DavisState Q n) (u v : NNReal) :

        Conditional mean of the completed part of segment N at age v, given that the segment is still active at age u: the hazard average of the centered reset increment over [u, v], renormalized by the survivor factor at u.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def SHS.davisSegmentConditionalActiveMean {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) (g : DavisState Q n → ℝ) (z : DavisState Q n) (u v : NNReal) :

          Conditional mean of the active part of segment N at age v, given that the segment is still active at age u: the partial occupation compensator at v, weighted by the conditional survival probability from u to v.

          Equations
          Instances For
            theorem SHS.davisSegmentConditionalMean_sub {Q : Type u_1} [MeasurableSpace Q] [MeasurableSingletonClass Q] {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) (hcont : S.DavisHazardContinuousAlongFlow hflow) (g : DavisState Q n → ℝ) (hgcont : S.DavisResetOccupationContinuousAlongFlow hflow g) (z : DavisState Q n) (u v : NNReal) (huv : u ≤ v) :

            The deterministic core of the conditional step. The difference of the two conditional means is the value the segment contribution already had at age u.

            The conditional step law #

            structure SHS.DavisSegmentConditionalStepLaw {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} [mΩ : MeasurableSpace Ω] (P : MeasureTheory.Measure Ω) (filtration : MeasureTheory.Filtration NNReal mΩ) (ξ : DavisJumpNoise m Ω) (hne : ξ.NonExplosive) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) :

            The conditional step of the one-segment martingale: the conditional laws of the holding time and of the channel, expressed as integral identities on the events of the filtration.

            On an event of the filtration at time s on which segment N is active, the completed and active parts at a later time t integrate to the two conditional means, and a segment not yet started at s carries a centered contribution at t.

            Instances For
              theorem SHS.davisElapsedOccupationSegmentContribution_eq_of_completed {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (hne : ξ.NonExplosive) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) (s t : NNReal) (hst : s ≤ t) (ω : Ω) (hω : ξ.jumpTime (N + 1) ω ≤ s) :
              S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N t ω = S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N s ω

              The contribution of a segment already completed at s no longer changes.

              theorem SHS.davisElapsedOccupationSegmentContribution_eq_zero_of_fresh {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (hne : ξ.NonExplosive) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) (s : NNReal) (ω : Ω) (hω : ¬ξ.jumpTime N ω ≤ s) :
              S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N s ω = 0

              A segment not yet started at s carries no contribution at s.

              theorem SHS.davisElapsedOccupationSegmentContribution_eq_neg_of_active {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (hne : ξ.NonExplosive) (initial : DavisState Q n) (g : DavisState Q n → ℝ) (N : ℕ) (s : NNReal) (ω : Ω) (hω : ξ.jumpTime N ω ≤ s) (hω' : ¬ξ.jumpTime (N + 1) ω ≤ s) :
              S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N s ω = -S.davisSegmentResetOccupationCompensator hflow g (S.davisStateAfterJump hflow ξ initial N ω) (s - ξ.jumpTime N ω)

              On an active segment the contribution is minus the partial occupation compensator at the current age.

              From the conditional step to the one-segment martingale #

              theorem SHS.DavisSegmentConditionalStepLaw.integrable {Q : Type u_1} {n m : ℕ} {S : SHS Q n m} {hflow : S.HasGlobalFlow} {Ω : Type u_2} [mΩ : MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} {filtration : MeasureTheory.Filtration NNReal mΩ} {ξ : DavisJumpNoise m Ω} {hne : ξ.NonExplosive} {initial : DavisState Q n} {g : DavisState Q n → ℝ} {N : ℕ} (hlaw : S.DavisSegmentConditionalStepLaw hflow P filtration ξ hne initial g N) (t : NNReal) :

              The single-segment contribution is integrable at every elapsed time.

              theorem SHS.DavisSegmentConditionalStepLaw.setIntegral_sub_eq_zero {Q : Type u_1} [MeasurableSpace Q] [MeasurableSingletonClass Q] {n m : ℕ} {S : SHS Q n m} {hflow : S.HasGlobalFlow} (hcont : S.DavisHazardContinuousAlongFlow hflow) {g : DavisState Q n → ℝ} (hgcont : S.DavisResetOccupationContinuousAlongFlow hflow g) {Ω : Type u_2} [mΩ : MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} {filtration : MeasureTheory.Filtration NNReal mΩ} {ξ : DavisJumpNoise m Ω} {hne : ξ.NonExplosive} {initial : DavisState Q n} {N : ℕ} (hlaw : S.DavisSegmentConditionalStepLaw hflow P filtration ξ hne initial g N) (s t : NNReal) (hst : s ≤ t) (A : Set Ω) (hA : MeasurableSet A) :
              ∫ (ω : Ω) in A, S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N t ω - S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N s ω ∂P = 0

              The conditional step. Under the conditional step law the increment of the single-segment contribution is centered on every event of the filtration at the earlier time.

              theorem SHS.martingale_davisElapsedOccupationSegmentContribution_of_conditionalStep {Q : Type u_1} [MeasurableSpace Q] [MeasurableSingletonClass Q] {n m : ℕ} {S : SHS Q n m} {hflow : S.HasGlobalFlow} (hcont : S.DavisHazardContinuousAlongFlow hflow) {g : DavisState Q n → ℝ} (hgcont : S.DavisResetOccupationContinuousAlongFlow hflow g) {Ω : Type u_2} [mΩ : MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure P] {filtration : MeasureTheory.Filtration NNReal mΩ} {ξ : DavisJumpNoise m Ω} {hne : ξ.NonExplosive} {initial : DavisState Q n} {N : ℕ} (hlaw : S.DavisSegmentConditionalStepLaw hflow P filtration ξ hne initial g N) :
              MeasureTheory.Martingale (fun (t : NNReal) => S.davisElapsedOccupationSegmentContribution hflow ξ hne initial g N t) filtration P

              The one-segment martingale. The conditional step law makes the contribution of a single flow segment a martingale.

              theorem SHS.DavisStoppedElapsedOccupationIncrementLaw.of_conditional_step_laws {Q : Type u_1} [MeasurableSpace Q] [MeasurableSingletonClass Q] {n m : ℕ} {S : SHS Q n m} {hflow : S.HasGlobalFlow} (hcont : S.DavisHazardContinuousAlongFlow hflow) {g : DavisState Q n → ℝ} (hgcont : S.DavisResetOccupationContinuousAlongFlow hflow g) {Ω : Type u_2} [mΩ : MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure P] {filtration : MeasureTheory.Filtration NNReal mΩ} {ξ : DavisJumpNoise m Ω} {hne : ξ.NonExplosive} {initial : DavisState Q n} (hlaw : ∀ (N : ℕ), S.DavisSegmentConditionalStepLaw hflow P filtration ξ hne initial g N) :
              S.DavisStoppedElapsedOccupationIncrementLaw hflow P filtration ξ hne initial g

              Segmentwise conditional step laws give the deterministic-cap increment law, the last structural input of the elapsed occupation theory.

              Consistency: the interface is satisfiable #

              The conditional step law is an interface, so it is worth recording that it is not vacuous. For the zero test function every ingredient vanishes and the law holds for the full-information filtration; this is the degenerate witness that the hypotheses are mutually consistent.

              theorem SHS.davisExpectedResetIncrement_zero_fun {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (z : DavisState Q n) :
              S.davisExpectedResetIncrement (fun (x : DavisState Q n) => 0) z = 0

              The expected reset increment of the zero test function vanishes.

              theorem SHS.davisSegmentResetOccupationCompensator_zero_fun {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) (z : DavisState Q n) (u : NNReal) :
              S.davisSegmentResetOccupationCompensator hflow (fun (x : DavisState Q n) => 0) z u = 0

              The partial occupation compensator of the zero test function vanishes.

              theorem SHS.davisElapsedOccupationSegmentContribution_zero_fun {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (hne : ξ.NonExplosive) (initial : DavisState Q n) (N : ℕ) (t : NNReal) (ω : Ω) :
              S.davisElapsedOccupationSegmentContribution hflow ξ hne initial (fun (x : DavisState Q n) => 0) N t ω = 0

              The single-segment contribution of the zero test function vanishes.

              theorem SHS.davisSegmentCompletedPart_zero_fun {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (initial : DavisState Q n) (N : ℕ) (t : NNReal) (ω : Ω) :
              S.davisSegmentCompletedPart hflow ξ initial (fun (x : DavisState Q n) => 0) N t ω = 0

              The completed part of the zero test function vanishes.

              theorem SHS.davisSegmentActivePart_zero_fun {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} (ξ : DavisJumpNoise m Ω) (initial : DavisState Q n) (N : ℕ) (t : NNReal) (ω : Ω) :
              S.davisSegmentActivePart hflow ξ initial (fun (x : DavisState Q n) => 0) N t ω = 0

              The active part of the zero test function vanishes.

              theorem SHS.davisSegmentConditionalActiveMean_zero_fun {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) (z : DavisState Q n) (u v : NNReal) :
              S.davisSegmentConditionalActiveMean hflow (fun (x : DavisState Q n) => 0) z u v = 0

              Both conditional means of the zero test function vanish.

              theorem SHS.DavisSegmentConditionalStepLaw.of_zero_test_function {Q : Type u_1} {n m : ℕ} (S : SHS Q n m) (hflow : S.HasGlobalFlow) {Ω : Type u_2} [mΩ : MeasurableSpace Ω] (P : MeasureTheory.Measure Ω) {ξ : DavisJumpNoise m Ω} (hξ : ξ.MeasurableNoise) (hne : ξ.NonExplosive) (initial : DavisState Q n) (N : ℕ) :
              S.DavisSegmentConditionalStepLaw hflow P ξ.fullFiltration ξ hne initial (fun (x : DavisState Q n) => 0) N

              The conditional step law holds for the zero test function.