AFTD Auto-Formalizing Theoretical Domains

Physlib.Wirtinger.dWirtingerDir_comp

theoremverifiedformalizationimported Lean

The two-term Wirtinger chain rule for dWirtingerDir, outer g : ℂ → ℂ and inner f : V → ℂ: ∂_v(g∘f) = (∂g/∂f)·∂_v f + (∂g/∂f̄)·∂_v f̄. realLinear_apply_eq_wirtinger splits the chain rule's outer ℝ-linear factor into the ∂g/∂f, ∂g/∂f̄ coefficients, each multiplying its inner directional derivative ∂_v f, ∂_v f̄.

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
lemma Physlib.Wirtinger.dWirtingerDir_comp {g : ℂ → ℂ} (hg : DifferentiableAt ℝ g (f u))
    (hf : DifferentiableAt ℝ f u) (v : V) :
    dWirtingerDir (fun p => g (f p)) v u =
      dWirtingerDir g 1 (f u) * dWirtingerDir f v u
        + dWirtingerAntiDir g 1 (f u) * dWirtingerDir (fun p => star (f p)) v u
Formalizes
Physlib, `Physlib.Wirtinger.dWirtingerDir_comp`
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 10

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} in/-- The two-term Wirtinger chain rule for `dWirtingerDir`, outer `g : ℂ → ℂ` and inner `f : V → ℂ`: `∂_v(g∘f) = (∂g/∂f)·∂_v f + (∂g/∂f̄)·∂_v f̄`. `realLinear_apply_eq_wirtinger` splits the chain rule's outer `ℝ`-linear factor into the `∂g/∂f`, `∂g/∂f̄` coefficients, each multiplying its inner directional derivative `∂_v f`, `∂_v f̄`. -/lemma Physlib.Wirtinger.dWirtingerDir_comp {g : ℂ → ℂ} (hg : DifferentiableAt ℝ g (f u))    (hf : DifferentiableAt ℝ f u) (v : V) :    dWirtingerDir (fun p => g (f p)) v u =      dWirtingerDir g 1 (f u) * dWirtingerDir f v u        + dWirtingerAntiDir g 1 (f u) * dWirtingerDir (fun p => star (f p)) v u := by  simp only [dWirtingerDir_apply, dWirtingerAntiDir_apply]  rw [show (fun p => g (f p)) = g ∘ f from rfl, fderiv_comp u hg hf, fderiv_star_eq hf]  simp only [ContinuousLinearMap.comp_apply, ContinuousLinearEquiv.coe_coe,    Complex.conjCLE_apply, Complex.star_def, smul_eq_mul, mul_one,    realLinear_apply_eq_wirtinger (fderiv ℝ g (f u)) (fderiv ℝ f u v),    realLinear_apply_eq_wirtinger (fderiv ℝ g (f u)) (fderiv ℝ f u (Complex.I • v))]  ring
See it in the graphDiscuss this resultChallenge it