LeanMachineLearning

Learning.IsObliviousEnv.hasLaw_feedback_cond๐Ÿ”—

Lemma

From the authors

Conditionally on an event determined by the history before time n and the action at time n, on which that action is equal to b, the feedback at time n has law feedbackCondAction env n b.

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
Assuming
Then
ProbabilityTheory.HasLaw (Y n) ((feedbackCondAction env n) b) P[|(fun ฯ‰ => ((history O A Y n ฯ‰, O n ฯ‰), A n ฯ‰)) โปยน' s]
The predicate HasLaw X ฮผ P registers the fact that the random variable X has law ฮผ under the measure P, in other words that P.map X = ฮผ.
Code
lemma hasLaw_feedback_cond [IsObliviousEnv env] (h : IsAlgEnvSeq O A Y alg env P) (n : โ„•)
    {s : Set ((Hist ๐“ž ๐“ ๐“จ n ร— ๐“ž) ร— ๐“)} (hs : MeasurableSet s) {b : ๐“} (hsb : โˆ€ u โˆˆ s, u.2 = b)
    (hP : P ((fun ฯ‰ โ†ฆ ((history O A Y n ฯ‰, O n ฯ‰), A n ฯ‰)) โปยน' s) โ‰  0) :
    HasLaw (Y n) (feedbackCondAction env n b)
      P[|(fun ฯ‰ โ†ฆ ((history O A Y n ฯ‰, O n ฯ‰), A n ฯ‰)) โปยน' s]
Proof
by
  refine (hasCondDistrib_feedback_history_action h n).hasLaw_cond (h.measurable_feedback _) hs
    (fun u hu โ†ฆ ?_) hP
  rw [Kernel.prodMkLeft_apply, hsb u hu]

Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10), the 3th recorded change.

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: 8 project declarations, 44 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.