Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Finite complex second moments and covariance matrix

Definition
DerivativeChainContinuation_Covariance

by labuka · Oct 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

compression-deficitcontinuation-20261026derivative-chains

Define the uniform mean squared norm VVV, the complex mean square HHH, and the real two-by-two second-moment matrix of a finite complex root list. These become centered variance and covariance when the list has mean zero.

Definition code
import Mathlib
import Definitions.Def_DerivativeChainPrivate_foundations


set_option autoImplicit false
namespace DerivativeChainContinuation
open scoped BigOperators

noncomputable def secondMoment {n : ℕ} (a : Fin n → ℂ) : ℝ :=
  (∑ i, Complex.normSq (a i)) / n

noncomputable def holomorphicMoment {n : ℕ} (a : Fin n → ℂ) : ℂ :=
  Complex.ofReal ((n : ℝ)⁻¹) * ∑ i, (a i)^2

noncomputable def covariance {n : ℕ} (a : Fin n → ℂ) : Matrix (Fin 2) (Fin 2) ℝ :=
  !![(∑ i, (a i).re^2) / n, (∑ i, (a i).re * (a i).im) / n;
     (∑ i, (a i).re * (a i).im) / n, (∑ i, (a i).im^2) / n]













end DerivativeChainContinuation
Source
https://github.com/Amal-David/derivative-chain-prize/blob/21d2a2ac5cd4b4e6263cbc715dd5f925427fc976/continuation_formal/Source/Covariance.lean#L13-L15; https://github.com/Amal-David/derivative-chain-prize/blob/21d2a2ac5cd4b4e6263cbc715dd5f925427fc976/continuation_formal/Source/Covariance.lean#L10-L11; https://github.com/Amal-David/derivative-chain-prize/blob/21d2a2ac5cd4b4e6263cbc715dd5f925427fc976/continuation_formal/Source/Covariance.lean#L7-L8

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