The tangent vectors of
are
Hence the first fundamental form has coefficients
Put
The upward unit normal is , so the second fundamental form has coefficients
Thus the two forms are
The Gaussian curvature is
Since , the graph formula is
as in Gaussian curvature of a graph surface.
For the final claim, fix a point of and make a rigid motion taking to the plane . The common tangent plane is horizontal, so locally is the graph . Along the projected curve of tangency,
Differentiating the second identity gives
Because is a smooth curve, , so the Hessian is singular. Its determinant is zero, and the graph formula gives at every point of . This is tangency to a plane along a curve forces zero Gaussian curvature.
At , the surface cannot cross the boundary , because it lies inside . Consequently the two surfaces are tangent at . Apply a proper Euclidean motion of Euclidean three-space so that , their common tangent plane is , and the prescribed inward unit normal is . Locally write
with the region on the side . Then
Thus has a local minimum at zero and its Hessian matrix is positive semidefinite. The fundamental forms of a graph surface at a horizontal tangent plane give
Taking the trace of the positive-semidefinite difference proves the mean-curvature comparison at tangential contact:
There is no analogous conclusion for . In the same local coordinates take
Then , so the second graph lies on the inward side of the first, while the Gaussian curvature of a graph surface gives
Hence the mean-curvature inequality holds but
Using smooth bump functions, these local graph patches can be completed away from to a compact region with connected smooth boundary and a closed interior surface without changing their germs at . This realizes the counterexample under the global hypotheses.