Alphabeta Math
Pipeline-generated
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.

✓ 2 results · all verified · 1 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 1 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Variational autoencoders and pathwise training

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Variational autoencoder model, encoder, and ELBO

Definition

Let (X,AX,μX) and (Z,AZ,μZ) be sigma-finite measure spaces; that is, each has a countable measurable cover by sets of finite measure. Let Θ⊆Rdθ and Φ⊆Rdϕ be parameter sets of finite dimension. A latent-variable model with parameter θ∈Θ consists of a measurable prior density rθ(z)≥0 on Z and a decoder density dθ(x∣z)≥0 on X for each z, with ∫Zrθ(z) dμZ(z)=1,∫Xdθ(x∣z) dμX(x)=1. The decoder is jointly measurable in (x,z), and the joint model density is pθ(x,z)=γθ(z;x):=rθ(z)dθ(x∣z) relative to μX⊗μZ. The decoder is also called the generative model: after drawing z from the prior, it assigns a conditional density to the observation x.

For a fixed observation x, the evidence density and posterior density are Zθ(x):=pθ(x):=∫Zγθ(z;x) dμZ(z),πθ(z∣x):=γθ(z;x)Zθ(x). Use this posterior only when 0<Zθ(x)<∞. A variational encoder is a jointly measurable family of functions qϕ(z∣x)≥0 on Z, parameterized by ϕ∈Φ and normalized by ∫Zqϕ(z∣x) dμZ(z)=1 for every (ϕ,x); the same parameter ϕ is used for each observation. For an admissible triple (θ,ϕ,x) require 0<Zθ(x)<∞ and qϕ(z∣x)=0μZ-almost everywhere on {z:πθ(z∣x)=0},∫Zqϕ(z∣x)(∣log⁡γθ(z;x)∣+∣log⁡qϕ(z∣x)∣) dμZ(z)<∞. Terms multiplied by qϕ=0 are defined to be zero. The evidence lower bound is ELBO⁡θ,ϕ(x):=∫Zqϕ(z∣x)(log⁡γθ(z;x)−log⁡qϕ(z∣x)) dμZ(z).

A pathwise representation of the encoder at x is a probability space (E,F,ρ) whose law ρ is independent of θ and ϕ, together with a measurable map gϕ(ϵ,x) such that the law of gϕ(ϵ,x) for ϵ∼ρ is the measure with density qϕ(⋅∣x) relative to μZ. This representation defines how to generate encoder samples; it does not by itself assert that differentiation may pass through an expectation.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

The VAE evidence equals the ELBO plus reverse KL

Statement

Fix an observation x in a VAE with latent reference measure μZ. Let γθ(⋅;x) be its nonnegative measurable joint-density slice, let Zθ(x)=∫γθ(z;x) dμZ(z)∈(0,∞), and let πθ(z∣x)=γθ(z;x)/Zθ(x). Let qϕ(⋅∣x) be a measurable probability density satisfying qϕ=0 μZ-almost everywhere on {πθ=0} and ∫qϕ(z∣x)(∣log⁡γθ(z;x)∣+∣log⁡qϕ(z∣x)∣) dμZ(z)<∞. Then the choice-free density-ratio identity is log⁡Zθ(x)=ELBO⁡θ,ϕ(x)+∫qϕ(z∣x)log⁡ ⁣(qϕ(z∣x)πθ(z∣x)) dμZ(z), where the ratio integrand is zero when qϕ=0. Under the Axiom of Choice, the final integral is the library reverse-KL divergence DKL(qϕμZ∥πθμZ) and is nonnegative; hence ELBO⁡θ,ϕ(x)≤log⁡Zθ(x).

Facts & Assumptions

Given: A fixed observation x, the VAE joint-density slice, its positive finite evidence, an admissible encoder density, and AC for the library KL branch.

[F1]

Variational autoencoder model, encoder, and ELBO: at each admissible fixed x, γθ(⋅;x) is nonnegative measurable, 0<Zθ(x)=∫γθ dμZ<∞, πθ=γθ/Zθ, and qϕ is a probability density with the stated support and absolute log-integrability conditions.

[F2]

