AFTD Auto-Formalizing Theoretical Domains

BayesianSingleItemAuction.integral_typeMeasure_eq_intervalIntegral_smul

theoremverifiedformalizationimported Lean

Integral against typeMeasure as an interval integral.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open BayesianSingleItemAuction in
open MeasureTheory in
variable {I : Type*} in
theorem BayesianSingleItemAuction.integral_typeMeasure_eq_intervalIntegral_smul
    (A : BayesianSingleItemAuction I) (i : I) {E : Type*}
    [NormedAddCommGroup E] [NormedSpace ℝ E] (g : ℝ → E)
    (hmeas :
      AEMeasurable
        (fun v => ENNReal.ofReal (A.typeDensity i v))
        (volume.restrict (Set.Ioc 0 (A.typeData.omega i))))
    (hnonneg :
      ∀ᵐ v ∂(volume.restrict (Set.Ioc 0 (A.typeData.omega i))),
        0 ≤ A.typeDensity i v) :
    (∫ v, g v ∂A.typeMeasure i) =
      ∫ v in 0..A.typeData.omega i, A.typeDensity i v • g v
Formalizes
EconCSLib, `BayesianSingleItemAuction.integral_typeMeasure_eq_intervalIntegral_smul`
Lean proof
By xbei (from the file's git history), from github.com/gametheoryinlean/EconCSLib at 1a88f809b538 (Copyright (c) 2026 EconCSLib contributors. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.30.0.
Verified
08 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 11
Used by 1

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen BayesianSingleItemAuction inopen MeasureTheory invariable {I : Type*} in/-- Integral against `typeMeasure` as an interval integral. -/theorem BayesianSingleItemAuction.integral_typeMeasure_eq_intervalIntegral_smul    (A : BayesianSingleItemAuction I) (i : I) {E : Type*}    [NormedAddCommGroup E] [NormedSpace ℝ E] (g : ℝ → E)    (hmeas :      AEMeasurable        (fun v => ENNReal.ofReal (A.typeDensity i v))        (volume.restrict (Set.Ioc 0 (A.typeData.omega i))))    (hnonneg :      ∀ᵐ v ∂(volume.restrict (Set.Ioc 0 (A.typeData.omega i))),        0 ≤ A.typeDensity i v) :    (∫ v, g v ∂A.typeMeasure i) =      ∫ v in 0..A.typeData.omega i, A.typeDensity i v • g v := by  let s := Set.Ioc (0 : ℝ) (A.typeData.omega i)  have htop :      ∀ᵐ v ∂(volume.restrict s),        ENNReal.ofReal (A.typeDensity i v) < (⊤ : ENNReal) :=    Filter.Eventually.of_forall fun _ => ENNReal.ofReal_lt_top  calc    (∫ v, g v ∂A.typeMeasure i)        = ∫ v, (ENNReal.ofReal (A.typeDensity i v)).toReal • g v            ∂volume.restrict s := by          simpa [typeMeasure, s] using            (integral_withDensity_eq_integral_toReal_smul₀              (μ := volume.restrict s) hmeas htop g)    _ = ∫ v in s, A.typeDensity i v • g v ∂volume := by          refine integral_congr_ae ?_          filter_upwards [hnonneg] with v hv          rw [ENNReal.toReal_ofReal hv]    _ = ∫ v in 0..A.typeData.omega i, A.typeDensity i v • g v := by          exact (intervalIntegral.integral_of_le (A.typeData.cdf i).omega_nonneg).symm
See it in the graphDiscuss this resultChallenge it