AFTD Auto-Formalizing Theoretical Domains

Physlib.Wirtinger.realLinear_apply_eq_wirtinger

theoremverifiedformalizationimported Lean

Split a real-linear map ℂ → ℂ into its Wirtinger components. Any real-linear L : ℂ →L[ℝ] ℂ splits into a holomorphic and an anti-holomorphic part with the Wirtinger coefficients a = ½(L 1 - i * L i), b = ½(L 1 + i * L i) as weights: L w = a * w + b * star w. This is purely algebraic: L is an arbitrary real-linear map, no derivative involved. Its use is the Wirtinger chain rule (dWirtingerDir_comp below), where the weights of the outer differential L = fderiv ℝ g (f u) are the coefficients ∂g/∂f, ∂g/∂f̄.

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
lemma Physlib.Wirtinger.realLinear_apply_eq_wirtinger (L : ℂ →L[ℝ] ℂ) (w : ℂ) :
    L w =
      ((1 / 2 : ℂ) * (L 1 - Complex.I * L Complex.I)) * w
        + ((1 / 2 : ℂ) * (L 1 + Complex.I * L Complex.I)) * star w
Formalizes
Physlib, `Physlib.Wirtinger.realLinear_apply_eq_wirtinger`
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 inset_option relaxedAutoImplicit true invariable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedSpace ℂ V]  {f : V → ℂ} {u : V} in/-- Split a real-linear map `ℂ → ℂ` into its Wirtinger components. Any real-linear `L : ℂ →L[ℝ] ℂ` splits into a holomorphic and an anti-holomorphic part with the Wirtinger coefficients `a = ½(L 1 - i * L i)`, `b = ½(L 1 + i * L i)` as weights: `L w = a * w + b * star w`. This is purely algebraic: `L` is an arbitrary real-linear map, no derivative involved. Its use is the Wirtinger chain rule (`dWirtingerDir_comp` below), where the weights of the outer differential `L = fderiv ℝ g (f u)` are the coefficients `∂g/∂f`, `∂g/∂f̄`. -/lemma Physlib.Wirtinger.realLinear_apply_eq_wirtinger (L : ℂ →L[ℝ] ℂ) (w : ℂ) :    L w =      ((1 / 2 : ℂ) * (L 1 - Complex.I * L Complex.I)) * w        + ((1 / 2 : ℂ) * (L 1 + Complex.I * L Complex.I)) * star w := by  have hw : w = (w.re : ℝ) • (1 : ℂ) + (w.im : ℝ) • Complex.I := by    apply Complex.ext <;> simp  nth_rewrite 1 [hw, map_add, map_smul, map_smul]  apply Complex.ext <;> simp <;> ring
See it in the graphDiscuss this resultChallenge it