LeanMachineLearning

Learning.Algorithm.congr_congr๐Ÿ”—

Lemma

No docstring.

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 ๐“
  • ๐“' : Type u_5m๐“' : MeasurableSpace ๐“'
  • ๐“'' : Type u_6m๐“'' : MeasurableSpace ๐“''
  • ๐“จ : Type u_7m๐“จ : MeasurableSpace ๐“จ
  • ๐“จ' : Type u_8m๐“จ' : MeasurableSpace ๐“จ'
  • ๐“จ'' : Type u_9m๐“จ'' : MeasurableSpace ๐“จ''
Given
  • alg : Algorithm ๐“ž ๐“ ๐“จA stochastic, sequential algorithm.
  • e๐“ž : ๐“ž โ‰ƒแต ๐“ž'Equivalences between measurable spaces.
  • e๐“ : ๐“ โ‰ƒแต ๐“'
  • e๐“จ : ๐“จ โ‰ƒแต ๐“จ'
  • f๐“ž : ๐“ž' โ‰ƒแต ๐“ž''
  • f๐“ : ๐“' โ‰ƒแต ๐“''
  • f๐“จ : ๐“จ' โ‰ƒแต ๐“จ''
Then
(alg.congr e๐“ž e๐“ e๐“จ).congr f๐“ž f๐“ f๐“จ = alg.congr (e๐“ž.trans f๐“ž) (e๐“.trans f๐“) (e๐“จ.trans f๐“จ)
Code
lemma Algorithm.congr_congr (alg : Algorithm ๐“ž ๐“ ๐“จ) (e๐“ž : ๐“ž โ‰ƒแต ๐“ž') (e๐“ : ๐“ โ‰ƒแต ๐“')
    (e๐“จ : ๐“จ โ‰ƒแต ๐“จ') (f๐“ž : ๐“ž' โ‰ƒแต ๐“ž'') (f๐“ : ๐“' โ‰ƒแต ๐“'') (f๐“จ : ๐“จ' โ‰ƒแต ๐“จ'') :
    (alg.congr e๐“ž e๐“ e๐“จ).congr f๐“ž f๐“ f๐“จ
      = alg.congr (e๐“ž.trans f๐“ž) (e๐“.trans f๐“) (e๐“จ.trans f๐“จ)
Proof
by
  ext n : 2
  ext p : 1
  rw [policy_congr, Kernel.comap_apply, Kernel.map_apply _ f๐“.measurable, policy_congr,
    Kernel.comap_apply, Kernel.map_apply _ e๐“.measurable,
    Measure.map_map f๐“.measurable e๐“.measurable, policy_congr, Kernel.comap_apply,
    Kernel.map_apply _ (e๐“.trans f๐“).measurable]
  rfl

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: 9 project declarations, 20 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.