LeanMachineLearning

Learning.measurable_uncurry_pullCount๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Learning.measurable_uncurry_pullCount.{u_1, u_3} {๐“ : Type u_1} {ฮฉ : Type u_3} {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} [DecidableEq ๐“] {A : โ„• โ†’ ฮฉ โ†’ ๐“} [MeasurableEq ๐“] (hA : โˆ€ (n : โ„•), Measurable (A n)) (t : โ„•) : Measurable fun p => pullCount A (Prod.snd p) t (Prod.fst p)
Learning.measurable_uncurry_pullCount.{u_1, u_3} {๐“ : Type u_1} {ฮฉ : Type u_3} {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} [DecidableEq ๐“] {A : โ„• โ†’ ฮฉ โ†’ ๐“} [MeasurableEq ๐“] (hA : โˆ€ (n : โ„•), Measurable (A n)) (t : โ„•) : Measurable fun p => pullCount A (Prod.snd p) t (Prod.fst p)

Code

lemma measurable_uncurry_pullCount [MeasurableEq ๐“]
    (hA : โˆ€ n, Measurable (A n)) (t : โ„•) :
    Measurable (fun p : ฮฉ ร— ๐“ โ†ฆ pullCount A p.2 t p.1)
Proof
by
  simp_rw [pullCount_eq_sum]
  have h_meas s : Measurable (fun h : ฮฉ ร— ๐“ โ†ฆ if A s h.1 = h.2 then 1 else 0) := by
    refine Measurable.ite ?_ (by fun_prop) (by fun_prop)
    exact measurableSet_eq_fun (by fun_prop) (by fun_prop)
  fun_prop

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, 14 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.