How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Energy models, score matching, and contrastive divergence
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Areas of Elementary Plane Figures
- Banach-Space Differential Calculus and Banach Manifolds
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Compactness
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- Conditional Distributions and Regular Conditional Probability
- Conditional Expectation
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Countability Axioms and Cardinal Functions
- Density Separability and Convolution in Lᵖ
- Determinants of Matrices over a Commutative Ring
- Distributions Test Functions and Differentiation
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- F-Divergences, Rényi Information, and Hypothesis Testing
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Fubini and Change of Variables
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Lebesgue Measure on Euclidean Space
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Mixed Partials, Taylor Formulae, and Extrema
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Pointwise Extended-Real Function Products
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Schwartz Space and the Plancherel Theorem
- Separation Axioms: the Hierarchy
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Smooth Partitions of Unity and Exhaustions
- Subspaces, Products, and Quotients
- Suprema and Infima
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Inverse and Implicit Function Theorems
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Lᵖ Spaces Holder Minkowski and Riesz Fischer
- The Maximal Function and Lebesgue Differentiation
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
- Weak Derivatives and Sobolev Spaces
2 · Logical flowchart
3 · Definitions, theorems and proofs
Energy-based density and partition function
Definition
Let be a measure space, let be a parameter set, and for each let be a measurable energy function. Its partition function relative to is The admissible parameter set is For , the energy-based probability measure is the measure with density relative to : The restriction is part of the definition; parameters outside do not define a normalized model by this formula.
Definition references
Measure spaces defines the triple used here.
A measurable function between measurable spaces defines measurability of .
The nonnegative Lebesgue integral defines the integral used for .
The measure with density relative to defines the measure with density relative to .
Probability measures and probability spaces defines a probability measure as a measure of total mass one.
An admissibly normalized energy density is a probability measure ↗ establishes the normalization's well-definedness.
An admissibly normalized energy density is a probability measure
Statement
For every measure space , measurable real energy , and parameter with , the normalized measure is a probability measure on .
Statement references
Energy-based density and partition function supplies the notation and .
The measure with density relative to identifies the nonnegative density integral as a measure.
Probability measures and probability spaces defines a probability measure by total mass one.
Facts & Assumptions
Given: A measure space , a measurable real energy , and .
Energy-based density and partition function: and admissibility requires .
The measure with density relative to : if is measurable, then is a measure.
Probability measures and probability spaces: a measure on with total mass one is a probability measure.
The real exponential function and the number by a power series and The exponential series converges absolutely for every real argument: the real exponential is the power-series sum , with infinite radius of convergence.
The sum of a real power series is continuous at every point strictly inside its interval of convergence: a power-series sum is continuous at every point strictly inside its radius of convergence.
A continuous map has Borel preimages of Borel sets: a continuous real map has Borel preimages of Borel sets.
Composition with a Borel measurable outer map preserves measurability: a measurable map composed with a Borel measurable outer map is measurable.
The exponential is positive and satisfies : for every real .
Proof
Define . By [F4], is a power-series sum with infinite radius, so [F5] makes continuous on . Thus [F6] makes it Borel measurable, and [F7] with the measurable energy from [F1] makes measurable. Its values are positive by [F8], hence nonnegative. Put . Now [F2] makes a measure and . Thus . For any pairwise disjoint sequence , [F2] and finite-sum homogeneity give . Therefore is a measure.
Its total mass is , so [F3] makes a probability measure.
The score-matching integration-by-parts identity
Statement
Assume the Axiom of Countable Choice used by the library's Lebesgue-measure and weak-derivative representative interfaces. Let , let be Lebesgue measure on , and let be a continuously differentiable probability density, so . Write which is a probability measure, and let for integrable . Define the data score by when and set when . For an energy model relative to with , assume and define its model score field by . Assume each component of is locally integrable and has locally integrable weak first derivatives: for each , a locally integrable representative satisfies Here denotes the smooth compactly supported test functions. The weak derivatives are unique up to Lebesgue-null sets, and define ; the integrals below do not depend on the chosen representatives. The convention is that the first derivative exists everywhere and is continuous. For each admissible , assume Then the score-matching objective satisfies where is independent of . No pointwise boundary limit at infinity is assumed.
Statement references
Aapo Hyvärinen, Theorem 1 and Appendix A of the full JMLR paper states the score-matching identity under a pointwise boundary condition.
Kevin P. Murphy, Chapter 24, Sections 24.1–24.3.4 defines energy models, the model score and score matching.
Facts & Assumptions
Given: The hypotheses in the Statement, including Countable Choice for the library Lebesgue measure interface and the three stated finite -integrability conditions.
is a nonnegative probability density; for each admissible parameter, , its score field is locally integrable with locally integrable weak first derivatives, and the score and divergence have the stated finite -moments.
The Axiom of Countable Choice (): every countable family of nonempty sets has a choice function; it is used through [F3], [F8], [F10], [F17], and [F19].
Energy-based density and partition function: for , the model density is , and is independent of .
The measure with density relative to : for a nonnegative measurable density , is the measure .
Assuming countable choice, is a sigma-algebra containing every elementary set and is a complete measure extending elementary volume: under Countable Choice, is a complete measure on the Lebesgue sigma-algebra of .
Dominated convergence: almost-everywhere convergence under one integrable majorant implies convergence of the corresponding integrals.
Probability measures and probability spaces: a measure of total mass one is a probability measure.
Continuously differentiable maps, local inverses, and local diffeomorphisms: a map on an open Euclidean set is when it is differentiable everywhere and its derivative entries are continuous.
Weak derivative of a locally integrable function: is a weak derivative exactly when its signed test-function identity holds for every smooth compactly supported test function.
Uniqueness of a weak derivative as an almost-everywhere class: under Countable Choice, any two locally integrable representatives satisfying the same weak-derivative identity agree almost everywhere.
A continuous map has Borel preimages of Borel sets: a continuous map has Borel preimages of Borel sets.
Assuming countable choice, every Borel subset of is Lebesgue measurable: under Countable Choice, Borel subsets of are Lebesgue measurable.
A smooth bump between concentric Euclidean balls: for , a smooth function can equal on and have support contained in .
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value: continuous real functions on nonempty compact metric spaces are bounded.
Chain sum product and composition rules for Banach derivatives: total derivatives obey the bounded-bilinear product rule.
Monotonicity and nonnegative homogeneity of the nonnegative integral: the nonnegative integral is monotone and positively homogeneous.
A C^1 diffeomorphism satisfies the change-of-variables formula for nonnegative Lebesgue measurable functions: a diffeomorphism transforms nonnegative Lebesgue integrals by its absolute Jacobian determinant.
The mollifier family generated by a unit-mass smooth bump: a unit-mass smooth compactly supported function generates the scaled family .
Convolution with a mollifier is smooth, and derivatives pass under the integral sign: convolution of a locally integrable function with a smooth compactly supported mollifier is smooth.
Differentiation under the integral sign: an integrable parameter-independent majorant permits differentiation under the integral sign.
Fermat's theorem: an interior differentiable local extremum has zero gradient: a differentiable function at an interior local extremum has zero gradient.
The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case: the gradient coordinates of a scalar-valued function are its coordinate partial derivatives.
Total differentiability gives a local increment bound and therefore continuity: total differentiability implies continuity.
Chain sum product and composition rules for Banach derivatives: total derivatives obey the chain rule.
Proof
By [F1], the admissible model has density , with independent of . Since is , [F6, F23] make it continuous; [F9, F10] then make it Lebesgue measurable, so [F2] makes a measure, and [F5] makes it a probability measure. The local increment bound [F23] gives, at each , constants with for ; taking shows , so is open. On , [F6, F15, F24] make continuous. For each open , its score preimage is the union of the relative-open preimage in and when ; hence the zero extension is Borel and Lebesgue measurable by [F10]. By [F8], weak-derivative representatives agree off a Lebesgue-null set; [F2] makes every such set -null, so the divergence integral is representative-independent. Choose from [F11] with and . By [F9, F10], this continuous bump is Lebesgue measurable. Its gradient vanishes outside ; [F12, F13] make finite. The box lies in , since its points have norm at most , while and . Thus [F3, F16] give . Set ; positive homogeneity [F16] gives it unit mass. Let be its scaled family from [F18]; [F18] gives support in and [F17] gives unit mass. For , define . Then on , vanishes outside , and [F24] gives .
Fix and put . The product rule [F14] makes a nonnegative function supported in . By [F12, F13], and its first derivatives are bounded there; the ball lies in a finite-volume box by [F3], so is locally integrable. The convolution is smooth by [F19] and supported in for , since and . By [F17], applied to the nonnegative convolution integrand, . For each coordinate , [F24] gives the parameter derivative of . Its sections are integrable because is bounded and the kernel has mass one; its derivative is measurable and bounded by , an integrable majorant. Thus [F20] gives . The unit mass and shrinking support give, for each , , with the same estimate for each first derivative. Since and are bounded by [F12, F13], the weak-identity integrands are dominated on this common compact support by constants times and . Local integrability and [F4] pass the identities from to . Summing over and expanding with [F14] yields .
On , [F15, F24] give . At any point where , nonnegativity makes it an interior local minimum, so [F21, F22] give there too. Thus everywhere. Componentwise and imply and . Also , so the cutoff term from step 1.1 is bounded in absolute value by .
Let for integers . Then pointwise and . The first integrand in step 2.1 is dominated by and the third by , both integrable by step 2.2. Applying [F4] to both terms and using the vanishing cutoff term from step 2.2 gives .
Expanding the square gives . Since by step 2.2, step 3.1 turns the last term into ; the remaining data-score term is , independent of .
Remarks
The cutoff and integration-by-parts argument is choice-free once the Lebesgue measure and weak-derivative classes are available. Countable Choice is used for those two interfaces; no full Axiom of Choice is used. The cutoff estimate supplies the multivariate limit directly and does not rely on pointwise vanishing of at infinity.
Contrastive divergence with k transitions
Definition
Let be a measure space, let be a positive integer and , and let be measurable in and continuously differentiable in . Define the energy model relative to only when with density . Let be a data probability measure on and let be a probability kernel from to itself which leaves invariant, meaning Let carry its full sigma-algebra, let , and recursively compose the probability kernel from to with to obtain . Define ; thus and Finite probability-kernel composition makes each a probability measure. For an integer , is the -step reconstruction law.
If and have specified nonnegative measurable densities and relative to , meaning for every for , and define their finite contrastive-divergence objective by where and is the natural logarithm. On a finite state space where has positive mass at every state, write and . Then and the objective equals since each finite-space integral is the sum of the integrand times the point mass and .
For a positive integer , the procedure takes independent data draws with common law , a transition sampler for , and a learning rate ; the reconstruction chains are drawn independently conditional on their starts. Its output is the updated parameter from the stop-gradient CD- update:
- For each , set and draw from for .
- Form
- Update .
When is integrable under and , the associated population CD- direction is The procedure makes no claim that the chain has mixed in steps. The parameter derivative of is not stopped in the scalar objective's definition; the update above deliberately omits that derivative.
Definition references
Energy-based density and partition function defines the normalized energy law used as the chain target.
Measure kernel and probability kernel defines the probability transition kernels.
Composition of probability kernels defines their iterated composition.
Kernel composition is well defined and associative establishes that finite compositions remain probability kernels.
The measure with density relative to defines a measure from a nonnegative density.
Probability measures and probability spaces defines the data and model laws.
The nonnegative Lebesgue integral defines the nonnegative integrals.
Integrable real and complex functions, and their integrals defines integrability of the relative-entropy terms and parameter gradients.
The finite-state CD-k gradient includes the chain-distribution derivative
Statement
Let be a positive integer, let be finite and nonempty, and let be open. For each , assume the coordinate partial derivatives of and exist and are continuous on . Let be strictly positive and row-stochastic, so and . Use counting measure as the reference measure, set let be a fixed probability vector on , assume is invariant for , and fix an integer . Define , , and , where vectors are row vectors, and where for finite probability mass functions with , with the natural logarithm and zero-mass terms contributing zero. For each parameter coordinate , while The reconstruction-law derivative is Thus the population direction used by stop-gradient CD- is the first two terms of the displayed formula and omits the explicit derivative through the transition kernels. It also replaces the model expectation in the exact negative log-likelihood gradient by the finite reconstruction law; no equality between these gradients is asserted.
For the finite-state path calculation, let with its full sigma-algebra, let be the th coordinate map, and define This is a probability measure. For every real , set Then is a version of .
Statement references
Geoffrey Hinton, Section 2 of the full technical report derives the likelihood and reconstruction updates and notes the omitted contrastive-divergence derivative.
Kevin P. Murphy, Chapter 24, Section 24.2.2 defines the finite-step difference-of-KL contrastive-divergence objective.
The measure definition used for finite path laws.
The probability-measure definition used for finite path laws.
The conditional-expectation definition supplies the event-integral criterion used for the path calculation.
Positivity of the exponential gives positive finite-state model weights.
Facts & Assumptions
Given: A finite nonempty state space, open parameter domain, finite energy model, fixed data probability vector, positive differentiable stochastic matrix with invariant model law, and integer .
For each state or state pair, the energy and transition entries have continuous coordinate partial derivatives on the open set ; every entry of is positive and each row sums to one.
Energy-based density and partition function: for an admissibly normalized energy model.
Contrastive divergence with k transitions: the reconstruction law obeys ; on a finite state space this is row-vector multiplication by .
Contrastive divergence with k transitions: the population stop-gradient direction is .
Finite probability vectors: a finite probability vector has nonnegative coordinates summing to one.
The derivative of at a point that is a limit point of , and differentiability on a set: the derivative at a real coordinate point is defined by the limit of its difference quotient.
Sums, scalar multiples, products and quotients: , , , and when : finite sums, scalar multiples, products, and quotients (where the denominator is nonzero) obey the stated derivative rules.
The chain rule, in one line from Carathéodory: if is differentiable at and is differentiable at , then is differentiable at with : the derivative of a composition of differentiable real functions is the product of the outer derivative at the image and the inner derivative.
The exponential function is smooth and : for every real .
The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t: for , for the natural logarithm.
Measures on sigma-algebras: a measure vanishes on the empty set and is countably additive on pairwise disjoint sequences.
Probability measures and probability spaces: a measure with total mass one is a probability measure.
Conditional expectation given a sigma algebra: a conditional-expectation version is integrable, measurable with respect to the conditioning sigma-algebra, and has the same integral as the conditioned variable on every event in that sigma-algebra.
The exponential is positive and satisfies : for every real .
Proof
Fix a coordinate and vary only in a small interval inside the open set . Since is finite and each energy is real, [F13] makes every positive; hence [F1] gives . The formula for then gives positive coordinates summing to one, so it is a probability vector by [F4]. By [F6], [F7] and [F8], differentiating the finite sum gives . The same chain and quotient rules give ; [F9] identifies the left side with . Because is fixed and sums to one by [F4], differentiating and summing this identity yields the displayed likelihood-gradient formula.
The recurrence in [F2] gives , hence and . For the product rule [F6] gives . If , then entrywise application of [F6] to yields , which is the same formula with by appending the term. Thus the stated product derivative holds for every . Differentiating by [F6] gives . Strict positivity of and nonzero mass of imply for every , so the following logarithms are finite.
Put . These weights are nonnegative. Summing successively over and using the row sums of reduces to . The set function vanishes on the empty set and is countably additive: a disjoint sequence of subsets of finite has only finitely many nonempty terms. Thus [F10] makes it a measure, and [F11] makes it a probability measure.
By the quotient rule [F6], ; the chain and logarithm derivative rules [F7, F9] then give . Applying the product rule [F6] to each summand of therefore gives . Summing the finite terms, the contribution vanishes by step 1.2. Substitution from step 1.1 yields .
For , is row-stochastic and its entries are the length-zero path weights. If the entries of sum the products along all length- paths, then appends the final transition, so its entries sum the length- path weights; also . Thus . The function is finite-valued; for each Borel , , so is -measurable. Both and are integrable since is finite.
Since is fixed, the terms in have zero derivative; applying the same product and logarithm rules [F6, F9] and using the log-density formula from step 1.1 and gives . Subtracting step 2.1 cancels the model expectations and yields the stated formula. By [F3], the algorithm uses only its first two terms; the remaining sum is the derivative through . Comparing with step 1.1 also shows that the algorithm replaces the exact likelihood negative phase by .
Every event in has the form for some , since these preimages form a sigma-algebra and generate . For every such event, step 2.2 gives where terms with vanish. The integrability and measurability from step 2.2 and this event-integral identity satisfy [F12], so is the asserted conditional-expectation version.
4 · Examples, counterexamples and false statements
None yet.
Sources
- Aapo Hyvärinen, Estimation of Non-Normalized Statistical Models by Score Matching, Sections 1–2
- Kevin P. Murphy, Probabilistic Machine Learning: Advanced Topics, Chapter 24
- Aapo Hyvärinen, Estimation of Non-Normalized Statistical Models by Score Matching, Theorem 1 and Appendix A
- Kevin P. Murphy, Probabilistic Machine Learning: Advanced Topics, Chapter 24, Sections 24.1–24.3.4
- Geoffrey Hinton, A Practical Guide to Training Restricted Boltzmann Machines, Version 1, Sections 2–3
- Kevin P. Murphy, Probabilistic Machine Learning: Advanced Topics, Chapter 24, Sections 24.1–24.2.2
- Geoffrey Hinton, A Practical Guide to Training Restricted Boltzmann Machines, Version 1, Section 2
- Kevin P. Murphy, Probabilistic Machine Learning: Advanced Topics, Chapter 24, Section 24.2.2