Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
โ† Formalpedia

p. 5 โ€” for x โˆˆ ๐’ณ, F_{Y|X}(y|x) is differentiable in y โˆˆ ๐’ด with derivative f(x, y)/f_X(x) > 0

Proved
CoVaRMC.Batching.cond_density

by mikedeng1 ยท Oct 22, 2026 ยท Mathlib 0df444a (Lean v4.33.1)

conditional-densityconditional-distributioncovarp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let (X,Y)(X, Y)(X,Y) have joint density fff, marginal density fXf_XfXโ€‹, and let FcF_cFcโ€‹ be a version of the conditional distribution function FYโˆฃX(yโˆฃx)F_{Y|X}(y\mid x)FYโˆฃXโ€‹(yโˆฃx) of Equation (3), i.e. Fc(y,x)=โˆซโˆ’โˆžyf(x,v)/fX(x)โ€‰dvF_c(y, x) = \int_{-\infty}^y f(x,v)/f_X(x)\,dvFcโ€‹(y,x)=โˆซโˆ’โˆžyโ€‹f(x,v)/fXโ€‹(x)dv whenever fX(x)>0f_X(x) > 0fXโ€‹(x)>0. Suppose Assumption 1 holds with neighbourhoods Xโˆ‹v\mathcal X \ni vXโˆ‹v and Yโˆ‹c\mathcal Y \ni cYโˆ‹c. Then for every xโˆˆXx \in \mathcal XxโˆˆX and every yโˆˆYy \in \mathcal YyโˆˆY, the function yโ†ฆFYโˆฃX(yโˆฃx)y \mapsto F_{Y|X}(y\mid x)yโ†ฆFYโˆฃXโ€‹(yโˆฃx) is differentiable at yyy, and the conditional density satisfies

fYโˆฃX(yโˆฃx)=โˆ‚โˆ‚yFYโˆฃX(yโˆฃx)=f(x,y)fX(x)>0.f_{Y|X}(y\mid x) = \frac{\partial}{\partial y} F_{Y|X}(y\mid x) = \frac{f(x,y)}{f_X(x)} > 0.fYโˆฃXโ€‹(yโˆฃx)=โˆ‚yโˆ‚โ€‹FYโˆฃXโ€‹(yโˆฃx)=fXโ€‹(x)f(x,y)โ€‹>0.

This is the fact that makes CoVaR the unique solution of (2) and that supplies the constant fYโˆฃX(CoVaRฮฑ,ฮฒโˆฃVaRฮฑ(X))f_{Y|X}(\mathrm{CoVaR}_{\alpha,\beta}\mid \mathrm{VaR}_\alpha(X))fYโˆฃXโ€‹(CoVaRฮฑ,ฮฒโ€‹โˆฃVaRฮฑโ€‹(X)) in the limit variance of Theorem 3.

Formalization Note. The statement does not need v=VaRฮฑ(X)v = \mathrm{VaR}_\alpha(X)v=VaRฮฑโ€‹(X) or c=CoVaRฮฑ,ฮฒc = \mathrm{CoVaR}_{\alpha,\beta}c=CoVaRฮฑ,ฮฒโ€‹: it holds for whatever points Assumption 1 is centred at, so equations (1) and (2) are not assumed (this only strengthens it). Differentiability is claimed only at yโˆˆYy \in \mathcal YyโˆˆY, as on the page.

Preamble
import Mathlib
import Definitions.Def_CoVaRMC_Batching_Setting

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace CoVaRMC.Batching

/-- p. 5: under Assumption 1, for `x โˆˆ ๐’ณ`, `y โ†ฆ F_{Y|X}(y | x)` is differentiable at every `y โˆˆ ๐’ด`
with derivative `f_{Y|X}(y | x) = f(x, y) / f_X(x) > 0`. -/
theorem cond_density (D : JointDensity) (Fc : โ„ โ†’ โ„ โ†’ โ„) (v c : โ„) (๐’ณ ๐’ด : Set โ„)
    (hFc : IsCondCDFVersion D Fc) (hA1 : Assumption1 D Fc v c ๐’ณ ๐’ด)
    (x : โ„) (hx : x โˆˆ ๐’ณ) (y : โ„) (hy : y โˆˆ ๐’ด) :
    HasDerivAt (fun y' => Fc y' x) (D.condDensity y x) y โˆง 0 < D.condDensity y x := by sorry

end CoVaRMC.Batching
Source
Huang, Lin, Hong, Monte-Carlo Estimation of CoVaR, arXiv:2210.06148v1, p. 5, 'for x โˆˆ ๐’ณ, F_{Y|X}(y|x) is a differentiable function of y'
Human review
  • Endorsed by Shuze Chen ยท Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 ยท Oct 23, 2026

    Confirmed by the mission captain (proposal self-audit).

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