Recursive Wick pairing sums #
This file isolates the finite combinatorics used by Isserlis' theorem. The recursion pairs the first label with each remaining label exactly once and then removes that partner. Thus it enumerates labeled full pairings without quotients or a choice of ordering inside each pair.
The constant-covariance specialization is proved to satisfy exactly the same
recurrence as the centered univariate Gaussian moments. A later bridge
identifies this recursive presentation with the project's
PartialPairing.IsFull sum.
Recursive sum of covariance products over all full pairings of a list of labeled variables. An odd list evaluates to zero because the recursion eventually reaches a singleton.
Equations
- Anderson4D.wickPairingList C [] = 1
- Anderson4D.wickPairingList C (x_1 :: xs) = ∑ j : Fin xs.length, C x_1 (xs.get j) * Anderson4D.wickPairingList C (xs.eraseIdx ↑j)
Instances For
If every covariance entry equals c, the recursive full-pairing sum on
2q labels is (2q-1)!! c^q, with the double factorial represented by
gaussianPairingCount.