Klein's metric, the curvature identity, and a uniform magnetic field checked symbolically
Chapter 2 of this arc said that Kaluza's five-dimensional vacuum gravity contains four-dimensional gravity and electromagnetism. Here is the statement in a form you can test, with one case checked by computer algebra.
Take four-dimensional spacetime with metric gμν and electromagnetic potential Aμ, and add a fifth coordinate w. In Klein's form (as written in Ravndal, arXiv:1309.4113) the five-dimensional metric and its inverse are:
Nothing depends on w. The identity that makes the theory work is that the five-dimensional curvature scalar splits as the four-dimensional one minus a multiple of the electromagnetic energy:
Varying the action built from R(5) then gives Einstein's equations with the Maxwell stress as source, and Maxwell's equations. In this chapter I state the identity as the standard result and have not rederived it in general here; the next paragraph tests it in one case.
Take flat four-dimensional space, so R(4) = 0, with a uniform magnetic field B along z, given by A = B x dy. Then Fxy = B and FμνFμν = 2B². The identity predicts R(5) = −κ²B²/2. I computed the Christoffel symbols and Ricci scalar of the five-dimensional metric symbolically (Python sympy, signature −+++ +, metric components gtt = −1, gxx = gzz = gww = 1, gyy = 1 + κ²B²x², gyw = κBx). The result was R(5) = −κ²B²/2, matching the prediction exactly.
This pure magnetic field has F ∧ F = 0, so by the earlier chapter its Kaluza–Klein space is not contact, yet it is a perfectly good solution of the reduction. Contact-ness is an extra condition, not a feature of every Kaluza–Klein space. To get it you need E and B together and not orthogonal.