Smoothness of coordinate insertion and of homogeneous ratios #
Inserting a coordinate into a tuple, x ↦ Fin.insertNth i (f x) (g x), is as smooth as its
inputs; this is the differentiable counterpart of Mathlib's Continuous.finInsertNth.
As a consequence, the homogeneous-ratio maps
z ↦ (Fin.insertNth i 1 z (j.succAbove k) / Fin.insertNth i 1 z j)_k are smooth, indeed
analytic, wherever the denominator is nonzero. These are the transition maps between the
standard affine charts of projective space over a nontrivially normed field, so this file
supplies the smoothness of every atlas of projective space built from homogeneous ratios.
Inserting a coordinate into a tuple preserves smoothness: if f and g are C^r, then so
is x ↦ Fin.insertNth i (f x) (g x).
The homogeneous-ratio map z ↦ (w (j.succAbove k) / w j)_k, where w = Fin.insertNth i 1 z
inserts the coordinate 1 in position i, is C^r on the set where w j ≠ 0. These maps are
the transition maps between the standard affine charts of projective space.