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.
Finite Quantization, Lloyd Iteration, and Compact Companders
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- 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
- Countability and Uncountability
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- Power Series and Real-Analytic Functions
- Properties of the Integral and the Working FTC
- Rate Distortion and Lossy Source Coding
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Logarithm and General Powers
- The Riemann Integral: Definition and Integrability
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page develops measurable finite squared-error quantizers and exact finite empirical optimization. The Lloyd iteration has strict descent whenever its centers change and terminates at a finite assignment/centroid fixed point; that conclusion does not imply global optimality. A separate exhaustive procedure checks all assignments and attains a global empirical optimum.
The asymptotic result is restricted to a positive source density and positive normalized point density on a fixed compact interval. It proves the exact one-dimensional compander limit and optimizes its coefficient within that class. The compander cells are uniform in the cumulative point-density coordinate and need not be nearest-center cells in the source coordinate. No unrestricted scalar, higher-dimensional, unbounded-support, or overload claim is made.
Compander cell schematic
For on and , the cumulative inverse is . The boundaries are and the reproduction points are . The picture shows these explicit cells and points; the last cell includes . It illustrates the definition and is not used in any proof.
\begin{tikzpicture}[>=stealth]
\draw[->] (-0.25,0) -- (6.55,0) node[right] {$x$};
\draw (0,-0.08) -- (0,0.08);
\draw[dashed] (2,-0.1) -- (2,0.82);
\draw[dashed] (4,-0.1) -- (4,0.82);
\draw (6,-0.08) -- (6,0.08);
\node[below] at (0,-0.08) {$0$};
\node[below] at (2,-0.08) {$1/3$};
\node[below] at (4,-0.08) {$2/3$};
\node[below] at (6,-0.08) {$1$};
\draw (1,0) -- (1,0.34);
\draw (3,0) -- (3,0.34);
\draw (5,0) -- (5,0.34);
\fill (1,0.34) circle (1.5pt);
\fill (3,0.34) circle (1.5pt);
\fill (5,0.34) circle (1.5pt);
\node[above] at (1,0.36) {$r_1=1/6$};
\node[above] at (3,0.36) {$r_2=1/2$};
\node[above] at (5,0.36) {$r_3=5/6$};
\node at (1,-0.42) {$C_1$};
\node at (3,-0.42) {$C_2$};
\node at (5,-0.42) {$C_3$};
\end{tikzpicture}
Source trail
- Robert M. Gray, Source Coding Theory, first edition, Chapter 5 §§5.1–5.3 and §5.6: quantizer cells, high-rate assumptions and point-density optimization.
- Robert Gallager, MIT 6.450 Chapter 3, §§3.2.1–3.2.3 and Appendix 3A: nearest-center assignments, centroids, Lloyd iteration, local-optimum caveat and high-rate scalar context.
- Robert M. Gray and David L. Neuhoff, “Quantization,” §§II–IV: finite quantizer structure, Lloyd history and optimality conditions, Bennett’s integral, point density, and the limits of informal high-resolution approximations.
Each source supplies context; the exact finite termination, exhaustive global-search proof, and restricted compact limit are proved locally on this pair.
3 · Logical flowchart
4 · Definitions, theorems and proofs
The weighted centroid minimizes finite-cluster squared error
Statement
Let , let with , and let be nonempty. Put and . For every ,
Consequently, is the unique minimizer of the cluster's weighted squared error. If is empty, its cost is zero for every center and no centroid is required.
Facts & Assumptions
Given: A finite list of vectors , positive weights summing to one, and a nonempty index set .
The inner product and squared norm on are and .
Proof
Since is nonempty and each , , so is defined and by its formula.
Write and expand the squared norm using [A1]. Summing over , the cross term is by step 1.1; the remaining terms give the displayed identity.
The last term in step 2.1 is nonnegative and vanishes exactly when , because and a Euclidean squared norm vanishes exactly at the zero vector. Thus uniquely minimizes the cost. For empty , the sum has no terms and equals zero for every .
Cumulative coordinate of a point density on a compact interval
Definition
Let and let be a continuously differentiable function with . Its cumulative point-density coordinate is
The integrals here are the ordinary Riemann integrals of continuous functions. The supplier Every continuous function on an interval has a primitive; two primitives differ by a constant; and for any primitive guarantees that they are defined and that is a primitive of .
Finite measurable squared-error quantizer and nearest-center rule
Definition
Let , let be Borel, and give the relative Borel sigma algebra . Let be a probability measure on with , and let be reproduction points, where . A finite squared-error quantizer is a measurable map , with the finite index set given its discrete sigma algebra; its reproduction at is and its distortion is
This is the expected single-letter distortion of Single-letter and block distortion for the measurable distortion . For a fixed ordered center tuple , the nearest-center rule assigns to the least index minimizing . Its cell at index is
The convention assigns every tie to the smallest index. A general finite measurable quantizer need not use this nearest-center partition; in particular, a compander partition below is specified by its own interval boundaries. When , this is the ordinary full-domain nearest-center quantizer.
A positive C1 point density has a C2 cumulative inverse
Statement
Let and let be with , and let be as in Cumulative coordinate of a point density on a compact interval. Then is a strictly increasing bijection from onto . Its inverse is (with one-sided derivatives at the endpoints), and
Facts & Assumptions
Given: A nondegenerate compact interval and a positive normalized function .
Every continuous function on an interval has a primitive; two primitives differ by a constant; and for any primitive : a continuous function on an interval has a primitive , with and .
The mean value theorem, as the case of Cauchy's: for continuous on with and differentiable on there is with : if a real function is continuous on and differentiable on , then for some interior .
Intermediate value theorem, by bisection with a canonical left-half rule: a continuous function on takes every value between and : a continuous real function on a closed interval takes every value between its endpoint values.
Sums, scalar multiples, products and quotients: , , , and when : sums, products and quotients of differentiable real functions obey the corresponding derivative rules when the quotient denominator is nonzero.
The chain rule for total derivatives: : the derivative of a composition of differentiable maps between Euclidean spaces is the composition of their derivatives.
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value: a continuous real-valued function on a nonempty compact metric space is bounded and attains a minimum.
Proof
By [F2], is continuous and on , so it is because is ; also and by [F1]. Since is positive and continuous on compact , [F7] gives a positive minimum, and in particular at every interior point.
For in , [F3] applied to gives . Thus is strictly increasing; [F4] and step 1.1 show its image is all of . Strict increase makes each preimage unique, so an inverse exists.
Fix and set . For put and . At least one of and holds because . Whenever or , strict increase gives respectively or . Choose smaller than each of the positive margins that exists. For with , monotonicity gives ; at a missing margin or , the domain endpoint supplies that inequality. Hence , proving continuity of .
Fix , let , and for nonzero with let . Continuity from step 3.1 gives , and injectivity gives . By [F3], for some between and , . As , and , so . The same one-sided quotient argument applies at .
The formula for is continuous on because is continuous and positive. Differentiating it on using [F5] and [F6] gives . The right-hand side extends continuously to because and are continuous and the denominator stays positive. Applying [F3] to on intervals with an endpoint at or shows its one-sided difference quotient tends to that continuous extension. Together with step 4.1, this proves the stated regularity and formulas.
The finite nearest-center quantizer is Borel with finite distortion
Statement
Let be Borel, let be a Borel probability measure on with finite second moment, and let satisfy the hypotheses of Finite measurable squared-error quantizer and nearest-center rule. The least-index nearest-center rule defines a Borel quantizer on , and its distortion is finite. Coincident centers and empty cells are allowed.
Facts & Assumptions
Given: Integers , a Borel subset , a Borel probability measure on with finite second moment, and finite centers .
Finite measurable squared-error quantizer and nearest-center rule: the nearest-center cell is the Borel domain intersected with strict inequalities against lower indices and non-strict inequalities against higher indices; distortion is the integral of squared Euclidean error.
Proof
For fixed , the difference is a continuous polynomial in the coordinates of . Therefore its strict-negative set is open and its nonpositive set is closed; the finite intersections defining each in [F1] are Borel.
The finite list of distances has a minimum at each , and the least minimizing index is unique. The tie inequalities in [F1] therefore make the cells a disjoint partition of ; the inverse image of each singleton index is relatively Borel by step 1.1, so the finite-valued index map is Borel.
For each coordinate, , since . Summing coordinates and integrating over the partition gives , so the distortion is well-defined and finite.
Positive C1 compact one-dimensional compander
Definition
Let . Let be probability densities, so . Write for Cumulative coordinate of a point density on a compact interval and for the inverse established by A positive C1 point density has a C2 cumulative inverse. For each integer , define boundaries
and reproduction points
The cells are for and for . The compander quantizer maps every point in cell to . It is a finite measurable quantizer in the sense of Finite measurable squared-error quantizer and nearest-center rule, with source law of density on and squared-error distortion
Its cells are uniform in the cumulative coordinate of ; the definition does not assert that they are nearest-center cells in the original coordinate. Since the source is supported on the fixed compact interval and the cells cover it, there is no overload region in this model.
Exact finite-data Lloyd quantizer
Definition
Input: integers , indexed data , exact positive weights with , and an ordered initial center tuple . At each pass :
- Assign index to the least minimizing . Let be the indices assigned to .
- If , set . If , set .
- If coordinatewise, return and the assignments from this pass. Otherwise begin the next pass with .
All distance comparisons and arithmetic are exact. Rational input coordinates, weights and initial centers give a rational implementation using exact rational operations. For arbitrary real data this is an exact-real operation model; no bit-complexity claim is part of the procedure.
Exhaustive global empirical squared-error quantizer
Definition
Input: integers , indexed data , and exact positive weights with . Enumerate all assignments in lexicographic order. For each assignment, let . For a nonempty set
for an empty set . Compute the exact assigned cost . Retain the first assignment with minimal cost and its center tuple. Return that tuple together with the least-index nearest-center assignment for it. The finite enumeration, tie rule and empty-cluster convention are part of the algorithm.
The compact compander is a measurable finite quantizer
Statement
For the data in Positive C1 compact one-dimensional compander, every cell is Borel, the cells partition , the index map is measurable, and is finite for each .
Facts & Assumptions
Given: , positive normalized densities on , and an integer .
Positive C1 compact one-dimensional compander: are the cell boundaries, are the reproduction points, and the cells are half-open except for the final cell containing .
A positive C1 point density has a C2 cumulative inverse: is a strictly increasing bijection from to .
Finite measurable squared-error quantizer and nearest-center rule: a finite quantizer is a Borel map into a finite discrete index set and its distortion is the integral of squared reconstruction error.
Proof
The boundary sequence is strictly increasing by [F2], with and . Thus the intervals in [F1] are pairwise disjoint Borel sets whose union is .
Each index preimage is one of those Borel intervals, so the finite-valued index map is Borel and defines a quantizer as in [F3]. Each reproduction point lies in by [F1] and [F2], so on cell ; hence .
Exact finite-data Lloyd descent and finite termination
Statement
For indexed points in with positive normalized weights, centers, and any initial center tuple, the exact algorithm of Exact finite-data Lloyd quantizer terminates after at most assignment/update passes. Every pass that changes a center strictly decreases the empirical squared-error distortion; at termination, the returned assignment is nearest-center and each nonempty cluster center is its weighted centroid. Each pass uses exact arithmetic and comparisons, so the crude total operation bound is . The conclusion is a fixed point, not a global-optimality claim.
Facts & Assumptions
Given: , points , weights with sum one, and initial centers ; all comparisons and arithmetic are exact.
Exact finite-data Lloyd quantizer: each pass assigns each point to its least-index nearest center, replaces every nonempty cluster center by its weighted centroid, leaves every empty-cluster center unchanged, and stops when the center tuple is unchanged.
The weighted centroid minimizes finite-cluster squared error: for a nonempty cluster of weight and centroid , its cost at center is its cost at plus .
Put , a finite Borel subset of , and let on , where is unit point mass at . This is a probability measure on the relative Borel sigma algebra of with finite second moment . For an ordered center tuple , let be its least-index nearest-center rule. Each fiber is Borel because is finite, so Finite measurable squared-error quantizer and nearest-center rule gives
Proof
At pass , the assignments in [F1] minimize each point's squared distance for the fixed tuple , so their assigned cost is exactly from [F3].
Replacing the centers by cluster centroids changes the assigned cost by subtracting , by [F2]; empty clusters contribute no cost and their centers are unchanged by [F1]. If any center changes, one nonempty-cluster term is positive. Reassigning to nearest centers cannot increase cost, so .
Every center value occurring in the iteration is either its own initial value or the centroid of one of the at most nonempty indexed subsets of the data; thus each center has at most possible values and there are at most possible ordered center tuples.
A changed pass cannot revisit a previous center tuple, because is a function of that tuple and strictly decreases at every changed pass by step 1.2. Hence at most passes change the tuple; the next pass leaves it unchanged and the algorithm stops, for at most passes.
At the stopping pass, the tuple is unchanged. The deterministic nearest-center rule therefore gives the same assignments on the next evaluation, and the update formula in [F1] already made every nonempty center its assigned centroid. Thus the returned pair is an assignment/centroid fixed point.
One pass evaluates squared distances in coordinates and performs at most accumulation/update work, which is since . Multiplying by the pass bound gives exact operations; this exponential bound makes no polynomial-time claim.
Exhaustive empirical search attains a global quantizer
Statement
For every finite indexed data set with and positive normalized weights, the algorithm of Exhaustive global empirical squared-error quantizer terminates after checking exactly assignments and returns a nearest-center quantizer whose empirical squared-error distortion is no greater than that of any -center tuple. Its exact arithmetic operation count is ; this is an exponential exhaustive procedure, not a polynomial-time claim.
Facts & Assumptions
Given: , points , weights summing to one, and exact arithmetic and comparisons.
Exhaustive global empirical squared-error quantizer: the procedure checks every ordered assignment, uses a weighted centroid for each nonempty cluster and for each empty cluster, retains a minimum-cost assignment, then reassigns points to least-index nearest centers.
The weighted centroid minimizes finite-cluster squared error: replacing any cluster center by its weighted centroid cannot increase its assigned squared-error cost.
Put , a finite Borel subset of , and let on , where is unit point mass at . This is a probability measure on the relative Borel sigma algebra of with finite second moment . For an ordered center tuple , let be its least-index nearest-center rule. Each fiber is Borel because is finite, so Finite measurable squared-error quantizer and nearest-center rule gives
Proof
The assignment set has exactly elements, so the finite ordered loop in [F1] terminates and retains an assignment of minimum centroid-adjusted assigned cost .
Fix any center tuple and assign each point to its least-index nearest center, obtaining . By [F2], the centroid-adjusted cost of this assignment is at most its cost at , so by [F3].
Let be the tuple retained for . Reassigning to nearest centers cannot increase its cost, hence . Step 1.2 gives for every , in particular ; therefore and for every -center tuple. The returned tuple is globally minimizing.
Each of the assignments can be grouped, centered and costed in exact operations; the final nearest reassignment costs , which is bounded by for . This proves the stated operation count without a bit-complexity claim.
Exact high-rate limit for a positive compact one-dimensional compander
Statement
Let and let be probability densities. For the compander of Positive C1 compact one-dimensional compander, the distortions satisfy
This is an exact limit for the specified compact construction. It assumes neither an unbounded source nor negligible overload, and it makes no claim about unrestricted optimal quantizers or dimensions greater than one.
Facts & Assumptions
Given: A fixed interval with and positive normalized densities .
Positive C1 compact one-dimensional compander: with , the cells have cumulative-coordinate endpoints , reproduction points are , and is the integral of squared error against density on .
A positive C1 point density has a C2 cumulative inverse: is an increasing bijection, and , including continuous endpoint extensions.
The compact compander is a measurable finite quantizer: the cells are Borel and is finite for each .
Every continuous function on an interval has a primitive; two primitives differ by a constant; and for any primitive : a continuous real function on an interval has the primitive , with , and the integral of a continuous derivative equals the endpoint difference.
The chain rule for total derivatives: : the derivative of a composition of differentiable Euclidean maps is the composition of their derivatives.
Sums, scalar multiples, products and quotients: , , , and when : differentiable real functions obey the product and quotient rules where the denominator is nonzero.
The mean value theorem, as the case of Cauchy's: for continuous on with and differentiable on there is with : for a function continuous on a closed interval and differentiable in its interior, its endpoint increment equals an interior derivative times the interval length.
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value: every continuous real function on a nonempty compact metric space is bounded and attains its maximum and minimum.
Heine-Cantor: a continuous map from a compact metric space to any metric space is uniformly continuous: a continuous map on a compact metric space is uniformly continuous.
Proof
Put , , and . For , its primitive satisfies by [F4]. The chain rule [F5] applied to on , followed by endpoint evaluation using [F4], gives , because [F2] gives and [F1] gives the reproduction point . The distortion is well-defined by [F3].
By the chain rule [F5] and quotient rule [F6], is ; the functions , , and are continuous on compact , so [F8] gives finite bounds , , , and , independent of . If and , [F7] applied to and , together with [F4], gives and . Expanding the square therefore bounds the absolute difference under consideration by . Since , this is at most for , which is independent of .
On , direct integration gives and . Thus step 1.2 gives with , where .
Multiplying by gives , with . By [F9], is uniformly continuous on . Given , choose such that whenever . Let ; [F4] gives and . For with , the mean value theorem [F7] on each gives with . Since , telescoping gives . Thus the midpoint sums converge to .
Let . The integrand is continuous because is positive on the compact interval, so [F4] gives . By [F5] and [F2], . Evaluating this primitive at by [F4], using and , gives .
Steps 3.1 and 3.2 identify the limit of with the displayed integral, proving the theorem.
Optimal point density within the compact compander class
Statement
Fix and a positive normalized source density on . Among all positive normalized point densities used in Positive C1 compact one-dimensional compander, the asymptotic coefficient from Exact high-rate limit for a positive compact one-dimensional compander is uniquely minimized by
and the minimum limit is
This is optimality within the stated compact compander class, not unrestricted scalar or vector quantizer optimality.
Facts & Assumptions
Given: and a positive normalized density on .
Positive C1 compact one-dimensional compander: an admissible point density is positive, normalized, and on the same compact interval.
Exact high-rate limit for a positive compact one-dimensional compander: the asymptotic coefficient for is .
Real powers for positive bases, with the zero-base positive-exponent convention and Continuity and derivatives of positive-base real powers: for positive input, is defined as the positive real power and is with derivative .
Every continuous function on an interval has a primitive; two primitives differ by a constant; and for any primitive : every continuous integrand on has a finite Riemann integral.
The chain rule for total derivatives: : the derivative of a composition of differentiable Euclidean maps is the composition of their derivatives.
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value: a continuous real function on compact is bounded and attains its extrema.
Proof
Set , , and . Positivity and continuity on compact make finite and strictly positive by [F3], [F4] and [F6]. Using , direct cancellation gives and .
For each , by the positive real-power convention [F3]. Multiply by and integrate; step 1.1 and give , hence .
Equality makes the integral of against equal , by step 1.1. By [F3] the root is positive; by [F6], has a positive minimum. If the continuous integrand were positive at any point, it would be bounded below by a positive number on a one-sided or two-sided interval of positive length, so that integral would be positive. Therefore the integrand vanishes everywhere, and its factorization gives and on .
Step 3.1 gives ; integrating and using gives , hence . Conversely, [F3] and [F5] show is positive and , so is an admissible positive normalized density; direct substitution gives . Thus is the unique minimizer of the coefficient in [F2], with minimum .
5 · Examples, counterexamples and false statements
None yet.