Theorems / mh_prob_4b5727
Mathlib held-out
Probability · hard
theorem lg_target {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (hXmeas : AEMeasurable X μ) (hX : ∀ᵐ (ω : Ω) ∂μ, X ω = 0 ∨ X ω = 1) : ∫ (ω : Ω), 1 - X ω ∂μ = μ.real {ω | X ω = 0} := by- Mathlib declaration
- MeasureTheory.integral_one_sub_of_ae_eq_zero_or_one
- Held-out module
- Mathlib.Probability.Distributions.TwoValued
- Banned modules (itself + downstream)
- 1
- Reference proof premises (reachable / held-out)
- 10 / 1
Traces
Each configuration's full record: what was retrieved, what the model wrote, what Lean said back.
No configuration has attempted this theorem yet.
Reference proof
Mathlib's own source for this declaration, shown for comparison. It may use lemmas the prover is not allowed to use.
/-- If a random variable is ae equal to `0` or `1`, then one minus its expectation is equal to the
probability that it equals `0`. -/
lemma integral_one_sub_of_ae_eq_zero_or_one (hXmeas : AEMeasurable X μ)
(hX : ∀ᵐ ω ∂μ, X ω = 0 ∨ X ω = 1) : ∫ ω, 1 - X ω ∂μ = μ.real {ω | X ω = 0} := by
calc
_ = μ.real {ω | 1 - X ω = 1} :=
integral_of_ae_eq_zero_or_one (aemeasurable_const (b := 1).sub hXmeas)
(by simpa [sub_eq_zero, or_comm, eq_comm (a := (1 : ℝ))] using hX)
_ = μ.real {ω | X ω = 0} := by simp