On this page
gaussian/
The measurable structure and the norm of real matrices, Lebesgue measure and the standard Gaussian measure on 'rV[R]_n, marginals and Fubini, moments, Gaussian integration by parts (Stein's identity) in one and several dimensions, differentiability from continuous partial derivatives, continuity of parameter integrals, Gaussian interpolation between two covariances.
Guide
Written for this documentation from the sources and the README, and checked against the Rocq statements. The file headers and the statements are the reference.
This directory builds Gaussian analysis on row vectors. It defines a measurable structure on matrices, the standard Gaussian measure gauss n and Lebesgue measure lebesgue_rV n on 'rV[R]_n, and proves the calculus the rest of the library relies on: Fubini, marginals, moments, Gaussian integration by parts and interpolation.
It starts from MathComp-Analysis's normal law normal_prob m s and its product measures. A matrix carries the sigma-algebra generated by its entries, and gauss n and lebesgue_rV n are built one coordinate at a time. Vectors are rows and matrices act on the right: if x has law gauss n, then x *m A has covariance A^T *m A.
Conventions: |x| is MathComp's norm, the largest absolute value of an entry; frobenius (matrix/) is the Euclidean norm. Polynomial growth means |F x| <= C (1 + |x|^k) everywhere. The partial derivative d_i F is the derivative along delta_mx 0 i.
Reading order
measurable_matrix.v: the sigma-algebra of matrices, uniqueness of measures from boxes, and the max-entry norm.normal_integral.v: integrals against normal_prob m s through its density, and integrability of polynomially growing functions against normal_prob 0 1.parameter_integral.v: continuity of an integral depending on a parameter in a pseudometric space.gauss.v: the measuregaussn, boxes, Fubini, permutations, blocks and coordinates.gauss_ibp.v: Stein's identity and Gaussian integration by parts of orders one and two.gauss_moments.v: moments of the normal law, and covariances undergaussn.partial_derivative.v: continuous partial derivatives imply differentiability.gauss_interpolation.v: Gaussian interpolation along a path of matrices, and Kahane's comparison inequality.lebesgue_rV.v: Lebesgue measure on 'rV[R]_n, its invariances, the density ofgaussn and the volume of balls.
Core definitions
mxbox(measurable_matrix.v): the matrices M with M i j in A i j for all i, j. The boxes with measurable sides,mxboxes, generate the sigma-algebra.rV_cons(gauss.v): the vector of size n.+1 with first coordinate p.1, followed by the coordinates of p.2.gauss(gauss.v): the standard Gaussian probability on 'rV[R]_n, by recursion on n: gauss n.+1 is the image of normal_prob 0 1 \x gauss n underrV_cons(gaussS).lebesgue_rV(lebesgue_rV.v): Lebesgue measure on 'rV[R]_n, a sigma-finite measure built asgaussis (lebesgue_rV_rec).gauss_pdf(lebesgue_rV.v): (2 pi)^(-n/2) exp (- mxdot x x / 2), the density ofgaussn againstlebesgue_rVn.
Main results
Matrices.
measurable_fun_mxP: a map into matrices is measurable if and only if each entry is.continuous_measurable_mx: a continuous real function of a matrix is measurable.measure_rowbox_unique,measure_mxbox_unique: two measures on row vectors, or on matrices, that agree on the boxes with measurable sides, the first of finite mass, agree on all measurable sets.
The normal law and gauss n.
integral_normal_prob: the integral of an integrable f against normal_prob m s is the Lebesgue integral of f normal_pdf m s.integrable_gauss_poly: measurable functions of polynomial growth are integrable againstgaussn.gauss_box,gauss_unique: the box with measurable sides A i has measure \prod_i normal_prob 0 1 (A i), and this characterizesgaussn.integral_gauss_consis Fubini for the first coordinate.gauss_row_mx,gauss_lsubmx,gauss_col_perm,gauss_coord: gauss (n + m) is the image of gauss n \x gauss m under row_mx and its first block has lawgaussn;gaussn is invariant under permutations of the coordinates, and each coordinate has law normal_prob 0 1.gauss_cov,gauss_mulmx_cov,normal_moment_even: E[x_i x_j] is 1 if i = j and 0 otherwise, E[(x A)_j (x A)_l] = (A^T A)_(j, l), and E[X^(2k)] = 1 * 3 * ... * (2k - 1) for X of law normal_prob 0 1.
Integration by parts.
normal_ibp: E[X f(X)] = E[f'(X)] for X of law normal_prob 0 1, when f has the derivative f' everywhere, f' is continuous, and f and f' have polynomial growth.gauss_ibp: E[x_i F(x)] = E[dF(x)] undergaussn, when dF is the derivative of F along delta_mx 0 i everywhere, and F and dF are continuous and of polynomial growth.gauss_ibp_lineonly needs F and dF measurable and dF continuous along the lines parallel to the i-th axis.gauss_ibp2: E[(x_i^2 - 1) F(x)] = E[d2F(x)] for F measurable with derivatives dF and d2F along delta_mx 0 i, d2F continuous, all three of polynomial growth; dF need not be continuous.
Interpolation. Here x has law gauss n, F : 'rV[R]_k -> R and its partial derivatives d_j F are differentiable, the d_l d_j F are continuous, and all are bounded by one C (1 + |z|^p).
gauss_interpolation: if M has the derivative M' on an open interval, with |M s| <= K and |M' s| <= K there, then on that interval the derivative of t |-> E[F(x *m M t)] is \sum_(j, l) ((M' t)^T *m M t)_(j, l) E[d_l d_j F(x *m M t)].gauss_comparison: Kahane's inequality. If \sum_(j, l) (A^T A - B^T B)_(j, l) d_l d_j F z <= 0 for every z, then E[F(x *m A)] <= E[F(y *m B)] for y of lawgaussm.
Lebesgue measure.
lebesgue_rV_box,lebesgue_rV_unique: a box with measurable sides A i has measure \prod_i lebesgue_measure (A i), and this characterizeslebesgue_rVn.lebesgue_rV_shift,lebesgue_rV_col_perm,lebesgue_rV_scale: invariance under translations and permutations, and the factor |a|^-n for preimages under x |-> a x, a nonzero.integral_gauss_pdf: E[f(x)] = \int f(x) gauss_pdf x dx againstlebesgue_rVn, for f integrable againstgaussn.lebesgue_rV_ball_le: for r > 0, the closed ball [set x | frobenius (x - z) <= r] has measure at most (sqrt (2 pi e / n) r)^n.
How the proofs go
gauss_uniquefollows frommeasure_rowbox_uniqueandgauss_box: the boxes generate the sigma-algebra and are closed under intersection.normal_ibpintegrates (f phi)' over [-(n+1), n+1], phi the normal density; the boundary terms tend to 0.gauss_ibp_linemoves coordinate i first by a transposition and appliesnormal_ibpto it inside Fubini;gauss_ibp2appliesgauss_ibp_lineto dF and to x_i F.gauss_comparisonappliesgauss_interpolationto the path col_mx (cos t *: A) (sin t *: B) on [0, pi / 2], whose ends give x *m A and y *m B, x and y the two blocks of a vector of law gauss (n + m).
Connections
- Requires MathComp and MathComp-Analysis. Only
lebesgue_rV.vrequires other directories:matrix/andeuclidean.v comparison/.normal_linear.v - Every other library directory requires it. comparison/ builds its comparison inequalities on
gauss_interpolation.v; fourier/, random_matrix/, probability/, matrix/ and convex/ requiregauss.vormeasurable_matrix.v. In applications/, the matrix series, GOE edge, SK gap and perceptron targets requiregauss.v. theories/ and extension/ use it too.
Files
| File | Title | Lines | Lemmas | Defs | Requires in this directory |
|---|---|---|---|---|---|
| measurable_matrix.v | Measurable structure on matrices | 500 | 36 | 3 | none |
| normal_integral.v | Integrals against the normal law | 175 | 6 | 0 | none |
| gauss.v | The standard Gaussian measure on row vectors | 519 | 28 | 2 | measurable_matrix, normal_integral |
| gauss_ibp.v | Gaussian integration by parts | 541 | 16 | 0 | measurable_matrix, normal_integral, gauss |
| gauss_moments.v | Moments of the standard Gaussian measures | 162 | 7 | 0 | measurable_matrix, normal_integral, gauss, gauss_ibp |
| partial_derivative.v | Continuous partial derivatives | 173 | 11 | 1 | measurable_matrix, gauss_ibp |
| parameter_integral.v | Continuity of a parameter integral | 99 | 2 | 0 | none |
| gauss_interpolation.v | Gaussian interpolation and Kahane's comparison inequality | 545 | 12 | 0 | measurable_matrix, gauss, gauss_ibp, partial_derivative |
| lebesgue_rV.v | Lebesgue measure on row vectors | 923 | 38 | 4 | measurable_matrix, normal_integral, gauss |
Table of main results39 rows of the README
| File | Results | Statement | Used by theories/ |
|---|---|---|---|
| measurable_ | A map into 'M[T]_(m, n) is measurable if and only if each of its entries is. Matrices carry the sigma-algebra generated by their entries. | Gaussian/ | |
| Two measures on matrices (or row vectors) that agree on the boxes with measurable sides, the first of them finite, agree on every measurable set. | through gauss_unique | ||
A continuous real function of a real matrix is measurable: the open sets of 'M[R]_(m, n) are measurable. | Gaussian/ | ||
For the norm of a real matrix: every entry is bounded by the norm, |A B| <= n |A| |B| when A has n columns, |col_mx P Q| <= |P| + |Q|, and permuting the columns does not increase the norm. | Gaussian/ | ||
| A map into real matrices is continuous if each of its entries is, and the matrix product is continuous in each factor. | |||
| normal_ | Integrating against normal_prob m s is integrating against Lebesgue measure with the density normal_pdf m s, for nonnegative or integrable functions. | ||
Every power |x|^k, hence every measurable function bounded by C (1 + |x|^k), is integrable against the standard normal law. | |||
| gauss.v | gauss n, the standard Gaussian measure on 'rV[R]_n: the law of n independent standard normal coordinates, a probability. | Gaussian/, Gaussian/, Gaussian/, Gaussian/, Projected/ | |
gauss n gives the box with sides A i the measure \prod_i normal_prob 0 1 (A i), and it is the only measure on 'rV[R]_n that does. | Gaussian/ | ||
Fubini for the first coordinate: the integral against gauss n.+1 is the iterated integral against normal_prob 0 1 and gauss n, and integrability against gauss n.+1 is integrability against the product of the two. | Gaussian/, for Gaussian/ | ||
Independent blocks: the image of gauss n \x gauss m under (x, y) |-> row_mx x y is gauss (n + m). | |||
gauss n, and the integral of every integrable function against it, are invariant under permutations of the coordinates. | Gaussian/, for Gaussian/ | ||
Marginals of the blocks: if x has law gauss (n + m), then lsubmx x has law gauss n and rsubmx x has law gauss m. | |||
If nu is the image of the measure mu under a measurable g, then \int[mu] f (g x) = \int[nu] f y for every nu-integrable f. | |||
Each coordinate of a vector of law gauss n has law normal_prob 0 1. | |||
Independent coordinates: the integral of \prod_i f i (x 0 i) against gauss n is \prod_i of the integrals of f i against normal_prob 0 1, for nonnegative measurable f i. | |||
Every measurable function bounded by C (1 + |x|^k) is integrable against gauss n. The constant of such a bound is nonnegative, and multiplying the function by a coordinate raises k by one and doubles C. | Gaussian/ | ||
| gauss_ | Stein's identity: E[X f(X)] = E[f'(X)] for X of law normal_prob 0 1 and f differentiable with a continuous derivative, f and f' of polynomial growth. | ||
Gaussian integration by parts: E[x_i F(x)] = E[d_i F(x)] for x of law gauss n, F continuous with a continuous partial derivative d_i F (along delta_mx 0 i), both of polynomial growth. | Gaussian/, for Gaussian/ | ||
The same identity when F and d_i F are only measurable and d_i F is continuous along the lines parallel to the i-th axis. | |||
If a measurable function on 'rV[R]_n has at every point x a derivative dF x along a fixed vector v, then dF is measurable. | |||
Gaussian integration by parts of order two: E[(x_i^2 - 1) F(x)] = E[d_i d_i F(x)] for x of law gauss n, F measurable, d_i d_i F continuous, and F, d_i F and d_i d_i F of polynomial growth; d_i F need not be continuous. | Gaussian/, for Gaussian/ | ||
If F i increases to U and g is integrable on U, the integrals of g over F i converge to its integral over U. | |||
| gauss_ | Moments of the standard normal law: E[X^(k+2)] = (k + 1) E[X^k], so the odd moments vanish and E[X^(2k)] = 1 * 3 * ... * (2k - 1). | ||
A vector x of law gauss n has mean 0 and covariance the identity, and x *m A has covariance A^T *m A. | |||
| partial_ | A function on 'rV[R]_n whose partial derivatives exist everywhere and are continuous is differentiable, with differential v |-> \sum_j v_j d_j F x. | ||
| parameter_ | Sequential criterion for a limit at a point x0 of a pseudometric space: f x tends to l as x tends to x0 as soon as f (u n) tends to l for every sequence u that tends to x0. | ||
Continuity of a parameter integral at a point x0 of a pseudometric space: if f x y is continuous in x at x0 for every y in B, and bounded by an integrable g y for x near x0, then x |-> \int_B f x y dmu(y) is continuous at x0. MathComp-Analysis states this for a real parameter in an open interval. | Gaussian/, for Gaussian/ | ||
| gauss_ | Integration by parts through a linear map: E[x_i d_j F (x *m M)] = \sum_l M_(i, l) E[d_l d_j F (x *m M)]. | ||
Gaussian interpolation: let x have law gauss n, let the path of matrices M t be differentiable on an open interval with derivative M' t, with |M t| <= K and |M' t| <= K on the interval, and let F be of class C^2 with F and its partial derivatives of order 1 and 2 all bounded by one C (1 + |z|^p). Then at every t of the interval the derivative of t |-> E[F (x *m M t)] is \sum_(j, l) ((M' t)^T M t)_(j, l) E[d_l d_j F (x *m M t)]. | |||
Kahane's comparison inequality, for F of class C^2 with the same growth hypothesis: if \sum_(j, l) (A^T A - B^T B)_(j, l) d_l d_j F <= 0 everywhere, then E[F (x *m A)] <= E[F (y *m B)] for x of law gauss n and y of law gauss m. | |||
The same comparison for F given by its partial derivatives of order 1 and 2, those of order 2 continuous. | |||
| lebesgue_ | lebesgue_rV n, Lebesgue measure on 'rV[R]_n, a sigma-finite measure built as gauss n is. A box with measurable sides A i has measure \prod_i lebesgue_measure (A i), and every measure on 'rV[R]_n that gives the boxes these values agrees with lebesgue_rV n on all measurable sets. | ||
Fubini: the integral against lebesgue_rV n.+1 is the iterated integral over the first coordinate and the others, and the integral against lebesgue_rV (n + m) is the iterated integral over the blocks x and y of row_mx x y, for nonnegative measurable or for integrable functions. The integral of \prod_i f i (x_i) is \prod_i of the integrals of the f i against Lebesgue measure. | |||
lebesgue_rV n is invariant under translations and permutations of the coordinates, and the preimage of X under x |-> a x, a != 0, has measure |a|^-n times that of X; the same for integrals (\int f (a x) dx = |a|^-n \int f), for nonnegative measurable and for integrable f. | |||
If the preimage of every box under a measurable phi has c > 0 times the measure of the box, then so has the preimage of every measurable set, and \int f (phi x) dx = c \int f. | |||
gauss n has the density gauss_pdf x = (2 pi)^(-n/2) exp (- mxdot x x / 2) with respect to lebesgue_rV n: E[f(x)] = \int f gauss_pdf, and \int f = E[f(x) / gauss_pdf x]. | |||
\int exp (- mxdot (x - z) (x - z) / (2 s^2)) dx = (sqrt (2 pi) s)^n over 'rV[R]_n, for s > 0. | |||
The closed Euclidean ball [set x | frobenius (x - z) <= r] of 'rV[R]_n, r > 0, has measure at most (sqrt (2 pi e / n) r)^n. |