Connected-domain closure and separated branches #
The closure argument only requires differentiability; derivatives need not vary continuously and zero values are treated by open level sets.
A nonempty open fiber of a continuous function on a preconnected set is the whole domain. The fiber is open in the ambient space.
Derivative zero away from the zero fiber already forces constancy. This needs no continuity of the derivative and makes no assertion about passing derivatives across the boundary of the zero fiber.
Two-stage closure for a differential rigidity argument. An attained value in an open regular locus propagates through a clopen fiber. If the regular locus is never attained, the exceptional-locus argument only needs to prove vanishing at nonzero values.
Two separated continuous branches cannot switch arbitrarily close to a point. The branch classification must hold throughout a neighborhood before this lemma can be used to identify derivatives.
Local equality with a selected branch identifies the full Fréchet derivative.