AFTD Auto-Formalizing Theoretical Domains

Physlib.Wirtinger.fderiv_weightedDirDeriv

theoremverifiedformalizationimported Lean

The bridge: differentiating a weightedDirDeriv along a third direction a lands on the second real Fréchet derivative fderiv ℝ (fderiv ℝ f) u a b in the two slots.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Physlib Physlib.Wirtinger in
variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedSpace ℂ V]
  {f : V → ℂ} {u : V} in
omit [NormedSpace ℂ V] in
lemma Physlib.Wirtinger.fderiv_weightedDirDeriv (hf' : DifferentiableAt ℝ (fderiv ℝ f) u)
    (c : ℂ) (b₁ b₂ a : V) :
    fderiv ℝ (weightedDirDeriv f c b₁ b₂) u a
      = (1 / 2 : ℂ) * (fderiv ℝ (fderiv ℝ f) u a b₁
          + c * fderiv ℝ (fderiv ℝ f) u a b₂)
Formalizes
Physlib, `Physlib.Wirtinger.fderiv_weightedDirDeriv`
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
Built on 2
Used by 2

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Physlib Physlib.Wirtinger invariable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedSpace ℂ V]  {f : V → ℂ} {u : V} inomit [NormedSpace ℂ V] in/-- The bridge: differentiating a `weightedDirDeriv` along a third direction `a` lands on the second real Fréchet derivative `fderiv ℝ (fderiv ℝ f) u a b` in the two slots. -/lemma Physlib.Wirtinger.fderiv_weightedDirDeriv (hf' : DifferentiableAt ℝ (fderiv ℝ f) u)    (c : ℂ) (b₁ b₂ a : V) :    fderiv ℝ (weightedDirDeriv f c b₁ b₂) u a      = (1 / 2 : ℂ) * (fderiv ℝ (fderiv ℝ f) u a b₁          + c * fderiv ℝ (fderiv ℝ f) u a b₂) := by  simp only [(hasFDerivAt_weightedDirDeriv hf' c b₁ b₂).fderiv, add_apply, _root_.smul_apply,    ContinuousLinearMap.coe_comp, Function.comp_apply, ContinuousLinearMap.apply_apply,    smul_eq_mul, mul_add]
See it in the graphDiscuss this resultChallenge it