Each result cited is universally quantified over the data in its own statement, and is applied below with the data named at each use.
Fix the measurable space (Y,Y) and the metric space (Z,dZ) of the statement. The Borel σ-algebra B(Z) is a σ-algebra on Z by claim 2 of Intersections of Sigma-Algebras and Minimality of the Generated Sigma-Algebra, being generated by the open subsets (Borel Sigma-Algebra of a Metric Space).
Step 1 (claim 1, pairings). Let (Ω,O) be a measurable space and let F:Ω→Y and G:Ω→Z be measurable as in claim 1. Let K be the family of those E⊆Y×Z with (F,G)−1(E)∈O. We check the three properties of Sigma-Algebra and Measurable Space for K on Y×Z, using the same properties of O on Ω. First, (F,G)−1(Y×Z)=Ω∈O. Second, if E∈K then (F,G)−1((Y×Z)∖E)=Ω∖(F,G)−1(E)∈O. Third, for a sequence (Em)m∈N in K, (F,G)−1(⋃mEm)=⋃m(F,G)−1(Em)∈O. So K is a σ-algebra on Y×Z. For a measurable rectangle A×B with A∈Y and B∈B(Z),
(F,G)−1(A×B)={ω∈Ω:F(ω)∈A, G(ω)∈B}=F−1(A)∩G−1(B),
and F−1(A)∈O, G−1(B)∈O by the measurability of F and G (Measurable Function and Real-Valued Measurable Function); as O is closed under finite intersections (Sigma-Algebra and Measurable Space), A×B∈K. Thus K contains the family of measurable rectangles, whose generated σ-algebra is Y⊗B(Z) by Product Sigma-Algebra; by the minimality in claim 2 of Intersections of Sigma-Algebras and Minimality of the Generated Sigma-Algebra, applied on the set Y×Z to the family of measurable rectangles and the σ-algebra K, Y⊗B(Z)⊆K. That is, (F,G)−1(E)∈O for every E∈Y⊗B(Z), so (F,G) is measurable with respect to O and Y⊗B(Z).
For the special case, let S:Y→Z be measurable with respect to Y and B(Z). The identity map of Y is measurable with respect to Y and Y, since the preimage of every A∈Y is A. Applying what was just proved with (Ω,O)=(Y,Y), F=id and G=S shows that (id,S) is measurable with respect to Y and Y⊗B(Z). The argument of this step used nothing about (Y,Y) beyond its being a measurable space; it therefore also applies with any other measurable space in place of (Y,Y), which is how it is used in Step 3.
Step 2 (the diagonal). Assume now that (Z,dZ) is separable. We show that the diagonal Δ={(z,z′)∈Z×Z:z=z′} belongs to B(Z)⊗B(Z), the product σ-algebra of (Z,B(Z)) with itself. If Z=∅ then Δ=∅, which belongs to every σ-algebra on Z×Z (Sigma-Algebra and Measurable Space). Otherwise, by Separable Metric Space choose a countable subset D⊆Z that is dense in Z (Dense Subset of a Topological Space), so that its closure is Z. The set D is nonempty: for a point z∈Z, which lies in the closure of D, Characterization of the Closure in a Metric Space by Open Balls (implication from 1 to 3, with A=D, x=z and ε=1) provides a point of D. Hence, by Countable Set, there is a sequence (qn)n∈N in Z whose set of terms is D. For each natural number m≥1 let
Um=n∈N⋃BdZ(qn,1/m)×BdZ(qn,1/m),
with the open balls of Open Ball in a Metric Space. We claim that Δ=⋂m≥1Um.
If (z,z)∈Δ and m≥1, then z lies in the closure of D, so Characterization of the Closure in a Metric Space by Open Balls (implication from 1 to 3, with A=D, x=z and ε=1/m) gives a∈D with dZ(z,a)<1/m; write a=qn. By symmetry of the metric (Metric Space), dZ(qn,z)<1/m, so z∈BdZ(qn,1/m) and (z,z)∈Um. Conversely, let (z,z′)∈Um for every m≥1. For each m there is n with dZ(qn,z)<1/m and dZ(qn,z′)<1/m, so by symmetry and the triangle inequality (Metric Space) dZ(z,z′)≤dZ(z,qn)+dZ(qn,z′)<2/m. Thus the real number dZ(z,z′)≥0 is less than 2/m for every m≥1; if it were positive, a natural number m>2/dZ(z,z′) would give a contradiction, so dZ(z,z′)=0, and z=z′ by property 2 of Metric Space. This proves the claim.
Each open ball BdZ(qn,1/m) is open by Open Ball in a Metric Space is Open, hence belongs to B(Z) by claim 1 of Borel Measurability and Bounded Integration on a Metric Space; so each BdZ(qn,1/m)×BdZ(qn,1/m) is a measurable rectangle and belongs to B(Z)⊗B(Z) by Product Sigma-Algebra and claim 2 of Intersections of Sigma-Algebras and Minimality of the Generated Sigma-Algebra. Since a σ-algebra is closed under countable unions and countable intersections (Sigma-Algebra and Measurable Space), each Um and then Δ belong to B(Z)⊗B(Z).
Step 3 (claim 2, the graph is measurable). Let (Z,dZ) be separable and S:Y→Z measurable with respect to Y and B(Z). Define Ψ:Y×Z→Z×Z by Ψ(y,z)=(S(y),z), that is, Ψ=(S∘prY,prZ). For B∈B(Z), (S∘prY)−1(B)=prY−1(S−1(B)), where S−1(B)∈Y by measurability of S and then prY−1(S−1(B))∈Y⊗B(Z) by measurability of prY (claim 5 of Sections of Product-Measurable Sets and Maps Are Measurable, and Insertion Maps into Products Are Measurable); so S∘prY is measurable with respect to Y⊗B(Z) and B(Z) (Measurable Function and Real-Valued Measurable Function). Also prZ is measurable with respect to Y⊗B(Z) and B(Z) by claim 5 of Sections of Product-Measurable Sets and Maps Are Measurable, and Insertion Maps into Products Are Measurable. The argument of Step 1, applied with the measurable space (Z,B(Z)) in place of (Y,Y), with (Ω,O)=(Y×Z,Y⊗B(Z)), F=S∘prY and G=prZ, shows that Ψ is measurable with respect to Y⊗B(Z) and B(Z)⊗B(Z). For (y,z)∈Y×Z one has (y,z)∈ΓS iff z=S(y) iff Ψ(y,z)∈Δ, so ΓS=Ψ−1(Δ), which belongs to Y⊗B(Z) by Step 2 and the measurability of Ψ.
Step 4 (claim 3, a coupling on the graph). Let (Z,dZ) be separable, and let μ, S and π be as in claim 3; write Φ=(id,S):Y→Y×Z, which is measurable with respect to Y and Y⊗B(Z) by Step 1, so that the image measure Φ#μ, E↦μ(Φ−1(E)), is a probability measure on (Y×Z,Y⊗B(Z)) by claim 1 of Image Measures, Measures with Densities, and Change of Variables (with (Y,Y,μ) and T=Φ). By Step 3, ΓS∈Y⊗B(Z).
First, π does not see the complement of the graph. The measure π is finite, so Basic Properties of a Measure §differences (on (Y×Z,Y⊗B(Z),π), with the set ΓS) gives π((Y×Z)∖ΓS)=1−1=0. Let H∈Y⊗B(Z). The sets H∩ΓS and H∖ΓS belong to Y⊗B(Z), are disjoint and have union H, so π(H)=π(H∩ΓS)+π(H∖ΓS) by Basic Properties of a Measure §additivity; and 0≤π(H∖ΓS)≤π((Y×Z)∖ΓS)=0 by Basic Properties of a Measure §monotone. Hence
π(H)=π(H∩ΓS)for every H∈Y⊗B(Z).
Now fix E∈Y⊗B(Z). The set Φ−1(E) belongs to Y, and E′=prY−1(Φ−1(E))={(y,z)∈Y×Z:(y,S(y))∈E} belongs to Y⊗B(Z) by claim 5 of Sections of Product-Measurable Sets and Maps Are Measurable, and Insertion Maps into Products Are Measurable. We have E∩ΓS=E′∩ΓS: if (y,z)∈ΓS then z=S(y), so (y,z)∈E exactly when (y,S(y))∈E, that is, exactly when (y,z)∈E′. Using the last display twice (with H=E and H=E′) and the hypothesis (prY)#π=μ,
π(E)=π(E∩ΓS)=π(E′∩ΓS)=π(E′)=π(prY−1(Φ−1(E)))=μ(Φ−1(E))=(Φ#μ)(E).
As E was arbitrary, π=Φ#μ=(id,S)#μ.
Finally, prZ and S are measurable (claim 5 of Sections of Product-Measurable Sets and Maps Are Measurable, and Insertion Maps into Products Are Measurable and the hypothesis), so (prZ)#π and S#μ are image measures on (Z,B(Z)) by claim 1 of Image Measures, Measures with Densities, and Change of Variables. Since prZ(Φ(y))=prZ(y,S(y))=S(y) for every y∈Y, one has Φ−1(prZ−1(B))=S−1(B) for every B∈B(Z), and therefore, by what was just proved,
((prZ)#π)(B)=π(prZ−1(B))=μ(Φ−1(prZ−1(B)))=μ(S−1(B))=(S#μ)(B).
So (prZ)#π=S#μ. □