Preamble of Proposition 2: normal to iff
ProvedMakeToStockRM.ExpDensity.whitening_normal_iff_conormalLet , , and let be the covariance matrix of . As in the paper, let be a rotation matrix (, ) whose rows are orthonormal eigenvectors of , and with the corresponding eigenvalues, so that . Let be the whitening map. Then:
- For all , .
- For every nonzero and every ,
Since maps the tangent directions of (those orthogonal to its normal ) onto the tangent directions of , part 2 says that the hypothesis of Proposition 2, " is normal to ", holds at a boundary point exactly when the reflection direction is parallel to the conormal . This is how the mission pins down the reflection field in the goal theorem.
Formalization Note The eigenvalue condition is automatic for a positive definite and is stated as a hypothesis alongside the decomposition ; is . Vectors are Fin 2 → ℝ, inventory first.
import Mathlib import Definitions.Def_MakeToStockRM_ExpDensity_covMatrix
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses. Real numbers with , and . Let
Its determinant is positive, so is the true inverse. In addition:
- is a real matrix with and , so is a rotation;
- has and ;
- .
Define the "whitening" matrix
Conclusion. Both of the following hold:
- For all ,
-
For all with , the following two statements are equivalent:
- for every with , we have ;
- there is a real number with .
Here is allowed, so satisfies both sides.
All dot products are the standard Euclidean ones on .
Degenerate cases. The hypotheses on and are jointly satisfiable. Under the first three hypotheses is symmetric positive definite, so it has an orthonormal eigen-decomposition with positive eigenvalues, and can be arranged by changing the sign of one row of . The statement is therefore not vacuous. Since , the square roots and reciprocals are genuine; no default value of or of division by zero occurs. The case is excluded from part 2.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.