  We derive the gravitational Lagrangian to all orders of curvature when the
canonical constraint algebra is deformed by a phase space function as predicted
by some studies into loop quantum cosmology. The deformation function seems to
be required to satisfy a non-linear equation usually found in fluid mechanics,
and can form discontinuities quite generally.
