Higher derivatives on local domains #
Division, logarithms, and square roots need not be smooth everywhere. Their jet laws use smoothness near the evaluation point and a nonzero denominator or argument there. Continuity gives the same domain condition nearby, where mathlib's derivative rules identify the remaining jet coefficients.
The quotient proof follows the runtime implementation, including its floating-point safeguards. Over exact reals, the checks for non-finite intermediate values are always false; no floating-point execution is identified with exact-real arithmetic here.
Runtime comparisons inspect the primal value, not its derivative coefficients.
The runtime quotient rule preserves every derivative coefficient away from a zero denominator. Both functions need be smooth only near the evaluation point.
The runtime logarithm preserves mixed derivatives at nonzero inputs. This uses mathlib's real logarithm, which is smooth for negative as well as positive inputs.
The square-root branch depends only on the primal input.
The runtime square root preserves mixed derivatives at nonzero inputs. For negative exact-real inputs, both the runtime and mathlib use the locally constant zero branch. No derivative claim at zero or about native floating-point square roots is made.