Evidence lower bound is log evidence minus reverse KL: for a sigma-finite reference measure and such γ,Z,π,q, the density-ratio identity log⁡Z=ELBO⁡(q)+∫qlog⁡(q/π) dμ holds without choice; under AC the integral is DKL(qμ∥πμ)≥0.

[A1]

The Axiom of Choice: every family of nonempty sets has a choice function; AC is invoked only for the library KL identification and nonnegativity in [F2].

Proof

1.1givenF1

By [F1], (μZ,γθ(⋅;x),Zθ(x),πθ(⋅∣x),qϕ(⋅∣x)) satisfies the sigma-finiteness, positive finite normalizer, support, and absolute log-integrability hypotheses of the generic decomposition. Its ELBO integral is exactly ELBO⁡θ,ϕ(x) by definition.

2.1A1F2step 1.1algebra∎

Apply [F2] to these objects. Its choice-free branch gives the displayed density-ratio identity. Under [A1], its second branch identifies the ratio integral as the nonnegative reverse-KL divergence, and rearranging yields the stated lower bound.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Dominated pathwise differentiation for VAE training

Statement

Let X=(x1,…,xN) be a fixed nonempty finite data set, let Λ be an open subset of a finite-dimensional Euclidean parameter space for η=(θ,ϕ), and fix η0=(θ0,ϕ0)∈Λ. For each i, assume the VAE at (η,xi) is admissible and has a pathwise representation gϕ(ϵ,xi) under one parameter-independent probability law ρ. Assume there is one ρ-null set, common to every i and η∈Λ, outside which 0<qϕ(gϕ(ϵ,xi)∣xi)<∞ and 0<γθ(gϕ(ϵ,xi);xi)<∞; define the payoff below to be zero on that null set. Define Hi(η,ϵ):=log⁡γθ(gϕ(ϵ,xi);xi)−log⁡qϕ(gϕ(ϵ,xi)∣xi), with terms on a common ρ-null set defined to be zero. Assume each Hi is jointly measurable and integrable for every η∈Λ. Outside one ρ-null set, each Hi(⋅,ϵ) is continuously differentiable on Λ with continuous gradient, and ∇ηHi(η,⋅) is measurable for every η. For every compact neighborhood K⊂Λ of η0, assume one nonnegative Mi,K∈L1(ρ) satisfies ∥∇ηHi(η,ϵ)∥2≤Mi,K(ϵ) for every η∈K outside one common null set, and assume Eρ∥∇ηHi(η0,ϵ)∥22<∞.

Let I be uniform on {1,…,N} and independent of ϵ∼ρ. Then the finite-average objective L‾(η):=1N∑i=1NELBO⁡θ,ϕ(xi) is differentiable at η0, and its one-example pathwise gradient estimate G(η0,I,ϵ):=∇ηHI(η0,ϵ) satisfies E[G(η0,I,ϵ)]=∇ηL‾(η0) and has finite coordinate variances. A parameter-independent Gaussian base law alone does not imply the differentiability, envelope, or second-moment hypotheses.

Facts & Assumptions

Given: A finite nonempty data set, the admissible VAE densities and fixed-law pathwise representations at each data point, the stated local sample-path regularity and common integrable derivative envelopes, and square-integrable pathwise gradients at η0.

[F1]

Variational autoencoder model, encoder, and ELBO: the ELBO is the qϕ(⋅∣x)-expectation of log⁡γθ(z;x)−log⁡qϕ(z∣x), and the law of gϕ(ϵ,x) under ρ has density qϕ(⋅∣x) relative to μZ.

[F2]

Simulation objectives and unbiased payoff oracles: a simulation payoff is jointly measurable and integrable at every parameter, and its objective is its expectation under the fixed probability law.

[F3]

Pathwise and reparameterized simulation-gradient estimators: for a fixed random input, the pathwise estimator is the pointwise derivative of the simulated payoff; this definition alone does not imply unbiasedness.

[F4]

A dominated pathwise simulation gradient is unbiased: for an integrable simulation payoff with almost-sure C1 sample paths, continuous measurable gradients, one common integrable gradient envelope on a neighborhood, and a square-integrable gradient at the base parameter, the objective is differentiable there and its gradient is the expectation of the pathwise gradient; each coordinate then has finite variance.

