Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Preamble of Proposition 2: Tv⃗T\vec vTv normal to ∂Ω∗\partial\Omega^*∂Ω∗ iff v⃗∥Σn⃗\vec v\parallel\Sigma\vec nv∥Σn

Proved
MakeToStockRM.ExpDensity.whitening_normal_iff_conormal

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

diffusionlinear-algebrap2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let σ>0\sigma>0σ>0, δ>0\delta>0δ>0, −1<ϱ<1-1<\varrho<1−1<ϱ<1 and let Σ=(σ2σδϱσδϱδ2)\Sigma=\begin{pmatrix}\sigma^2&\sigma\delta\varrho\\ \sigma\delta\varrho&\delta^2\end{pmatrix}Σ=(σ2σδϱ​σδϱδ2​) be the covariance matrix of (X,Y)(\mathcal X,\mathcal Y)(X,Y). As in the paper, let VVV be a rotation matrix (VV′=IVV'=IVV′=I, det⁡V=1\det V=1detV=1) whose rows are orthonormal eigenvectors of Σ\SigmaΣ, and E=diag⁡(e1,e2)E=\operatorname{diag}(e_1,e_2)E=diag(e1​,e2​) with e1,e2>0e_1,e_2>0e1​,e2​>0 the corresponding eigenvalues, so that Σ=V′EV\Sigma=V'EVΣ=V′EV. Let T=E−1/2VT=E^{-1/2}VT=E−1/2V be the whitening map. Then:

  1. For all v,w∈R2v,w\in\mathbb R^2v,w∈R2,   (Tv)⋅(Tw)=v⋅(Σ−1w)\;(Tv)\cdot(Tw)=v\cdot(\Sigma^{-1}w)(Tv)⋅(Tw)=v⋅(Σ−1w).
  2. For every nonzero n∈R2n\in\mathbb R^2n∈R2 and every v∈R2v\in\mathbb R^2v∈R2,
(∀w∈R2, n⋅w=0 ⇒ (Tv)⋅(Tw)=0)  ⟺  ∃c∈R, v=c Σn.\bigl(\forall w\in\mathbb R^2,\ n\cdot w=0\ \Rightarrow\ (Tv)\cdot(Tw)=0\bigr)\iff \exists c\in\mathbb R,\ v=c\,\Sigma n .(∀w∈R2, n⋅w=0 ⇒ (Tv)⋅(Tw)=0)⟺∃c∈R, v=cΣn.

Since TTT maps the tangent directions of ∂Ω\partial\Omega∂Ω (those orthogonal to its normal nnn) onto the tangent directions of ∂Ω∗=∂(TΩ)\partial\Omega^*=\partial(T\Omega)∂Ω∗=∂(TΩ), part 2 says that the hypothesis of Proposition 2, "Tv⃗T\vec vTv is normal to ∂Ω∗\partial\Omega^*∂Ω∗", holds at a boundary point exactly when the reflection direction v⃗\vec vv is parallel to the conormal Σn⃗\Sigma\vec nΣn. This is how the mission pins down the reflection field in the goal theorem.

Formalization Note The eigenvalue condition ei>0e_i>0ei​>0 is automatic for a positive definite Σ\SigmaΣ and is stated as a hypothesis alongside the decomposition Σ=V′EV\Sigma=V'EVΣ=V′EV; E−1/2E^{-1/2}E−1/2 is diag⁡(1/ei)\operatorname{diag}(1/\sqrt{e_i})diag(1/ei​​). Vectors are Fin 2 → ℝ, inventory first.

Preamble
import Mathlib
import Definitions.Def_MakeToStockRM_ExpDensity_covMatrix
Formal statement
namespace MakeToStockRM.ExpDensity

open Matrix

theorem whitening_normal_iff_conormal (σ δ ϱ : ℝ) (hσ : 0 < σ) (hδ : 0 < δ) (hϱ : |ϱ| < 1)
    (V : Matrix (Fin 2) (Fin 2) ℝ) (e : Fin 2 → ℝ)
    (hV : V * V.transpose = 1) (hVdet : V.det = 1) (he : ∀ i, 0 < e i)
    (hSigma : covMatrix σ δ ϱ = V.transpose * Matrix.diagonal e * V) :
    (∀ v w : Fin 2 → ℝ,
      ((Matrix.diagonal (fun i => (Real.sqrt (e i))⁻¹) * V) *ᵥ v)
          ⬝ᵥ ((Matrix.diagonal (fun i => (Real.sqrt (e i))⁻¹) * V) *ᵥ w)
        = v ⬝ᵥ ((covMatrix σ δ ϱ)⁻¹ *ᵥ w)) ∧
    (∀ n v : Fin 2 → ℝ, n ≠ 0 →
      ((∀ w : Fin 2 → ℝ, n ⬝ᵥ w = 0 →
          ((Matrix.diagonal (fun i => (Real.sqrt (e i))⁻¹) * V) *ᵥ v)
            ⬝ᵥ ((Matrix.diagonal (fun i => (Real.sqrt (e i))⁻¹) * V) *ᵥ w) = 0)
        ↔ ∃ c : ℝ, v = c • (covMatrix σ δ ϱ *ᵥ n))) := by sorry

end MakeToStockRM.ExpDensity
Source
Caldentey, Wein, Revenue Management of a Make-to-Stock Queue, Oper. Res. 54(5), 2006, p. 867, preamble of Proposition 2 (definition of V, E, T = E^{-1/2}V, Ω* = T(Ω)) and its hypothesis "T v⃗ is normal to ∂Ω*"
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Hypotheses. Real numbers σ,δ,ϱ\sigma,\delta,\varrhoσ,δ,ϱ with σ>0\sigma>0σ>0, δ>0\delta>0δ>0 and ∣ϱ∣<1|\varrho|<1∣ϱ∣<1. Let

Σ=(σ2σδϱσδϱδ2).\Sigma=\begin{pmatrix}\sigma^2&\sigma\delta\varrho\\ \sigma\delta\varrho&\delta^2\end{pmatrix}.Σ=(σ2σδϱ​σδϱδ2​).

Its determinant σ2δ2(1−ϱ2)\sigma^2\delta^2(1-\varrho^2)σ2δ2(1−ϱ2) is positive, so Σ−1\Sigma^{-1}Σ−1 is the true inverse. In addition:

  • VVV is a real 2×22\times22×2 matrix with VVT=IVV^{\mathsf T}=IVVT=I and det⁡V=1\det V=1detV=1, so VVV is a rotation;
  • e=(e1,e2)e=(e_1,e_2)e=(e1​,e2​) has e1>0e_1>0e1​>0 and e2>0e_2>0e2​>0;
  • Σ=VT diag(e1,e2) V\Sigma = V^{\mathsf T}\,\mathrm{diag}(e_1,e_2)\,VΣ=VTdiag(e1​,e2​)V.

Define the "whitening" matrix

W=diag(1/e1, 1/e2) V.W = \mathrm{diag}\big(1/\sqrt{e_1},\,1/\sqrt{e_2}\big)\,V.W=diag(1/e1​​,1/e2​​)V.

Conclusion. Both of the following hold:

  1. For all v,w∈R2v,w\in\mathbb{R}^2v,w∈R2,
(Wv)⋅(Ww)=v⋅(Σ−1w).(Wv)\cdot(Ww) = v\cdot(\Sigma^{-1}w).(Wv)⋅(Ww)=v⋅(Σ−1w).
  1. For all n,v∈R2n,v\in\mathbb{R}^2n,v∈R2 with n≠0n\neq0n=0, the following two statements are equivalent:

    • for every w∈R2w\in\mathbb{R}^2w∈R2 with n⋅w=0n\cdot w=0n⋅w=0, we have (Wv)⋅(Ww)=0(Wv)\cdot(Ww)=0(Wv)⋅(Ww)=0;
    • there is a real number ccc with v=c Σnv=c\,\Sigma nv=cΣn.

    Here c=0c=0c=0 is allowed, so v=0v=0v=0 satisfies both sides.

All dot products are the standard Euclidean ones on R2\mathbb{R}^2R2.

Degenerate cases. The hypotheses on VVV and eee are jointly satisfiable. Under the first three hypotheses Σ\SigmaΣ is symmetric positive definite, so it has an orthonormal eigen-decomposition with positive eigenvalues, and det⁡V=1\det V=1detV=1 can be arranged by changing the sign of one row of VVV. The statement is therefore not vacuous. Since ei>0e_i>0ei​>0, the square roots and reciprocals are genuine; no default value of ⋅\sqrt{\cdot}⋅​ or of division by zero occurs. The case n=0n=0n=0 is excluded from part 2.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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