MindFormal v1.0.0One Mind

MindFormal.Tools.A775KilledProbe.Products

Chronological products of transition kernels, on laws and on bounded reads.

pushUpTo K b ν is ν K₀ ⋯ K_{b-1}: the first b factors applied in chronological order to an entering law. actUpTo K m H is K₀ ⋯ K_{m-1} H: the same factors applied to a bounded read, the earliest outermost. The two agree, ∫ K₀ ⋯ K_{m-1} H dν = ∫ H d(ν K₀ ⋯ K_{m-1}) (integral_actUpTo). Replacing the factors one at a time telescopes the change of a read into one term per factor, ν K'₀ ⋯ K'_{b-1} (K'_b - K_b) K_{b+1} ⋯ K_{m-1} H (telescope). A kernel to a record and a state splits along an event of the record into its killed part (paths outside the event) and its hit part (kill, hitPart). An edge law gives every bounded read of the retained and the later variable on every event of the information (edgeLaw_setIntegral).

ν K₀ ⋯ K_{b-1}: the first b factors applied chronologically to an entering law.

Equations
Instances For
    def MindFormal.A775KilledProbe.actUpTo {S : Type u_1} [MeasurableSpace S] (K : ℕ → ProbabilityTheory.Kernel S S) :
    ℕ → (S → ℝ) → S → ℝ

    K₀ ⋯ K_{m-1} H: the first m factors applied to a read, the earliest outermost.

    Equations
    Instances For
      theorem MindFormal.A775KilledProbe.pushUpTo_succ {S : Type u_1} [MeasurableSpace S] (K : ℕ → ProbabilityTheory.Kernel S S) (b : ℕ) (ν : MeasureTheory.Measure S) :
      pushUpTo K (b + 1) ν = (pushUpTo K b ν).bind ⇑(K b)
      @[simp]
      theorem MindFormal.A775KilledProbe.actUpTo_zero {S : Type u_1} [MeasurableSpace S] (K : ℕ → ProbabilityTheory.Kernel S S) (H : S → ℝ) :
      actUpTo K 0 H = H
      theorem MindFormal.A775KilledProbe.actUpTo_head {S : Type u_1} [MeasurableSpace S] (K : ℕ → ProbabilityTheory.Kernel S S) (m : ℕ) (H : S → ℝ) :
      actUpTo K (m + 1) H = A764RetentionMonotone.act (K 0) (actUpTo (fun (k : ℕ) => K (k + 1)) m H)

      The earliest factor is the outermost: K₀ ⋯ K_m H = K₀ (K₁ ⋯ K_m H).

      A product applied to a bounded read and integrated against an entering law is the read integrated against the law carried by the same product.

      theorem MindFormal.A775KilledProbe.telescope {S : Type u_1} [MeasurableSpace S] (K K' : ℕ → ProbabilityTheory.Kernel S S) [∀ (b : ℕ), ProbabilityTheory.IsMarkovKernel (K b)] [∀ (b : ℕ), ProbabilityTheory.IsMarkovKernel (K' b)] (ν : MeasureTheory.Measure S) [MeasureTheory.IsProbabilityMeasure ν] {H : S → ℝ} (hH : A764RetentionMonotone.BoundedRead H) (m : ℕ) :
      ∫ (x : S), actUpTo K' m H x ∂ν - ∫ (x : S), actUpTo K m H x ∂ν = ∑ b ∈ Finset.range m, ∫ (x : S), A764RetentionMonotone.act (K' b) (actUpTo (fun (k : ℕ) => K (b + 1 + k)) (m - (b + 1)) H) x - A764RetentionMonotone.act (K b) (actUpTo (fun (k : ℕ) => K (b + 1 + k)) (m - (b + 1)) H) x ∂pushUpTo K' b ν

      Telescoping. Replacing the factors K by K' changes the integrated read by one term per factor: the entering law carried by the first b replaced factors, against the change of factor b, applied to the unreplaced later factors and the read.

      noncomputable def MindFormal.A775KilledProbe.kill {S : Type u_1} [MeasurableSpace S] {T : Type u_2} [MeasurableSpace T] (κ : ProbabilityTheory.Kernel S (T × S)) {E : Set T} (hE : MeasurableSet E) :

      The killed part of a kernel to a record and a state: the state law on the records outside the event.

      Equations
      Instances For
        noncomputable def MindFormal.A775KilledProbe.hitPart {S : Type u_1} [MeasurableSpace S] {T : Type u_2} [MeasurableSpace T] (κ : ProbabilityTheory.Kernel S (T × S)) {E : Set T} (hE : MeasurableSet E) :

        The hit part of a kernel to a record and a state: the state law on the records in the event.

        Equations
        Instances For
          theorem MindFormal.A775KilledProbe.kill_apply {S : Type u_1} [MeasurableSpace S] {T : Type u_2} [MeasurableSpace T] (κ : ProbabilityTheory.Kernel S (T × S)) {E : Set T} (hE : MeasurableSet E) (x : S) {A : Set S} (hA : MeasurableSet A) :
          ((kill κ hE) x) A = (κ x) (Eᶜ ×ˢ A)
          theorem MindFormal.A775KilledProbe.hitPart_apply {S : Type u_1} [MeasurableSpace S] {T : Type u_2} [MeasurableSpace T] (κ : ProbabilityTheory.Kernel S (T × S)) {E : Set T} (hE : MeasurableSet E) (x : S) {A : Set S} (hA : MeasurableSet A) :
          ((hitPart κ hE) x) A = (κ x) (E ×ˢ A)
          theorem MindFormal.A775KilledProbe.one_sub_kill {S : Type u_1} [MeasurableSpace S] {T : Type u_2} [MeasurableSpace T] (κ : ProbabilityTheory.Kernel S (T × S)) [ProbabilityTheory.IsMarkovKernel κ] {E : Set T} (hE : MeasurableSet E) (x : S) :
          1 - ((kill κ hE) x).real Set.univ = (κ x).real (E ×ˢ Set.univ)

          The bracket 1 - Q 1 of a killed part is the event's chance under the kernel.

          theorem MindFormal.A775KilledProbe.kill_add_hitPart {S : Type u_1} [MeasurableSpace S] {T : Type u_2} [MeasurableSpace T] (κ : ProbabilityTheory.Kernel S (T × S)) {E : Set T} (hE : MeasurableSet E) (x : S) {A : Set S} (hA : MeasurableSet A) :
          ((kill κ hE) x) A + ((hitPart κ hE) x) A = ((A759CompleteRestart.stateKernel κ) x) A

          The killed part and the hit part make up the state marginal.

          theorem MindFormal.A775KilledProbe.integral_hitPart {S : Type u_1} [MeasurableSpace S] {T : Type u_2} [MeasurableSpace T] (κ : ProbabilityTheory.Kernel S (T × S)) [ProbabilityTheory.IsMarkovKernel κ] {E : Set T} (hE : MeasurableSet E) (x : S) {f : S → ℝ} (hf : Measurable f) :
          ∫ (y : S), f y ∂(hitPart κ hE) x = ∫ (p : T × S), E.indicator 1 p.1 * f p.2 ∂κ x

          A read integrated against the hit part is the read of the state on the event's records, integrated against the whole kernel.

          A bounded read stays bounded under a kernel of mass at most one.

          theorem MindFormal.A775KilledProbe.edgeLaw_setIntegral {S : Type u_1} [MeasurableSpace S] {T : Type u_2} [MeasurableSpace T] {Ω : Type u_3} {G : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] {X : Ω → S} {Y : Ω → T} {κ : ProbabilityTheory.Kernel S T} [ProbabilityTheory.IsMarkovKernel κ] (h : A759CompleteRestart.EdgeLaw G μ X Y κ) (hX : Measurable X) (hY : Measurable Y) {F : Set Ω} (hF : MeasurableSet F) {g : S × T → ℝ} (hg : Measurable g) {C : ℝ} (hC : ∀ (p : S × T), |g p| ≤ C) :
          ∫ (ω : Ω) in F, g (X ω, Y ω) ∂μ = ∫ (ω : Ω) in F, ∫ (y : T), g (X ω, y) ∂κ (X ω) ∂μ

          An edge law gives every bounded read of the retained and the later variable on every event of the information: the read integrated over the event is the kernel's average of the read at the retained variable, integrated over the same event.