AFTD Auto-Formalizing Theoretical Domains

Physlib.Wirtinger.dWirtingerDir_dWirtingerAntiDir_comm

theoremverifiedformalizationimported Lean

Schwarz's theorem for the directional Wirtinger operators: on a C² field f the holomorphic and anti-holomorphic directional derivatives commute in any two directions, ∂_v ∂̄_w f = ∂̄_w ∂_v f. The commutation adds no analytic input. By the §G bridge each order expands into a real-linear combination of the second real Fréchet derivative fderiv ℝ (fderiv ℝ f) u on the four directions v, i·v, w, i·w. The two orders give the same combination up to transposing the two slots of that second derivative, and ContDiffAt.isSymmSndFDerivAt, the symmetry of ordinary mixed second partials, equates them.

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
theorem Physlib.Wirtinger.dWirtingerDir_dWirtingerAntiDir_comm (hf2 : ContDiffAt ℝ 2 f u) (v w : V) :
    dWirtingerDir (fun p => dWirtingerAntiDir f w p) v u
      = dWirtingerAntiDir (fun p => dWirtingerDir f v p) w u
Formalizes
Physlib, `Physlib.Wirtinger.dWirtingerDir_dWirtingerAntiDir_comm`
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/-- **Schwarz's theorem** for the directional Wirtinger operators: on a `C²` field `f` the holomorphic and anti-holomorphic directional derivatives commute in any two directions, `∂_v ∂̄_w f = ∂̄_w ∂_v f`. The commutation adds no analytic input. By the §G bridge each order expands into a real-linear combination of the second real Fréchet derivative `fderiv ℝ (fderiv ℝ f) u` on the four directions `v`, `i·v`, `w`, `i·w`. The two orders give the same combination up to transposing the two slots of that second derivative, and `ContDiffAt.isSymmSndFDerivAt`, the symmetry of ordinary mixed second partials, equates them. -/theorem Physlib.Wirtinger.dWirtingerDir_dWirtingerAntiDir_comm (hf2 : ContDiffAt ℝ 2 f u) (v w : V) :    dWirtingerDir (fun p => dWirtingerAntiDir f w p) v u      = dWirtingerAntiDir (fun p => dWirtingerDir f v p) w u := by  have hf' : DifferentiableAt ℝ (fderiv ℝ f) u :=    (hf2.fderiv_right (m := 1) le_rfl).differentiableAt one_ne_zero  have hsymm : IsSymmSndFDerivAt ℝ f u := hf2.isSymmSndFDerivAt (by simp)  rw [dWirtingerDir_apply, dWirtingerAntiDir_apply]  simp only [fderiv_dWirtingerAntiDir hf', fderiv_dWirtingerDir hf', hsymm.eq]  ring
See it in the graphDiscuss this resultChallenge it