Degrees of freedom from a signature
Definitionhardy2001_signatureFor a list of natural numbers , the signature of a probability theory, and a dimension , the number of degrees of freedom is
Hardy counts one degree of freedom for each one-dimensional subspace spanned by basis states, further degrees of freedom for each two-dimensional subspace, for each three-dimensional subspace, and so on. Classical probability theory has signature and complex quantum theory has .
Formalization Note The signature is a finite list [x₁, …, x_L], and all later entries are understood to be . The coefficient is written as the binomial coefficient . It is equal to it for every natural , including , where both vanish.
import Mathlib namespace HardyFiveAxioms /-- Number of degrees of freedom `K` determined by a signature `x = (x₁, x₂, …)` for a system of dimension `N` (Hardy 2001, Eq. (28)): `K = N x₁ + (1/2!) N(N-1) x₂ + (1/3!) N(N-1)(N-2) x₃ + ⋯ = ∑ₖ (N choose k) xₖ`. The signature is given as the finite list `[x₁, x₂, …, x_L]`; entries beyond `L` are zero. -/ def dofOfSignature (x : List ℕ) (N : ℕ) : ℕ := ∑ i : Fin x.length, N.choose (i.val + 1) * x.get i end HardyFiveAxioms
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement below, with full knowledge of the source paper and of the intended meaning. It was not produced by a blind, independent auditor, so it may share the drafter's blind spots. Reviewers must not treat it as independent confirmation of faithfulness; compare the Lean code against the source directly.
For a finite list of natural numbers ( is the length of the list, possibly ) and a natural number , the natural number is defined as
where is the usual binomial coefficient, equal to when . For the empty list , and for every term vanishes, so . Everything is computed in , so there is no division and no truncation.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.