LeanMachineLearning

Learning.measurable_uncurry_pullCount_comp๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Learning.measurable_uncurry_pullCount_comp.{u_1, u_3} {๐“ : Type u_1} {ฮฉ : Type u_3} {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} [DecidableEq ๐“] {A : โ„• โ†’ ฮฉ โ†’ ๐“} [Countable ๐“] [MeasurableSingletonClass ๐“] (hA : โˆ€ (n : โ„•), Measurable (A n)) {f : ฮฉ โ†’ ๐“} (hf : Measurable f) {g : ฮฉ โ†’ โ„•} (hg : Measurable g) : Measurable fun ฯ‰ => pullCount A (f ฯ‰) (g ฯ‰) ฯ‰
Learning.measurable_uncurry_pullCount_comp.{u_1, u_3} {๐“ : Type u_1} {ฮฉ : Type u_3} {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} [DecidableEq ๐“] {A : โ„• โ†’ ฮฉ โ†’ ๐“} [Countable ๐“] [MeasurableSingletonClass ๐“] (hA : โˆ€ (n : โ„•), Measurable (A n)) {f : ฮฉ โ†’ ๐“} (hf : Measurable f) {g : ฮฉ โ†’ โ„•} (hg : Measurable g) : Measurable fun ฯ‰ => pullCount A (f ฯ‰) (g ฯ‰) ฯ‰

Code

lemma measurable_uncurry_pullCount_comp [Countable ๐“] [MeasurableSingletonClass ๐“]
    (hA : โˆ€ n, Measurable (A n)) {f : ฮฉ โ†’ ๐“} (hf : Measurable f) {g : ฮฉ โ†’ โ„•} (hg : Measurable g) :
    Measurable (fun ฯ‰ โ†ฆ pullCount A (f ฯ‰) (g ฯ‰) ฯ‰)
Proof
by
  change Measurable ((fun aฯ‰ โ†ฆ pullCount A aฯ‰.1 (g aฯ‰.2) aฯ‰.2) โˆ˜ fun ฯ‰ โ†ฆ (f ฯ‰, ฯ‰))
  apply Measurable.comp _ (by fun_prop)
  refine measurable_from_prod_countable_right fun a โ†ฆ ?_
  change Measurable ((fun tฯ‰ โ†ฆ pullCount A a tฯ‰.1 tฯ‰.2) โˆ˜ fun ฯ‰ โ†ฆ (g ฯ‰, ฯ‰))
  apply Measurable.comp _ (by fun_prop)
  exact measurable_from_prod_countable_right (fun t โ†ฆ measurable_pullCount hA a t)

Actions: Source ยท Open Issue

Meaning unchanged since v4.33.0-rc1-29-gce231eb, the oldest revision on record (2026-07-30).

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: 1 project declarations, 11 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.