[F5]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): along a parameter segment, the assumed differentiability of the full payoff gives ddtHi(η+tv,ϵ)=DηHi(η+tv,ϵ)[v]. No separate differentiability of the sampler or log-density factors is assumed.

[F6]

Dominated convergence: almost-everywhere convergence under one integrable majorant permits passage of the limit through the integral.

Proof

1.1givenF1F2F3

Fix i. By [F3], Gi(η,ϵ):=∇ηHi(η,ϵ) is the fixed-noise pathwise estimator. The pushforward condition in [F1] gives EρHi(η,ϵ)=ELBO⁡θ,ϕ(xi) for every η. The absolute log-integrability in the VAE definition makes Hi integrable; its joint measurability and integrability therefore meet the payoff conditions in [F2].

2.1givenF4F5F6step 1.1

Since Λ is open, choose a closed ball K centered at η0 with K⊂Λ and nonempty interior. The common envelope assumed on K is an integrable majorant on an open neighborhood of η0; the C1, continuity, measurability and square-integrability hypotheses are exactly those of [F4]. The full proof of [F4] applies the chain rule along parameter segments and then [F6] to the first-order difference quotients under this majorant. It gives ∇ηELBO⁡θ,ϕ(xi)∣η0=Eρ∇ηHi(η0,ϵ) and finite coordinate variances.

3.1givenstep 2.1algebra∎

The finite sum defining L‾ is differentiable at η0 with gradient the average of these N gradients. Independence and uniformity of I give E[G]=N−1∑i=1NEρ∇ηHi(η0,ϵ), which is that average gradient. The finite mixture of the stated square-integrable gradients has finite second moment in each coordinate and therefore finite coordinate variance.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Reparameterized variational training

Definition

Inputs are a fixed nonempty finite data set X=(x1,…,xN); a VAE model and admissible encoder from the preceding definition; a parameter-independent base law ρ and pathwise map gϕ for every xi; an initial parameter η0=(θ0,ϕ0); a finite positive integer T; and positive learning rates α0,…,αT−1. Require the hypotheses of the dominated pathwise-gradient theorem at every parameter value reached by the procedure, and require each update below to remain in its open admissible parameter domain. Let N be the union of the theorem's common null set for finite positive log values and its null set on which the sample-path C1 condition may fail; thus N is a common ρ-null set for all data indices and parameter values.

Set η0=(θ0,ϕ0). For each t=0,…,T−1:

  1. Draw It uniformly from {1,…,N} and draw ϵt from ρ, with It and ϵt independent and the pair (It,ϵt) independent of all earlier random draws.
  2. If ϵt∈N, set ht=0. Otherwise set zt=gϕt(ϵt,xIt) and evaluate ht=log⁡γθt(zt;xIt)−log⁡qϕt(zt∣xIt).
  3. If ϵt∈N, set Gt=0. Otherwise, holding ϵt and It fixed, compute the Euclidean gradient Gt=∇(θ,ϕ)[log⁡γθ(gϕ(ϵt,xIt);xIt)−log⁡qϕ(gϕ(ϵt,xIt)∣xIt)]∣(θ,ϕ)=ηt.
  4. Update ηt+1=ηt+αtGt.

Return (η0,…,ηT) and (ht,Gt)0≤t<T. This finite procedure specifies stochastic ascent on the finite-average ELBO; it makes no claim that the iterates converge or reach a global maximum.

Remarks

At a fixed current parameter satisfying the gradient theorem's hypotheses, a fresh independent draw has the unbiased pathwise-gradient and finite-coordinate-variance guarantees proved there. In round t, this is a conditional guarantee given the preceding draws, which fix ηt; no unconditional finite-variance claim over the random trajectory is made. The Axiom of Choice identifies this ELBO as a lower bound on log evidence under the corollary's hypotheses.

If the prior and encoder are Gaussian and the expectation of their log-density difference is available analytically, that term can be evaluated exactly instead of sampled. This removes Monte Carlo variation from that term only; the decoder log-likelihood may still be sampled, and no universal variance or training guarantee follows.

