LeanMachineLearning

Learning.IsAlgEnvSeq.filtrationObs๐Ÿ”—

Definition

From the authors

Filtration generated by the history before time n together with the observation at time n.

Types
  • ๐“ž : Type u_1m๐“ž : MeasurableSpace ๐“žA measurable space is a space equipped with a ฯƒ-algebra.
  • ๐“ : Type u_2m๐“ : MeasurableSpace ๐“
  • ๐“จ : Type u_3m๐“จ : MeasurableSpace ๐“จ
  • ฮฉ : Type u_4mฮฉ : MeasurableSpace ฮฉ
Given
  • O : โ„• โ†’ ฮฉ โ†’ ๐“ž
  • A : โ„• โ†’ ฮฉ โ†’ ๐“
  • Y : โ„• โ†’ ฮฉ โ†’ ๐“จ
  • alg : Algorithm ๐“ž ๐“ ๐“จA stochastic, sequential algorithm.
  • env : Environment ๐“ž ๐“ ๐“จA stochastic environment.
  • P : MeasureTheory.Measure ฮฉA measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure.MeasureTheory.IsFiniteMeasure PA measure ฮผ is called finite if ฮผ univ < โˆž.
Result
MeasureTheory.Filtration โ„• mฮฉ
A Filtration on a measurable space ฮฉ with ฯƒ-algebra m is a monotone sequence of sub-ฯƒ-algebras of m.
Body
{ seq := fun n => MeasurableSpace.comap (fun ฯ‰ => (history O A Y n ฯ‰, O n ฯ‰)) inferInstance, mono' := โ‹ฏ, le' := โ‹ฏ }
Code
def filtrationObs (h : IsAlgEnvSeq O A Y alg env P) :
    Filtration โ„• mฮฉ where
  seq n := MeasurableSpace.comap (fun ฯ‰ โ†ฆ (history O A Y n ฯ‰, O n ฯ‰)) inferInstance
  mono' n m hnm := by
    simp only
    rw [โ† measurable_iff_comap_le]
    rcases eq_or_lt_of_le hnm with rfl | hlt
    ยท exact measurable_iff_comap_le.mpr le_rfl
    have : (fun ฯ‰ โ†ฆ (history O A Y n ฯ‰, O n ฯ‰)) =
        (fun p : Hist ๐“ž ๐“ ๐“จ m ร— ๐“ž โ†ฆ
          (fun i : Fin n โ†ฆ p.1 (Fin.castLE hnm i), (p.1 โŸจn, hltโŸฉ).obs)) โˆ˜
        (fun ฯ‰ โ†ฆ (history O A Y m ฯ‰, O m ฯ‰)) := rfl
    rw [this]
    exact measurable_comp_comap _ (by fun_prop)
  le' n := by
    rw [โ† measurable_iff_comap_le]
    exact (Learning.measurable_history h.measurable_obs h.measurable_action
      h.measurable_feedback n).prodMk (h.measurable_obs n)

Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10).

Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file ยท open it in the Lean web editor.

Dependency graph

Audit surface: 6 project declarations, 28 external constants

โœ“ Proved: no sorry anywhere in its closure

This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.