/-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
module
public import Mathlib.Analysis.Calculus.FDeriv.Mul
/-!
# Functions differentiable on a domain and continuous on its closure
Many theorems in complex analysis assume that a function is complex differentiable on a domain and
is continuous on its closure. In this file we define a predicate `DiffContOnCl` that expresses
this property and prove basic facts about this predicate.
-/
public section
open Set Filter Metric
open scoped Topology
variable ( : Type*) {E F G : Type*} [NontriviallyNormedField ] [NormedAddCommGroup E]
[NormedAddCommGroup F] [NormedSpace E] [NormedSpace F] [NormedAddCommGroup G]
[NormedSpace G] {f g : E → F} {s t : Set E} {x : E}
/-- A predicate saying that a function is differentiable on a set and is continuous on its
closure. This is a common assumption in complex analysis. -/
structure DiffContOnCl (f : E → F) (s : Set E) : Prop where
protected differentiableOn : DifferentiableOn f s
protected continuousOn : ContinuousOn f (closure s)
variable {}
theorem DifferentiableOn.diffContOnCl (h : DifferentiableOn f (closure s)) : DiffContOnCl f s :=
⟨h.mono subset_closure, h.continuousOn⟩
theorem Differentiable.diffContOnCl (h : Differentiable f) : DiffContOnCl f s :=
⟨h.differentiableOn, h.continuous.continuousOn⟩
theorem IsClosed.diffContOnCl_iff (hs : IsClosed s) : DiffContOnCl f s ↔ DifferentiableOn f s :=
⟨fun h => h.differentiableOn, fun h => ⟨h, hs.closure_eq.symm ▸ h.continuousOn⟩⟩
theorem diffContOnCl_univ : DiffContOnCl f univ ↔ Differentiable f :=
isClosed_univ.diffContOnCl_iff.trans differentiableOn_univ
theorem diffContOnCl_const {c : F} : DiffContOnCl (fun _ : E => c) s :=
⟨differentiableOn_const c, continuousOn_const⟩
namespace DiffContOnCl
theorem comp {g : G → E} {t : Set G} (hf : DiffContOnCl f s) (hg : DiffContOnCl g t)
(h : MapsTo g t s) : DiffContOnCl (f ∘ g) t :=
⟨hf.1.comp hg.1 h, hf.2.comp hg.2 <| h.closure_of_continuousOn hg.2⟩
theorem continuousOn_ball [NormedSpace ℝ E] {x : E} {r : ℝ} (h : DiffContOnCl f (ball x r)) :
ContinuousOn f (closedBall x r) := by
rcases eq_or_ne r 0 with (rfl | hr)
· rw [closedBall_zero]
exact continuousOn_singleton f x
· rw [← closure_ball x hr]
exact h.continuousOn
theorem mk_ball {x : E} {r : ℝ} (hd : DifferentiableOn f (ball x r))
(hc : ContinuousOn f (closedBall x r)) : DiffContOnCl f (ball x r) :=
⟨hd, hc.mono closure_ball_subset_closedBall⟩
protected theorem differentiableAt (h : DiffContOnCl f s) (hs : IsOpen s) (hx : x ∈ s) :
DifferentiableAt f x :=
h.differentiableOn.differentiableAt <| hs.mem_nhds hx
theorem differentiableAt' (h : DiffContOnCl f s) (hx : s ∈ x) : DifferentiableAt f x :=
h.differentiableOn.differentiableAt hx
protected theorem mono (h : DiffContOnCl f s) (ht : t ⊆ s) : DiffContOnCl f t :=
⟨h.differentiableOn.mono ht, h.continuousOn.mono (closure_mono ht)⟩
theorem add (hf : DiffContOnCl f s) (hg : DiffContOnCl g s) : DiffContOnCl (f + g) s :=
⟨hf.1.add hg.1, hf.2.add hg.2⟩
theorem add_const (hf : DiffContOnCl f s) (c : F) : DiffContOnCl (fun x => f x + c) s :=
hf.add diffContOnCl_const
theorem const_add (hf : DiffContOnCl f s) (c : F) : DiffContOnCl (fun x => c + f x) s :=
diffContOnCl_const.add hf
theorem neg (hf : DiffContOnCl f s) : DiffContOnCl (-f) s :=
⟨hf.1.neg, hf.2.neg⟩
theorem sub (hf : DiffContOnCl f s) (hg : DiffContOnCl g s) : DiffContOnCl (f - g) s :=
⟨hf.1.sub hg.1, hf.2.sub hg.2⟩
theorem sub_const (hf : DiffContOnCl f s) (c : F) : DiffContOnCl (fun x => f x - c) s :=
hf.sub diffContOnCl_const
theorem const_sub (hf : DiffContOnCl f s) (c : F) : DiffContOnCl (fun x => c - f x) s :=
diffContOnCl_const.sub hf
theorem const_smul {R : Type*} [Semiring R] [Module R F] [SMulCommClass R F]
[ContinuousConstSMul R F] (hf : DiffContOnCl f s) (c : R) : DiffContOnCl (c • f) s :=
⟨hf.1.const_smul c, hf.2.const_smul c⟩
theorem smul {' : Type*} [NontriviallyNormedField '] [NormedAlgebra '] [NormedSpace ' F]
[IsScalarTower ' F] {c : E → '} {f : E → F} {s : Set E} (hc : DiffContOnCl c s)
(hf : DiffContOnCl f s) : DiffContOnCl (fun x => c x • f x) s :=
⟨hc.1.smul hf.1, hc.2.smul hf.2⟩
theorem smul_const {' : Type*} [NontriviallyNormedField '] [NormedAlgebra ']
[NormedSpace ' F] [IsScalarTower ' F] {c : E → '} {s : Set E} (hc : DiffContOnCl c s)
(y : F) : DiffContOnCl (fun x => c x • y) s :=
hc.smul diffContOnCl_const
theorem inv {f : E → } (hf : DiffContOnCl f s) (h₀ : ∀ x ∈ closure s, f x ≠ 0) :
DiffContOnCl f⁻¹ s :=
⟨(differentiableOn_inv.comp hf.1 fun _ hx => h₀ _ (subset_closure hx) :), hf.2.inv₀ h₀⟩
end DiffContOnCl
theorem Differentiable.comp_diffContOnCl {g : G → E} {t : Set G} (hf : Differentiable f)
(hg : DiffContOnCl g t) : DiffContOnCl (f ∘ g) t :=
hf.diffContOnCl.comp hg (mapsTo_image _ _)
theorem DifferentiableOn.diffContOnCl_ball {U : Set E} {c : E} {R : ℝ} (hf : DifferentiableOn f U)
(hc : closedBall c R ⊆ U) : DiffContOnCl f (ball c R) :=
DiffContOnCl.mk_ball (hf.mono (ball_subset_closedBall.trans hc)) (hf.continuousOn.mono hc)
¤ Dauer der Verarbeitung: 0.4 Sekunden
¤
*© Formatika GbR, Deutschland