Each result cited is universally quantified over the data in its own statement, and is applied to the data named here.
Conventions used throughout. Transitivity of ≤ on R is used freely: if a≤b and b≤c then 0≤b−a and 0≤c−b by claim 3 of Elementary Arithmetic in an Ordered Field, hence 0≤(b−a)+(c−b)=c−a by claim 2 of that lemma and the field axioms, hence a≤c by claim 3 again. Each induction below is over the natural numbers, bounded by a natural number r, and is carried out by applying Principle of Induction for the Natural Numbers to the set T of natural numbers j such that either r<j, or j≤r and the asserted property holds at j; by claim 3 of Properties of the Order on the Natural Numbers every natural number satisfies exactly one of j≤r and r<j, so T=N gives the property at every j∈[r]. By Finite Product Notation in a Field a finite product ∏k=1jak is determined by the map k↦ak on the initial segment it is formed over, so two such products agree as soon as the two maps agree; this is used below without further comment. In the successor step one may assume S(j)≤r, and then j≤r: indeed j<S(j) by claim 5 of Properties of the Order on the Natural Numbers, so either S(j)=r and j<r, or S(j)<r and j<r by the transitivity of the strict order in claim 1 of that lemma; in both cases j≤r by claim 1 of that lemma.
Notation. For a natural number l with 1≤l we write Bl for the σ-algebra on Rl and λl for the measure on it built in claim 1 of Finite Products of Lebesgue Measure and Coordinate Integration on Rl, together with the identification of Rl with Rl−1×R made there for l≥2; in particular B1=B(R) and λ1=λ under the identification of R1 with R. By Lebesgue Measure on Rn, Bn=B(Rn) and λn is Lebesgue measure on Rn; consequently (Q,BQ,λQ) is, as recorded in The Flat Torus: Standing Notation (iii), the restriction of (Rn,Bn,λn) to Q in the sense of claim 1 of Assembly of Measure Spaces: Restriction, Transport, One-Point Spaces, and Countable Disjoint Unions.
For i∈[n] let g^i:R→R be the map equal to gi on J and to 0 at every point of R outside J. For natural numbers l,j with 1≤l≤n and j∈[l] define
Pl,j:Rl→R,Pl,j(θ)=k=1∏jg^k(θk),
the product being that of Finite Product Notation in a Field formed for the map k↦g^k(θk) on [j], and put Hl=Pl,l. For k∈[l] let πk:Rl→R be the kth coordinate projection, πk(θ)=θk.
Claim 1. (Zero extension of a real-valued function.) Let (X,F,μ) be a measure space, let X0∈F, and let (X0,F∣X0,μ∣X0) be its restriction as in claim 1 of Assembly of Measure Spaces: Restriction, Transport, One-Point Spaces, and Countable Disjoint Unions. Let f:X0→R and let f~:X→R be the map equal to f on X0 and to 0 off X0. Then f is measurable with respect to F∣X0 if and only if f~ is measurable with respect to F; and in that case f is integrable with respect to μ∣X0 if and only if f~ is integrable with respect to μ, and then
∫X0fdμ∣X0=∫Xf~dμ.
Proof of Claim 1. Measurability of a real-valued function is that of Measurable Map, and the Set of Measurable Maps: the preimage of every member of B(R) lies in the σ-algebra. Let B∈B(R). If 0∈/B then f~−1(B)=f−1(B), and if 0∈B then f~−1(B)=f−1(B)∪(X∖X0), since f~ takes the value 0 at every point off X0 and agrees with f on X0. By claim 1 of Assembly of Measure Spaces: Restriction, Transport, One-Point Spaces, and Countable Disjoint Unions every member of F∣X0 lies in F, and X∖X0∈F because F is a σ-algebra; so measurability of f gives measurability of f~ in both cases. Conversely f−1(B)=f~−1(B)∩X0, which lies in F and is contained in X0, hence lies in F∣X0; so measurability of f~ gives measurability of f.
Assume both are measurable. Let f+ and f− be the positive and negative parts of f as in Integrable Functions and Their Lebesgue Integral, and likewise (f~)+ and (f~)− for f~. Since max{0,0}=0, the map (f~)+ is the zero extension of f+ and (f~)− is the zero extension of f−. These four maps are nonnegative and real-valued, and they are measurable by Integrable Functions and Their Lebesgue Integral; for a nonnegative real-valued function, measurability in the sense of Measurable Map, and the Set of Measurable Maps and measurability as a [0,∞]-valued function agree, as recorded in Nonnegative Measurable Maps and Their Lebesgue Integral. Claim 1 of Assembly of Measure Spaces: Restriction, Transport, One-Point Spaces, and Countable Disjoint Unions, applied to f+ and then to f−, therefore gives
∫X0f+dμ∣X0=∫X(f~)+dμ,∫X0f−dμ∣X0=∫X(f~)−dμ.
By Integrable Functions and Their Lebesgue Integral, f is integrable exactly when the two left-hand sides are finite, f~ is integrable exactly when the two right-hand sides are finite, and in that case each of the two integrals in the claim is the difference of the corresponding pair of values. The two differences agree by the two displayed identities. This proves Claim 1.
Claim 2. (Adjoining a one-point factor.) Let Y={z} be a one-point set and let (Y,G,δ), with G={∅,Y}, be the one-point measure space with unit mass at z of claim 3 of Assembly of Measure Spaces: Restriction, Transport, One-Point Spaces, and Countable Disjoint Unions. Then δ is σ-finite. Let l be a natural number with 1≤l and let φl:Rl→Rl×Y be given by φl(θ)=(θ,z). Then φl is a bijection, the product σ-algebra satisfies
Bl⊗G={A×Y:A∈Bl},
and the product measure λl⊗δ is the image measure of λl under φl. Moreover, for a map F:Rl→R, the map F∘φl−1 is measurable with respect to Bl⊗G if and only if F is measurable with respect to Bl; in that case F∘φl−1 is integrable with respect to λl⊗δ if and only if F is integrable with respect to λl, and then
∫Rl×YF∘φl−1d(λl⊗δ)=∫RlFdλl.
Proof of Claim 2. The constant sequence with every term Y covers Y by members of G of finite measure, since δ(Y)=1; so δ is σ-finite in the sense of Measure, Measure Space, and Probability Measure. Because Y has exactly one element, φl is a bijection with inverse (θ,z)↦θ, and φl(A)=A×Y for every A⊆Rl.
By claim 2 of Assembly of Measure Spaces: Restriction, Transport, One-Point Spaces, and Countable Disjoint Unions, applied to the measure space (Rl,Bl,λl) and to the bijection φl, the family φl(Bl)={A×Y:A∈Bl} is a σ-algebra on Rl×Y, the maps φl and φl−1 are measurable in the two directions between (Rl,Bl) and (Rl×Y,φl(Bl)), and the image measure (λl)φl satisfies (λl)φl(A×Y)=λl(A) for every A∈Bl.
The measurable rectangles of Measurable Rectangles and the Product σ-Algebra for Bl and G are the sets A×∅=∅=∅×Y and A×Y with A∈Bl; all of them lie in φl(Bl), because ∅∈Bl. As Bl⊗G is the σ-algebra generated by those rectangles, and hence the smallest σ-algebra containing them, Bl⊗G⊆φl(Bl). Conversely each A×Y with A∈Bl is itself a measurable rectangle, so φl(Bl)⊆Bl⊗G. The two families are therefore equal, which is the displayed description.
Both λl and δ are σ-finite (λl by claim 1 of Finite Products of Lebesgue Measure and Coordinate Integration on Rl), so λl⊗δ is defined by Existence and Uniqueness of the Product Measure and satisfies (λl⊗δ)(A×Y)=λl(A)δ(Y)=λl(A) for A∈Bl. Every member of Bl⊗G is of the form A×Y with A∈Bl, by the description just proved, and on such a set (λl)φl takes the same value λl(A). The two measures therefore agree at every member of their common domain, so λl⊗δ=(λl)φl.
Let F:Rl→R and B∈B(R). Since φl is a bijection with inverse φl−1, we have (F∘φl−1)−1(B)=φl(F−1(B)), and, φl being injective, φl(F−1(B))∈φl(Bl) holds if and only if F−1(B)∈Bl. This gives the asserted equivalence of measurability. Finally, claim 2 of Image Measures and Measures with a Density: Measures, Integrals and Change of Variables, applied to the measurable map φl and to the function F∘φl−1 on Rl×Y, gives that F∘φl−1 is integrable with respect to (λl)φl=λl⊗δ if and only if (F∘φl−1)∘φl=F is integrable with respect to λl, with equality of the two integrals. This proves Claim 2.
Claim 3. (The extended factors.) For every i∈[n] the map g^i is measurable with respect to B(R). If moreover a real number Mi satisfies ∣gi(t)∣≤Mi for every t∈J, then 0≤Mi, ∣g^i(t)∣≤Mi for every t∈R, both gi and g^i are integrable with respect to λJ and λ respectively, and
∫JgidλJ=∫Rg^idλ.
Proof of Claim 3. Measurability of g^i follows from Claim 1 applied to the measure space (R,B(R),λ), to X0=J and to f=gi, whose zero extension is g^i; the restriction of (R,B(R),λ) to J is (J,BJ,λJ) by the statement.
Suppose ∣gi(t)∣≤Mi for every t∈J. Since 0≤0<1 we have 0∈J, and 0≤∣gi(0)∣ by claim 1 of Properties of the Absolute Value in an Ordered Field, so 0≤Mi by transitivity. For t∈J we have ∣g^i(t)∣=∣gi(t)∣≤Mi, and for t∈R with t∈/J we have ∣g^i(t)∣=∣0∣=0≤Mi by claim 1 of Properties of the Absolute Value in an Ordered Field. Hence ∣g^i(t)∣≤Mi1J(t) fails only where 1J(t)=0, and there both sides are 0; so in fact ∣g^i(t)∣≤Mi1J(t) for every t∈R, where 1J is the indicator of J.
The map ∣g^i∣ is measurable by claim 4 of Arithmetic of Measurable Real- and [0,∞]-Valued Maps, and 1J is measurable by claim 1 of that lemma. By claim 1 of Linearity and Monotonicity of the Lebesgue Integral, and the Integrability Criterion (monotonicity, then homogeneity with the constant Mi∈[0,∞)) and by The Integral of an Indicator Function is the Measure of the Set,
∫R∣g^i∣dλ≤∫RMi1Jdλ=Miλ(J)=Mi<∞.
By Integrable Functions and Their Lebesgue Integral the map g^i is therefore integrable with respect to λ, and Claim 1 gives that gi is integrable with respect to λJ with the displayed equality of integrals. This proves Claim 3.
Claim 4. (Partial products.) Let l be a natural number with 1≤l≤n. Then Pl,j is measurable with respect to Bl for every j∈[l]. If moreover real numbers Mi with ∣gi(t)∣≤Mi for every t∈J are given for every i∈[n], then
∣Pl,j(θ)∣≤k=1∏jMkfor every j∈[l] and every θ∈Rl.
Proof of Claim 4. For k∈[l] the projection πk is measurable with respect to Bl and B(R) by claim 1 of The Borel Sigma-Algebra of a Euclidean Space as a Product, and Measurability of Projections, Sequentially Continuous Maps, and Open and Closed Sets. Hence the map θ↦g^k(θk), which is g^k∘πk, is measurable with respect to Bl: for B∈B(R) one has (g^k∘πk)−1(B)=πk−1(g^k−1(B)), and g^k−1(B)∈B(R) by Claim 3.
We induct on j, bounded by l. By claim 1 of Properties of Finite Products, applied for each fixed θ to the map k↦g^k(θk) on [l], we have Pl,1=g^1∘π1 and, whenever S(m)∈[l],
Pl,S(m)(θ)=Pl,m(θ)g^S(m)(θS(m))(θ∈Rl),
that is, Pl,S(m) is the pointwise product of Pl,m and g^S(m)∘πS(m). The case j=1 is the measurability just proved, and the successor step is claim 3 of Arithmetic of Measurable Real- and [0,∞]-Valued Maps applied to Pl,m and g^S(m)∘πS(m). This proves the measurability assertion.
Assume now the bounds Mi are given, so that 0≤Mi and ∣g^i(t)∣≤Mi for every t∈R by Claim 3. We induct on j again, bounded by l, fixing θ∈Rl. For j=1 we have ∣Pl,1(θ)∣=∣g^1(θ1)∣≤M1=∏k=11Mk, the last equality by claim 1 of Properties of Finite Products. Suppose the bound holds at m and S(m)∈[l]. Writing A=∏k=1mMk, claim 5 of Properties of Finite Products gives 0≤A, and claim 1 of Properties of the Absolute Value in an Ordered Field gives 0≤∣g^S(m)(θS(m))∣. By claim 4 of Properties of the Absolute Value in an Ordered Field and by claim 5 of Elementary Arithmetic in an Ordered Field, applied first with the nonnegative factor ∣g^S(m)(θS(m))∣ and then with the nonnegative factor A (in the first application the factor multiplies on the right, which is the same as multiplying on the left by the commutativity of multiplication in R),
∣Pl,S(m)(θ)∣=∣Pl,m(θ)∣∣g^S(m)(θS(m))∣≤A∣g^S(m)(θS(m))∣≤AMS(m)=k=1∏S(m)Mk,
the last equality by claim 1 of Properties of Finite Products and the two inequalities combined by transitivity. This proves Claim 4.
Claim 5. (Integrability of the full products.) Assume the bounds Mi of Claim 4 are given, and let l be a natural number with 1≤l≤n. Put Ql={θ∈Rl:θk∈J for every k∈[l]}. Then Ql∈Bl, λl(Ql)=1, the map Hl vanishes at every point of Rl outside Ql, and Hl is integrable with respect to λl.
Proof of Claim 5. The set Ql is the Borel rectangle with every factor equal to J, so Ql∈Bl and λl(Ql) is the product in [0,∞] of l factors each equal to λ(J)=1, both by claim 1 of Finite Products of Lebesgue Measure and Coordinate Integration on Rl; that product is 1, since all its factors are finite, so that it is an ordinary product of real numbers, and 1⋅1=1. If θ∈Rl and θ∈/Ql, then θk∈/J for some k∈[l], so g^k(θk)=0 and Hl(θ)=0 by claim 4 of Properties of Finite Products.
Write C=∏k=1lMk, so 0≤C by claim 5 of Properties of Finite Products. For θ∈Ql we have ∣Hl(θ)∣≤C=C1Ql(θ) by Claim 4, and for θ∈/Ql we have ∣Hl(θ)∣=0=C1Ql(θ); so ∣Hl∣≤C1Ql pointwise on Rl. The map Hl is measurable by Claim 4, hence so is ∣Hl∣ by claim 4 of Arithmetic of Measurable Real- and [0,∞]-Valued Maps, and 1Ql is measurable by claim 1 of that lemma. By claim 1 of Linearity and Monotonicity of the Lebesgue Integral, and the Integrability Criterion and by The Integral of an Indicator Function is the Measure of the Set,
∫Rl∣Hl∣dλl≤∫RlC1Qldλl=Cλl(Ql)=C<∞,
so Hl is integrable with respect to λl by Integrable Functions and Their Lebesgue Integral. This proves Claim 5.
Claim 6. (The product formula on Rl.) Assume the bounds Mi of Claim 4 are given and write ck=∫Rg^kdλ for k∈[n], which is defined by Claim 3. Then for every natural number l with 1≤l≤n,
∫RlHldλl=k=1∏lck.
Proof of Claim 6. We induct on l, bounded by n. For l=1 we have B1=B(R), λ1=λ and, by claim 1 of Properties of Finite Products, H1(θ)=g^1(θ1) for every θ∈R1; under the identification of R1 with R this reads H1=g^1, so both sides equal c1, the right-hand side by claim 1 of Properties of Finite Products.
Suppose the identity holds at l and that S(l)≤n. Since 1≤l we have 2≤S(l), so the identification of RS(l) with Rl×R is in force; we write a point of RS(l) as (θ′,t) with θ′∈Rl and t∈R. By claim 1 of Properties of Finite Products,
HS(l)(θ′,t)=Hl(θ′)g^S(l)(t)(θ′∈Rl, t∈R).
Let (Y,G,δ) and φS(l) be as in Claim 2, and put f=HS(l)∘φS(l)−1. By Claims 2 and 5 the map f is measurable with respect to BS(l)⊗G and integrable with respect to λS(l)⊗δ, with
∫RS(l)×Yfd(λS(l)⊗δ)=∫RS(l)HS(l)dλS(l).
Apply claim 4 of Finite Products of Lebesgue Measure and Coordinate Integration on Rl with the dimension S(l), with the σ-finite measure space (Y,G,δ) of Claim 2, with the index i=S(l), and to the map f. The insertion map there is ΨS(l)(t,(θ′,y))=((θ′,t),y), so that
f(ΨS(l)(t,(θ′,y)))=HS(l)(θ′,t)=Hl(θ′)g^S(l)(t).
The claim provides N∈Bl⊗G with (λl⊗δ)(N)=0 such that for every (θ′,y)∈/N the map t↦Hl(θ′)g^S(l)(t) is integrable with respect to λ, and such that the map Φ on Rl×Y equal to ∫RHl(θ′)g^S(l)(t)dλ(t) off N and to 0 on N is integrable with respect to λl⊗δ with
∫Rl×YΦd(λl⊗δ)=∫RS(l)×Yfd(λS(l)⊗δ).
Let Θ=cS(l)(Hl∘φl−1) on Rl×Y. By Claims 2 and 5 the map Hl∘φl−1 is integrable with respect to λl⊗δ, so by claim 2 of Linearity and Monotonicity of the Lebesgue Integral, and the Integrability Criterion, applied with the constants cS(l) and 0 and with the companion function Hl∘φl−1 in both slots, Θ is integrable with respect to λl⊗δ and
∫Rl×YΘd(λl⊗δ)=cS(l)∫Rl×YHl∘φl−1d(λl⊗δ)=cS(l)∫RlHldλl,
the second equality by Claim 2.
For (θ′,y)∈/N, the map t↦Hl(θ′)g^S(l)(t) is the constant Hl(θ′) times the map g^S(l), which is integrable with respect to λ by Claim 3; so claim 2 of Linearity and Monotonicity of the Lebesgue Integral, and the Integrability Criterion, applied with the constants Hl(θ′) and 0 and with the companion function g^S(l) in both slots, gives
Φ(θ′,y)=∫RHl(θ′)g^S(l)(t)dλ(t)=Hl(θ′)cS(l)=Θ(θ′,y),
using φl−1(θ′,y)=θ′ and the commutativity of multiplication in R. Hence the set of points of Rl×Y at which Φ and Θ differ is contained in N, a set of (λl⊗δ)-measure zero, so Φ=Θ almost everywhere. Both maps are integrable with respect to λl⊗δ, so the almost-everywhere comparison The Lebesgue Integral and Null Sets (iii) gives that their integrals agree. Combining the four displayed identities of this step with the induction hypothesis and with claim 1 of Properties of Finite Products,
∫RS(l)HS(l)dλS(l)=cS(l)∫RlHldλl=cS(l)k=1∏lck=k=1∏S(l)ck,
the last equality using the commutativity of multiplication in R. This proves Claim 6.
Proof of claim 1 of the statement. For x∈Q we have xi∈J for every i∈[n] by the statement, so gi(xi) is defined and G(x)=∏i=1ngi(xi) is a real number; thus G:Q→R is well defined. Let G^:Rn→R be the map equal to G on Q and to 0 off Q. We show G^=Hn. If x∈Q then xi∈J for every i∈[n], so the maps i↦g^i(xi) and i↦gi(xi) on [n] coincide, and therefore their finite products coincide: Hn(x)=G(x)=G^(x). If x∈Rn and x∈/Q then xi∈/J for some i∈[n], so g^i(xi)=0 and Hn(x)=0=G^(x) by claim 4 of Properties of Finite Products.
By Claim 4, taken with l=n and j=n, the map Hn=G^ is measurable with respect to Bn=B(Rn). Claim 1, applied to the measure space (Rn,Bn,λn), to X0=Q and to f=G, whose zero extension is G^, therefore gives that G is measurable with respect to BQ.
Proof of claim 2 of the statement. Assume the bounds Mi. By Claim 3 each gi is integrable with respect to λJ with ∫JgidλJ=ci. By Claim 5 with l=n, the map G^=Hn is integrable with respect to λn, so by Claim 1 the map G is integrable with respect to λQ and
∫TnGdx=∫QGdλQ=∫RnHndλn,
the first equality being the notation fixed in The Flat Torus: Standing Notation (iii). By Claim 6 with l=n the right-hand side equals ∏k=1nck. Since the maps k↦ck and k↦∫JgkdλJ on [n] coincide, their finite products coincide, which is the asserted identity.