Helper for Proposition 6.10: pointwise gradient identity for the product of
two differentiable scalar functions on ℝⁿ.
Helper for Proposition 6.10: packages the pointwise differentiability and gradient product identity at a fixed point.
Helper for Proposition 6.10: global differentiability of the product and the gradient product rule at every point.
Proposition 6.10 (Product rule for gradients): if f, g : ℝⁿ → ℝ are
differentiable at x, then fg is differentiable at x and
∇(fg)(x) = g(x) • ∇f(x) + f(x) • ∇g(x). If f and g are differentiable on
all of ℝⁿ, then fg is differentiable on ℝⁿ and this identity holds for every
point.
Helper for Proposition 6.11: the chain-rule witness for composing a within-differentiable map with a linear map.
Helper for Proposition 6.11: the composition with a linear map is within-differentiable at the base point.
Helper for Proposition 6.11: witness-form chain-rule statement for
fun x => T (f x) within E at x0.
Helper for Proposition 6.11: UniqueDiffWithinAt gives pointwise
canonicity of within-derivative witnesses for fun x => T (f x) at x0.
Helper for Proposition 6.11: under UniqueDiffWithinAt, the selected
within derivative of fun x => T (f x) is
(LinearMap.toContinuousLinearMap T).comp (fderivWithin ℝ f E x0).
Helper for Proposition 6.11: with UniqueDiffWithinAt at x0, the
composition with a linear map is within-differentiable and its selected within
derivative is the composition of selected within derivatives.
Helper for Proposition 6.11: a dependency-closed provable variant of the
main result under UniqueDiffWithinAt at x0.
Helper for Proposition 6.11: if within-derivative witnesses for
fun x => T (f x) are canonical at x0, then the selected within derivative
is exactly (LinearMap.toContinuousLinearMap T).comp (fderivWithin ℝ f E x0).
Helper for Proposition 6.11: a zero within-derivative witness for f at
x0 induces a zero within-derivative witness for fun x => T (f x).
Helper for Proposition 6.11: if f has zero within-derivative witness at
x0, then the selected within derivative of f at (E, x0) is zero.
Helper for Proposition 6.11: if f has zero within-derivative witness at
x0, then the selected within derivative of fun x => T (f x) at (E, x0)
is zero.
Helper for Proposition 6.11: if f has zero within-derivative witness at
x0, then the selected within derivative of fun x => T (f x) matches
(LinearMap.toContinuousLinearMap T).comp (fderivWithin ℝ f E x0).
Helper for Proposition 6.11: in the non-UniqueDiffWithinAt branch, if
either f has zero within-derivative witness at x0 or within-derivative
witnesses for fun x => T (f x) are pointwise canonical, then the selected
within derivative identity follows.
Helper for Proposition 6.11: in the non-UniqueDiffWithinAt branch, the
zero-derivative or point-canonicity alternatives imply the full conclusion
pair.
Helper for Proposition 6.11: negating the zero-derivative-or-point- canonicity alternative yields both residual negations.
Helper for Proposition 6.11: in the residual branch, once pointwise
canonicity of within-derivative witnesses for fun x => T (f x) is supplied,
the selected within-derivative identity follows immediately.
Helper for Proposition 6.11: both the selected within derivative and the
chain-rule candidate provide valid within-derivative witnesses for
fun x => T (f x) at (E, x0).
Helper for Proposition 6.11: failure of pointwise canonicity for
within-derivative witnesses of fun x => T (f x) at (E, x0) yields two
valid witnesses that are distinct.
Helper for Proposition 6.11: failure of pointwise canonicity yields a
within-derivative witness distinct from the selected fderivWithin witness
for fun x => T (f x) at (E, x0).
Helper for Proposition 6.11: in the residual non-canonical branch, one can collect the selected within-derivative witness, the chain-rule-candidate witness, and a pair of distinct within-derivative witnesses.
Helper for Proposition 6.11: failure of pointwise canonicity yields a
within-derivative witness distinct from the chain-rule candidate
(LinearMap.toContinuousLinearMap T).comp (fderivWithin ℝ f E x0) for
fun x => T (f x) at (E, x0).
Helper for Proposition 6.11: pointwise canonicity of within-derivative
witnesses is incompatible with the existence of two distinct valid witnesses
at (E, x0).
Helper for Proposition 6.11: once canonicity is available for within-
derivative witnesses of fun x => T (f x) at (E, x0), the selected
within derivative equals the chain-rule candidate witness.
Helper for Proposition 6.11: a residual non-canonicity hypothesis is
incompatible with any asserted pointwise canonicity of within-derivative
witnesses for fun x => T (f x) at (E, x0).
Helper for Proposition 6.11: if the selected within derivative and the chain-rule candidate are both valid witnesses, then any supplied pointwise canonicity identifies them.
Helper for Proposition 6.11: in the non-UniqueDiffWithinAt workflow, once
pointwise canonicity is supplied for fun x => T (f x) at (E, x0), the
within-derivative identity follows.
Proposition 6.11 (Derivative of a linear map composed with a differentiable map): let E ⊆ ℝᵏ, let f : E → ℝⁿ be differentiable at x₀ ∈ E, and let T : ℝⁿ → ℝᵐ be linear. Defining (Tf)(x) = T (f x), the map Tf is differentiable at x₀, and D(Tf)(x₀) = T ∘ Df(x₀).
In Lean's fderivWithin setting, this selected-derivative identity needs
UniqueDiffWithinAt at (E, x0).
Helper for Proposition 6.12: the coordinate map
γ(t) = (x₁(t), …, xₙ(t)) is differentiable when each coordinate is.
Helper for Proposition 6.12: the derivative of γ is the tuple of
coordinate derivatives.
Helper for Proposition 6.12: chain-rule vector form for
t ↦ f (γ(t)).
Proposition 6.12 (Chain rule along a differentiable curve): let
f : ℝⁿ → ℝᵐ be differentiable and let xⱼ : ℝ → ℝ be differentiable for
j = 1, …, n. Define γ(t) = (x₁(t), …, xₙ(t)). Then f ∘ γ is
differentiable, and for every t,
d/dt f(γ(t)) = Df(γ(t)) γ'(t) = ∑ⱼ xⱼ'(t) ∂f/∂xⱼ (γ(t)).