LemmaStatement: AI-adaptedProof: AI-generatedOpen item page →

The fixed-horizon reparameterized variational-training procedure terminates

Statement

Under the full input and admissible-domain hypotheses of reparameterized variational training, let T≥1 be its finite integer horizon. For every sequence of its prescribed draws satisfying the stated update-domain requirement, all recorded payoffs ht, gradient vectors Gt, and parameter vectors ηt are finite. The mathematical procedure completes exactly T rounds and returns the full trajectories (η0,…,ηT) and (ht,Gt)0≤t<T, including when one or more noise draws lie in its common null set.

Termination here counts the prescribed draws, branch decisions, pointwise evaluations and vector updates as the operations of the stated mathematical procedure. It asserts neither an implementation or cost bound for arbitrary supplied functions and samplers nor convergence or optimality of the returned parameters.

Facts & Assumptions

Given: All inputs and admissibility hypotheses of the algorithm, its finite positive integer T, and a sequence (It,ϵt)0≤t<T of its draws for which every required update remains in the open admissible parameter domain.

[F1]

The algorithm has a fixed nonempty finite data set, finite-dimensional initial parameter η0, positive finite real learning rates, and exactly the rounds 0,…,T−1. Each round records one payoff and gradient, makes one update ηt+1=ηt+αtGt, and has no additional iterative search. Reparameterized variational training

[F2]

Outside its common null set for finite positive log values, both densities evaluated along each data point's encoder path are strictly positive finite real numbers. The payoff is their finite log difference. Outside the additional common null set for sample-path regularity, that payoff is a C1 real function of the finite-dimensional parameter, hence its Euclidean gradient exists and has finite real coordinates. The algorithm uses the union N of these two null sets, common to all data indices and parameters. Dominated pathwise differentiation for VAE training, Reparameterized variational training

[F3]

If ϵt∈N, the algorithm sets both ht=0 and Gt=0 and does not evaluate either logarithm or gradient there. Every update is required to remain in the open admissible parameter domain. Reparameterized variational training

[F4]

A VAE's admissibility includes positive finite evidence, encoder support compatibility and absolute log-integrability; these hypotheses are retained in the algorithm and its pathwise theorem. Variational autoencoder model, encoder, and ELBO

[F5]

Induction propagates a base assertion preserved by each successor through every index of a finite natural-number interval. The natural numbers N (von Neumann), The principle of mathematical induction

Proof

1.1givenF1F4base

At t=0, the initial parameter is the supplied finite-dimensional real vector in the admissible domain by [F1] and the algorithm's hypotheses. No payoff or gradient has yet been recorded. Thus the procedure has a well-defined finite state before its first round.

1.2givenF1F2F3IHcases

Suppose 0≤t<T and the state before round t has been obtained with finite parameters and records for all earlier rounds. The next supplied draw has an index in the finite data set. If ϵt∈N, [F3] defines both records to be zero, so they are finite and no undefined density or derivative is evaluated. If ϵt∉N, [F2] makes the two density values strictly positive and finite, so ht is a finite real number; the sample-path C1 property gives a finite gradient vector Gt at the current admissible parameter. This constructs finite records in both branches.

2.1F1F3step 1.2IHalgebra

The scalar αt and all coordinates of ηt,Gt are finite, so the finite-dimensional vector sum ηt+αtGt has finite coordinates. The stated update-domain requirement [F3] puts this parameter ηt+1 in the same admissible domain where the next round's hypotheses apply. Each branch in step 1.2 and this update uses only finitely many of the procedure's prescribed operations, with no recursive loop within a round. Thus a completed round produces the next finite admissible state.

3.1F1F3F5step 1.1step 1.2step 2.1discharge-induction∎

By [F5], steps 1.1–2.1 give a completed state after each t≤T. After round T−1 the prescribed loop ends; there is no further stopping test or unbounded search. The finite records comprise exactly (η0,…,ηT) and (ht,Gt)0≤t<T, which [F1] instructs the procedure to return. Hence it terminates after exactly T rounds with every stated finite output, for every admissible draw sequence including the null-set branches.

4 · Examples, counterexamples and false statements

None yet.

Sources