ReLU approximation on compact sets (nD) #
Key theorems proved in this file:
approxOnC_of_mem_coordSubalg: every coordinate-polynomial (coordSubalg) on a compact setKis uniformly approximable by a 2-layer ReLU MLP (in the senseApproxOnC).relu_universal_approximation_compact: for compactKand anyf : C(K,ℝ),fis uniformly approximable onKby a 2-layer ReLU MLP.
Dependencies:
NN.MLTheory.Proofs.Approximation.Universal.UniversalApproximation(constructive 1D ReLU approximation).NN.MLTheory.Proofs.Approximation.Universal.UniversalApproximationND(Stone–Weierstrass density of coordinate polynomials on compact sets of tensor vectors).NN.MLTheory.Proofs.ReLU.Bridge.ReLUMlpBridge(lifting 1D MLP constructions toTensorVec n).
ApproxOn D f means: on the domain D, the scalar function f can be uniformly approximated
by a single-hidden-layer ReLU MLP (mlp_eval_nd).
Instances For
The zero function is uniformly approximable on any domain D.
If f and g are uniformly approximable on D, then so is f + g.
If f is uniformly approximable on D, then so is the scalar multiple c • f.
ApproxOnC K f means: the continuous map f : C(K,ℝ) can be uniformly approximated (on K)
by a single-hidden-layer ReLU MLP (mlp_eval_nd, evaluated on the underlying point x.1).
Instances For
Closure properties #
The zero continuous function is uniformly approximable on K.
Identify the Stone–Weierstrass coordinate subalgebra with the range of multivariate-polynomial evaluation.
This is a small algebraic normalization lemma used to connect coordinate polynomials to
MvPolynomial syntax (aeval).
Sign associated to a Boolean: true ↦ +1, false ↦ -1.
Instances For
The “sign cancellation coefficient” associated to a map p : Fin d → Fin d.
This is the coefficient that appears when expanding the polarization sum and swapping the order
of summation: it measures how many sign assignments ε survive after cancellations.
Instances For
Polarization identity #
Polarization identity for products (algebraic form).
The signed sum of d-th powers isolates the full product ∏ i, u i, up to the constant
2^d * d!.
Compact domains: boxes and linear forms #
The box [-M,M]^n as a subset of TensorVec n.
Instances For
A coordinate of x ∈ boxN n M lies in the interval [-M, M].
Linearity of dot in the weight argument: dot (w1+w2) = dot w1 + dot w2.
Negation compatibility for dot: dot (-w) = - dot w.
dot (e_i + e_j) x = x_i + x_j for TensorVec coordinates.
dot (e_i - e_j) x = x_i - x_j for TensorVec coordinates.
If x ∈ [-M,M]^n, then x_i + x_j ∈ [-2M, 2M].
If x ∈ [-M,M]^n, then x_i - x_j ∈ [-2M, 2M].
Coordinate multiplication is uniformly approximable on the box [-M,M]^n.
More precisely: for fixed indices i,j : Fin n, the function x ↦ x_i * x_j can be uniformly
approximated on boxN n M by a single-hidden-layer ReLU MLP.
Lipschitz bound for the power function on a bounded interval.
For x,y ∈ [-R,R], the map u ↦ u^d is Lipschitz with constant d * R^(d-1) (with the
convention that the d=0 case is constant).
Uniform approximation of the power function on a bounded interval by a 1D ReLU MLP.
This packages the 1D Lipschitz ReLU approximation theorem for the specific function
x ↦ x^d on [-R,R].
Evaluate linFormC as the dot product w ⋅ x on the underlying tensor vector.
Uniform approximation of the continuous function x ↦ (w ⋅ x)^d on K by a 2-layer ReLU MLP.
dot (wSigned idx ε) x computes the signed sum of the selected coordinates of x.
Uniform approximation of a coordinate-product monomial on a compact set.
For a fixed index map idx : Fin d → Fin n, the function
x ↦ ∏ i, x_{idx i} (expressed as a product of coordinate maps on K) is uniformly approximable
by a 2-layer ReLU MLP.
Uniform approximation of a coordinate-product over an arbitrary finite index type.
This is a reindexed form of approx_coordProd_fin, using an equivalence ι ≃ Fin d.
Re-express a fintype product over a multiset as the corresponding multiset product.
Re-express a Finsupp exponent-vector product as a product over toMultiset.
This is a small bookkeeping lemma: d.prod (fun a n => (g a)^n) is the same as multiplying g a
once for each occurrence of a in the multiset d.toMultiset.
Uniform approximation for an evaluated coordinate monomial aeval (monomial d r) on K.
Uniform approximation of a coordinate polynomial aeval coord p on a compact set K.
Bridge lemma: elements of the Stone–Weierstrass coordinate subalgebra are ApproxOnC-approximable.
This packages the facts that:
coordSubalgis the range ofMvPolynomial.aeval coord, and- coordinate polynomials are approximable by ReLU MLPs (previous section).
ReLU universal approximation on compact sets (nD).
For compact K and any continuous f : C(K,ℝ), f is uniformly approximable on K by a
single-hidden-layer ReLU MLP, in the ApproxOnC sense.
Two compatibility forms for two-dimensional multiplication #
Compatibility theorem for the standalone 2D multiplication construction from ReLUMulApprox.
The n-dimensional development below subsumes this result, but keeping this theorem name gives downstream files a stable import point for the classical two-coordinate multiplication statement.
The same 2D multiplication guarantee derived from the nD coordinate-product theorem.
This theorem is a cross-check between the specialized two-dimensional construction and the general coordinate-product approximation pipeline used by the compact-set theorem.