AFTD Auto-Formalizing Theoretical Domains

Physlib.Wirtinger.differentiableAt_complex_iff_dWirtingerAntiDir_eq_zero

theoremverifiedformalizationimported Lean

Cauchy–Riemann. f is ℂ-differentiable at u iff it is real-differentiable there and every anti-holomorphic Wirtinger derivative vanishes. Real differentiability is needed: fderiv is 0 where f is not differentiable.

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
variable [IsScalarTower ℝ ℂ V] in
theorem Physlib.Wirtinger.differentiableAt_complex_iff_dWirtingerAntiDir_eq_zero (f : V → ℂ) (u : V) :
    DifferentiableAt ℂ f u ↔
      DifferentiableAt ℝ f u ∧ ∀ v, dWirtingerAntiDir f v u = 0
Formalizes
Physlib, `Physlib.Wirtinger.differentiableAt_complex_iff_dWirtingerAntiDir_eq_zero`
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 7
Used by 1

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} invariable [IsScalarTower ℝ ℂ V] in/-- **Cauchy–Riemann.** `f` is `ℂ`-differentiable at `u` iff it is real-differentiable there and every anti-holomorphic Wirtinger derivative vanishes. Real differentiability is needed: `fderiv` is `0` where `f` is not differentiable. -/theorem Physlib.Wirtinger.differentiableAt_complex_iff_dWirtingerAntiDir_eq_zero (f : V → ℂ) (u : V) :    DifferentiableAt ℂ f u ↔      DifferentiableAt ℝ f u ∧ ∀ v, dWirtingerAntiDir f v u = 0 := by  constructor  · intro hf    refine ⟨hf.restrictScalars ℝ, fun v => ?_⟩    refine dWirtingerAntiDir_eq_zero_of_clinear ?_    rw [DifferentiableAt.fderiv_restrictScalars ℝ hf, ContinuousLinearMap.coe_restrictScalars',      map_smul]  · rintro ⟨hR, hv⟩    rw [differentiableAt_iff_restrictScalars ℝ hR]    exact ⟨ContinuousLinearMap.complexOfCommutesI (fderiv ℝ f u)      (fun v => clinear_of_dWirtingerAntiDir_eq_zero (hv v)), rfl⟩
See it in the graphDiscuss this resultChallenge it