Wick's theorem for the multivariable Gaussian (eq. 1.45)
ProvedDeepLearningTheory.wick_theoremWick's theorem. Let be a symmetric positive-definite real matrix and let follow the zero-mean Gaussian distribution with covariance (density (1.31)). For every and all indices (repetitions allowed),
where the sum runs over the distinct ways of pairing the labels , and each pair contributes one factor (a Wick contraction).
This formula evaluates every Gaussian moment and underlies all correlator computations in the book.
Formalization Note A pairing is encoded as a fixed-point-free involution of ; the product runs over labels with , so each pair appears exactly once.
import Mathlib import Definitions.Def_DLT_GaussianIntegrals open MeasureTheory
namespace DeepLearningTheory
theorem wick_theorem {N : ℕ} (K : Matrix (Fin N) (Fin N) ℝ) (hK : K.PosDef)
(m : ℕ) (μs : Fin (2 * m) → Fin N) :
gaussExpect K (fun z => ∏ a : Fin (2 * m), z (μs a))
= ∑ σ ∈ pairings (2 * m),
∏ a ∈ Finset.univ.filter (fun a : Fin (2 * m) => a < σ a), K (μs a) (μs (σ a)) := by sorry
end DeepLearningTheoryRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent as the drafter
Non-blind read-back. This read-back was written by the same agent that drafted the Lean statement, with full knowledge of the source text and of the intended meaning. It is not independent testimony and must not be mistaken for a blind audit; reviewers should compare the Lean code against the source themselves.
For every , every positive-definite real matrix , every and every map from to (repetitions allowed):
where , the integral is a Bochner integral against Lebesgue measure, and ranges over all permutations of with and no fixed points. For both sides equal the integral of and the empty product respectively.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.