Result 2: Wick's theorem for centered Gaussian vectors
ProvedLesHouchesWidth.wick_theoremLet be a centered Gaussian vector with positive semidefinite covariance matrix , . Then:
- for every and indices ,
- for every and indices , .
This reduces all moments of a Gaussian vector to its covariance. The lectures use it to compute finite-width correlators of deep linear networks.
Formalization Note A pairing is encoded as a fixed-point-free involution of , and the product runs over the with .
import Mathlib import Definitions.Def_LesHouchesWidth_GaussianMLP
namespace LesHouchesWidth
open MeasureTheory ProbabilityTheory
theorem wick_theorem {d : ℕ} (K : Matrix (Fin d) (Fin d) ℝ) (hK : K.PosSemidef) :
(∀ (m : ℕ) (μs : Fin (2 * m) → Fin d),
∫ z, ∏ k, z (μs k) ∂(multivariateGaussian 0 K) =
∑ π ∈ pairings (2 * m),
∏ k ∈ Finset.univ.filter (fun k => k < π k), K (μs k) (μs (π k))) ∧
(∀ (m : ℕ) (μs : Fin (2 * m + 1) → Fin d),
∫ z, ∏ k, z (μs k) ∂(multivariateGaussian 0 K) = 0) := by sorry
end LesHouchesWidthRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent as drafter
Non-blind read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source and of the intended meaning. It is not independent testimony and should not be treated as a blind audit; an independent read-back is still recommended before launch.
Let and let be a real positive semidefinite matrix. Let be Mathlib's multivariate Gaussian on with mean and covariance . The theorem asserts two things.
- For every and every map , we have . The sum is over all permutations of with and no fixed points. For both sides equal .
- For every and every , the integral of is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.