Under the given rank hypothesis, the necessary and sufficient local condition is
Vanishing only at the single point would not suffice: an extension preserves the coordinate Poisson brackets throughout its domain. Necessity follows from the coordinate criterion just proved.
For sufficiency, put and . Because the symplectic form is a nondegenerate bilinear form at every point, the independent differentials give independent fields . They commute, since
Moreover , so they span the tangent spaces of the -dimensional fibres of the submersion . Choose a local section transverse to those fibres. Its joint local flow defines coordinates by
The inverse function theorem makes a local diffeomorphism, and commuting flows give .
In these coordinates . Each flow preserves the symplectic form, by Cartan's magic formula. Thus its coefficients are independent of , and
where is a closed differential two-form on the base. On a small ball, the Poincare lemma gives , with . Define
Then
Consequently the original coordinates are extended to the required canonical transformation , with the prescribed first half . Its Jacobian matrix is invertible by construction. This is the canonical completion of independent commuting functions. For the printed data, the flows and resulting canonical transformation can be taken , which is sufficient to preserve the symplectic form; smooth data give smooth coordinates.