Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Measurable values and derivatives along a closed-interval selector

Proved
BianchiIX.measurable_curve_selector

by trppppp · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

bianchi-ix-era-statisticsdynamical-systems

Define

χ(t)=max⁡(1−t,0),P(t)=∫0tχ(u) du,Rs,d,e(x)=s+edsP(ex/s).\chi(t)=\max(1-t,0),\qquad P(t)=\int_0^t\chi(u)\,du,\qquad \mathcal R_{s,d,e}(x)=s+edsP(ex/s).χ(t)=max(1−t,0),P(t)=∫0t​χ(u)du,Rs,d,e​(x)=s+edsP(ex/s).

The integral is oriented, and division uses the total reciprocal 0−1=00^{-1}=00−1=0.

For real functions f,dff,d_ff,df​ and real endpoints l,rl,rl,r, define FFF and VVV by

F(x)={Rf(l),df(l),−1(x−l),x<l,Rf(r),df(r),1(x−r),x≥l, r<x,f(x),otherwise,F(x)=\begin{cases} \mathcal R_{f(l),d_f(l),-1}(x-l),&x<l,\\ \mathcal R_{f(r),d_f(r),1}(x-r),&x\geq l,\ r<x,\\ f(x),&\text{otherwise}, \end{cases}F(x)=⎩⎨⎧​Rf(l),df​(l),−1​(x−l),Rf(r),df​(r),1​(x−r),f(x),​x<l,x≥l, r<x,otherwise,​ V(x)={df(l)χ(−(x−l)/f(l)),x<l,df(r)χ((x−r)/f(r)),x≥l, r<x,df(x),otherwise.V(x)=\begin{cases} d_f(l)\chi(-(x-l)/f(l)),&x<l,\\ d_f(r)\chi((x-r)/f(r)),&x\geq l,\ r<x,\\ d_f(x),&\text{otherwise}. \end{cases}V(x)=⎩⎨⎧​df​(l)χ(−(x−l)/f(l)),df​(r)χ((x−r)/f(r)),df​(x),​x<l,x≥l, r<x,otherwise.​

Write Ff,VfF_f,V_fFf​,Vf​ when comparing several pairs of input functions.

Let XXX be a measurable space. Let l,r:X→Rl,r:X\to\mathbb Rl,r:X→R be measurable, with l(q)<r(q)l(q)<r(q)l(q)<r(q) for every qqq. For functions fq,dq:R→Rf_q,d_q:\mathbb R\to\mathbb Rfq​,dq​:R→R, assume that fqf_qfq​ has derivative dq(x)d_q(x)dq​(x) within [l(q),r(q)][l(q),r(q)][l(q),r(q)] at every point of that interval, and that

(q,x)⟼{fq(x),l(q)<x<r(q),0,otherwise(q,x)\longmapsto \begin{cases}f_q(x),&l(q)<x<r(q),\\0,&\text{otherwise}\end{cases}(q,x)⟼{fq​(x),0,​l(q)<x<r(q),otherwise​

is measurable on X×RX\times\mathbb RX×R. Let Fq,VqF_q,V_qFq​,Vq​ be their root-curve extensions with these endpoints. If x:X→Rx:X\to\mathbb Rx:X→R is measurable and x(q)∈[l(q),r(q)]x(q)\in[l(q),r(q)]x(q)∈[l(q),r(q)] for every qqq, then both q↦fq(x(q))q\mapsto f_q(x(q))q↦fq​(x(q)) and q↦dq(x(q))q\mapsto d_q(x(q))q↦dq​(x(q)) are measurable.

Preamble
import Definitions.Def_BianchiIX_Analysis_CurveMeasurability
import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus
import Mathlib.Analysis.Calculus.ContDiff.Deriv
import Mathlib.Analysis.Calculus.Deriv.Pow
import Mathlib.Analysis.Calculus.Deriv.Mul
import Mathlib.Analysis.Real.Sqrt
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Ring
import Mathlib.Analysis.Calculus.Deriv.Slope
import Mathlib.Analysis.SpecificLimits.Basic
import Mathlib.MeasureTheory.Constructions.BorelSpace.Metrizable

noncomputable section
open BianchiIX
open Set Filter MeasureTheory
open scoped Topology

Formal statement
theorem BianchiIX.measurable_curve_selector {X : Type*} [MeasurableSpace X]
    {l r x : X → ℝ} {f df : X → ℝ → ℝ}
    (hl : Measurable l) (hr : Measurable r) (hx : Measurable x)
    (hlr : ∀ q, l q < r q) (hxi : ∀ q, x q ∈ Icc (l q) (r q))
    (hm : Measurable (fun p : X × ℝ =>
      if l p.1 < p.2 ∧ p.2 < r p.1 then f p.1 p.2 else 0))
    (hf : ∀ q y, y ∈ Icc (l q) (r q) →
      HasDerivWithinAt (f q) (df q y) (Icc (l q) (r q)) y) :
    Measurable (fun q => f q (x q)) ∧ Measurable (fun q => df q (x q)) := by sorry
Source
https://github.com/l46430640-del/ERA-STATISTICS-FORMAL/blob/d74c241819f896ab8d050b21ace80c8e90eabd9e/BianchiIX/Analysis/CurveMeasurability.lean#L81-L121

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me