The CUE characteristic polynomial and the ensemble average
Definitionkeating_snaith_cueThis item fixes the objects of the mission.
Let and let be the eigenphases of an unitary matrix, so that its eigenvalues are . Under Haar measure on — equivalently, for the circular unitary ensemble — Weyl's formula gives the eigenphases the joint density
on the box . Accordingly the CUE average of a function of the eigenphases is defined by
which is a probability average: the average of the constant function is . The definition is stated for functions with values in any real normed space, so that both real- and complex-valued averages are covered.
The characteristic polynomial evaluated at the point of the unit circle is
and the two real observables attached to it are and
The second is the closed form, valid for eigenphases in , of the branch of obtained by continuation from as ; it is the sawtooth sum .
Finally, is recorded as the standardising scale of the central limit theorem, and
as the standard Gaussian mass of an interval.
These are the only conventions the mission's theorems rest on: every statement in the mission is an assertion about the average of an explicit function of .
import Mathlib
/-!
# The CUE characteristic polynomial and its ensemble averages
Basic objects for the Keating–Snaith theory of the characteristic polynomial of a random
unitary matrix, following N.C. Snaith, *Random Matrix Theory and zeta functions*,
PhD thesis, University of Bristol, 2000, Chapter 2.
-/
namespace KeatingSnaith
open Finset MeasureTheory
open scoped Real
/-- The set of eigenphase vectors `(θ₁, …, θ_N) ∈ (0, 2π]^N`. -/
def phaseBox (N : ℕ) : Set (Fin N → ℝ) :=
Set.univ.pi fun _ => Set.Ioc 0 (2 * Real.pi)
/-- The unnormalised Weyl (CUE) eigenvalue density
`∏_{1 ≤ j < k ≤ N} |e^{iθ_j} - e^{iθ_k}|²`. -/
noncomputable def cueDensity (N : ℕ) (θ : Fin N → ℝ) : ℝ :=
∏ p ∈ Finset.univ.filter (fun p : Fin N × Fin N => p.1 < p.2),
‖Complex.exp (θ p.1 * Complex.I) - Complex.exp (θ p.2 * Complex.I)‖ ^ 2
/-- The average of `f` over the circular unitary ensemble `CUE(N)`:
`⟨f⟩ = (N! (2π)^N)⁻¹ ∫_{(0,2π]^N} ∏_{j<k} |e^{iθ_j} - e^{iθ_k}|² f(θ) dθ₁ ⋯ dθ_N`. -/
noncomputable def cueAverage (N : ℕ) {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
(f : (Fin N → ℝ) → E) : E :=
((Nat.factorial N : ℝ) * (2 * Real.pi) ^ N)⁻¹ • ∫ θ in phaseBox N, cueDensity N θ • f θ
/-- The characteristic polynomial `Z(U, 0) = ∏_{n=1}^{N} (1 - e^{iθ_n})` of a unitary matrix
with eigenphases `θ₁, …, θ_N`. -/
noncomputable def charPoly (N : ℕ) (θ : Fin N → ℝ) : ℂ :=
∏ n, (1 - Complex.exp (θ n * Complex.I))
/-- `log |Z|`, the real part of `log Z`. -/
noncomputable def logAbsZ (N : ℕ) (θ : Fin N → ℝ) : ℝ :=
Real.log ‖charPoly N θ‖
/-- `Im log Z = ∑_{n=1}^{N} (θ_n - π)/2`, the branch of the imaginary part of `log Z(U, 0)`
fixed by continuation from `log Z(U, -i∞) = 0`; for eigenphases in `(0, 2π]` it is given by
the sawtooth sum `-∑_n ∑_{m≥1} sin(θ_n m)/m`. -/
noncomputable def imLogZ (N : ℕ) (θ : Fin N → ℝ) : ℝ :=
∑ n, (θ n - Real.pi) / 2
/-- The standardising scale `√((1/2) log N)` of the Keating–Snaith central limit theorem. -/
noncomputable def cltScale (N : ℕ) : ℝ :=
Real.sqrt (Real.log N / 2)
/-- The standard Gaussian measure of the interval `[a, b]`. -/
noncomputable def gaussianMass (a b : ℝ) : ℝ :=
(Real.sqrt (2 * Real.pi))⁻¹ * ∫ x in a..b, Real.exp (-x ^ 2 / 2)
end KeatingSnaith
Read-back
What the Lean code literally says, in plain math · Aristotle by Harmonic (self-authored, non-blind)
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the mission owner; it was not written blind by an independent auditor. It therefore reports only what the author of the statement reads in it, and cannot serve the usual purpose of catching the author's own misreading of the author's own code. Reviewers should treat it as author's commentary rather than independent evidence of faithfulness, and should commission a blind read-back from a separate auditor where independent assurance is required.
This bundle introduces six definitions, all depending on a natural number ; nothing is asserted, so there are no hypotheses and no claims to be true or false.
-
The phase box is the set of functions from the -element index type to such that for every index — the half-open box , open at and closed at . For this is the one-point space.
-
The density attached to is the real number
the product running over ordered pairs of indices with (each unordered pair contributing once), and being the complex modulus. Empty products are , so for the density is identically .
- The average of a function from to any real normed vector space is the vector
a Bochner integral against -dimensional Lebesgue measure restricted to the box. Two silent conventions are in force: if the integrand is not integrable the integral is , and the scalar factor is the reciprocal of , which is never zero.
-
is the complex number ; the exponent is with coerced to . It vanishes exactly when some is an integer multiple of , which inside the box means . For it is .
-
is the real logarithm of . At points where this evaluates to the junk value rather than .
-
is defined to be the finite sum . It is a linear function of ; no logarithm, argument, or branch choice appears in the definition, and the definition is applied to every , including vectors outside the box.
Two auxiliary numbers are also defined: the scale , where is coerced to a real number (so the scale is for and, for , is the square root of the junk value ); and the Gaussian mass of a pair of reals , namely
an oriented interval integral, so it is negative when and when .