Theorem (MatchesMoments.eq_gaussQuadrature). Uniqueness of the Gauss rule: if a finite measure \nu carried by a set of at most k points matches the first 2k moments of a finite measure \mu supported in [a, \mathbf{b}], then \nu is the k-point Gauss rule of \mu. [Gautschi2004, §1.4] (locator to check); there among interpolatory rules with k distinct nodes and positive weights; here any measure on at most k points.
Headline
Lean statement and details
NLAlib.MatchesMoments.eq_gaussQuadrature {μ ν : Measure ℝ} [IsFiniteMeasure μ] {a b : ℝ}
[IsFiniteMeasure ν] {k : ℕ} (h : MatchesMoments μ ν (2 * k)) (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b)
{s : Finset ℝ} (hν : ∀ᵐ (x : ℝ) ∂ν, x ∈ s) (hs : s.card ≤ k) : ν = gaussQuadrature μ k