AFTD Auto-Formalizing Theoretical Domains

Physlib.Wirtinger.fderiv_comp_clm_apply

theoremverifiedformalizationimported Lean

Chain rule for an inner continuous linear map L. Because the derivative of a linear map is the map itself, the real Fréchet derivative of g ∘ L at u, applied to x, equals the derivative of g at L u applied to L x.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedSpace ℂ V]
  {f : V → ℂ} {u : V} in
variable {V' : Type*} [NormedAddCommGroup V'] [NormedSpace ℝ V'] [NormedSpace ℂ V'] in
omit [NormedSpace ℂ V] [NormedSpace ℂ V'] in
lemma Physlib.Wirtinger.fderiv_comp_clm_apply {g : V' → ℂ} {L : V →L[ℝ] V'} {u : V}
    (hg : DifferentiableAt ℝ g (L u)) (x : V) :
    fderiv ℝ (fun p => g (L p)) u x = fderiv ℝ g (L u) (L x)
Formalizes
Physlib, `Physlib.Wirtinger.fderiv_comp_clm_apply`
Lean proof
By Andrea Pari, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2026 Andrea Pari. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
09 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 2

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedSpace ℂ V]
  {f : V → ℂ} {u : V} in
variable {V' : Type*} [NormedAddCommGroup V'] [NormedSpace ℝ V'] [NormedSpace ℂ V'] in
omit [NormedSpace ℂ V] [NormedSpace ℂ V'] in
/-- Chain rule for an inner continuous linear map `L`. Because the derivative of a linear map is the map itself, the real Fréchet derivative of `g ∘ L` at `u`, applied to `x`, equals the derivative of `g` at `L u` applied to `L x`. -/
lemma Physlib.Wirtinger.fderiv_comp_clm_apply {g : V' → ℂ} {L : V →L[ℝ] V'} {u : V}
    (hg : DifferentiableAt ℝ g (L u)) (x : V) :
    fderiv ℝ (fun p => g (L p)) u x = fderiv ℝ g (L u) (L x) :=
  DFunLike.congr_fun (hg.hasFDerivAt.comp u L.hasFDerivAt).fderiv x
See it in the graphDiscuss this resultChallenge it