cfahlgren1/math / lean /OAI /Analysis /Crouzeix /ContourHomotopy.lean
cfahlgren1's picture
download
raw
13.6 kB
import Mathlib
import OAI.Analysis.Crouzeix.Convexity
namespace OAI
/-! Contour Homotopy. -/
noncomputable section
open scoped InnerProductSpace Topology
open Set Filter
namespace CrouzeixHilbert
universe u
variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
def operatorHomotopy (A : Operator H) (a : ℂ) (s : ℝ) : Operator H :=
algebraMap ℂ (Operator H) a + s • (A - algebraMap ℂ (Operator H) a)
@[simp] theorem operatorHomotopy_zero (A : Operator H) (a : ℂ) :
operatorHomotopy A a 0 = algebraMap ℂ (Operator H) a := by simp [operatorHomotopy]
@[simp] theorem operatorHomotopy_one (A : Operator H) (a : ℂ) :
operatorHomotopy A a 1 = A := by simp [operatorHomotopy]
theorem numericalClosure_operatorHomotopy_subset (A : Operator H) {a : ℂ}
(ha : a ∈ numericalClosure A) {s : ℝ} (hs : s ∈ Icc (0 : ℝ) 1) :
numericalClosure (operatorHomotopy A a s) ⊆ numericalClosure A := by
apply closure_minimal _ isClosed_closure
rintro z ⟨x, hx, rfl⟩
have h := (convex_numericalClosure A).add_smul_sub_mem ha
(subset_closure (show ⟪x, A x⟫_ℂ ∈ numericalRange A from ⟨x, hx, rfl⟩)) hs
simpa [operatorHomotopy, ContinuousLinearMap.algebraMap_apply,
inner_self_eq_norm_sq_to_K, hx] using! h
def homotopyResolvent (A : Operator H) (a : ℂ) (s : ℝ) (z : ℂ) : Operator H :=
Ring.inverse (algebraMap ℂ (Operator H) z - operatorHomotopy A a s)
theorem homotopy_resolvent_isUnit [CompleteSpace H] (A : Operator H) {a z : ℂ}
(ha : a ∈ numericalClosure A) {s : ℝ} (hs : s ∈ Icc (0 : ℝ) 1)
(hz : z ∉ numericalClosure A) :
IsUnit (algebraMap ℂ (Operator H) z - operatorHomotopy A a s) := by
change z ∈ resolventSet ℂ (operatorHomotopy A a s)
by_contra he
exact hz (numericalClosure_operatorHomotopy_subset A ha hs
(spectrum_subset_numericalClosure _ he))
theorem continuousOn_homotopyResolvent [CompleteSpace H] (A : Operator H)
{a : ℂ} (ha : a ∈ numericalClosure A) :
ContinuousOn (fun p : ℝ × ℂ => homotopyResolvent A a p.1 p.2)
(Icc (0 : ℝ) 1 ×ˢ (numericalClosure A)ᶜ) := by
have hc : Continuous (fun p : ℝ × ℂ =>
algebraMap ℂ (Operator H) p.2 - operatorHomotopy A a p.1) :=
by simp only [operatorHomotopy, Algebra.algebraMap_eq_smul_one]; fun_prop
intro p hp
exact ((differentiableAt_inverse (𝕜 := ℝ)
(homotopy_resolvent_isUnit A ha hp.1 hp.2)).continuousAt.comp
(f := fun q : ℝ × ℂ => algebraMap ℂ (Operator H) q.2 - operatorHomotopy A a q.1)
(x := p) hc.continuousAt).continuousWithinAt
theorem commute_homotopyResolvent (A : Operator H) (a : ℂ) (s : ℝ) (z : ℂ) :
Commute (A - algebraMap ℂ (Operator H) a) (homotopyResolvent A a s z) := by
let D := A - algebraMap ℂ (Operator H) a
have hc : Commute D (algebraMap ℂ (Operator H) z - operatorHomotopy A a s) := by
apply Commute.sub_right (Algebra.commutes z D).symm
exact (show Commute D (algebraMap ℂ (Operator H) a) from (Algebra.commutes a D).symm).add_right ((Commute.refl D).smul_right s)
by_cases hu : IsUnit (algebraMap ℂ (Operator H) z - operatorHomotopy A a s)
· rcases hu with ⟨v, hv⟩
change Commute D (Ring.inverse _)
rw [← hv, Ring.inverse_unit]
exact (show Commute D (v : Operator H) from hv.symm ▸ hc).units_inv_right
· simp only [homotopyResolvent, Ring.inverse_non_unit _ hu]
exact Commute.zero_right _
theorem hasDerivAt_homotopyResolvent [CompleteSpace H] (A : Operator H)
{a z : ℂ} (ha : a ∈ numericalClosure A) {s : ℝ}
(hs : s ∈ Icc (0 : ℝ) 1) (hz : z ∉ numericalClosure A) :
HasDerivAt (fun r : ℝ => homotopyResolvent A a r z)
(homotopyResolvent A a s z * (A - algebraMap ℂ (Operator H) a) *
homotopyResolvent A a s z) s := by
have hu := homotopy_resolvent_isUnit A ha hs hz
have h₁ : HasFDerivAt Ring.inverse _
(algebraMap ℂ (Operator H) z - operatorHomotopy A a s) :=
hasFDerivAt_ringInverse (𝕜 := ℝ) hu.unit
have h₂ : HasDerivAt (fun r : ℝ => algebraMap ℂ (Operator H) z - operatorHomotopy A a r)
(-(A - algebraMap ℂ (Operator H) a)) s := by
simpa only [operatorHomotopy, one_smul, zero_add, zero_sub, id_eq] using!
(((hasDerivAt_id s).smul_const (A - algebraMap ℂ (Operator H) a)).const_add
(algebraMap ℂ (Operator H) a)).const_sub (algebraMap ℂ (Operator H) z)
simpa only [homotopyResolvent, Function.comp_def, neg_apply,
ContinuousLinearMap.mulLeftRight_apply, ← Ring.inverse_unit hu.unit, hu.unit_spec,
mul_neg, neg_mul, neg_neg] using! h₁.comp_hasDerivAt s h₂
theorem hasDerivAt_homotopyResolvent_path [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) {s t : ℝ}
(hs : s ∈ Icc (0 : ℝ) 1) (ht : t ∈ Icc (0 : ℝ) 1) :
HasDerivAt (fun r : ℝ => homotopyResolvent A a s (Γ.path r))
(-(deriv Γ.path t) • (homotopyResolvent A a s (Γ.path t)) ^ 2) t := by
have hu := homotopy_resolvent_isUnit A ha hs (Γ.avoids t ht).2
have h₁ := spectrum.hasDerivAt_resolvent_const_left (𝕜 := ℂ) hu
have h₂ : HasDerivAt Γ.path (deriv Γ.path t) t :=
(Γ.smooth.differentiable (by norm_num) t).hasDerivAt
have h := (h₁.hasFDerivAt.restrictScalars ℝ).comp_hasDerivAt t h₂
simpa [homotopyResolvent, resolvent, neg_smul, Function.comp_def] using! h
theorem continuousOn_homotopyResolvent_path [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) :
ContinuousOn (fun p : ℝ × ℝ => homotopyResolvent A a p.1 (Γ.path p.2))
(Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) 1) :=
(continuousOn_homotopyResolvent A ha).comp
((continuous_fst.prodMk (Γ.smooth.continuous.comp continuous_snd)).continuousOn)
(fun p hp => ⟨hp.1, (Γ.avoids p.2 hp.2).2⟩)
def homotopyKernel (A : Operator H) (a : ℂ) (Γ : SmoothContour) (s t : ℝ) : Operator H :=
deriv Γ.path t • (homotopyResolvent A a s (Γ.path t) *
(A - algebraMap ℂ (Operator H) a) * homotopyResolvent A a s (Γ.path t))
theorem continuousOn_homotopyKernel [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) :
ContinuousOn (Function.uncurry (homotopyKernel A a Γ.toSmoothContour))
(Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) 1) := by
have hr := continuousOn_homotopyResolvent_path A Γ ha
exact (Γ.smooth.continuous_deriv_one.comp continuous_snd).continuousOn.smul
((hr.mul continuousOn_const).mul hr)
theorem intervalIntegrable_homotopyKernel_left [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) {t : ℝ} (ht : t ∈ Icc (0 : ℝ) 1) :
IntervalIntegrable (fun s => homotopyKernel A a Γ.toSmoothContour s t)
MeasureTheory.volume (0 : ℝ) 1 := by
have hc := (continuousOn_homotopyKernel A Γ ha).comp
(continuous_id.prodMk continuous_const).continuousOn (fun s hs => ⟨hs, ht⟩)
apply ContinuousOn.intervalIntegrable
simpa only [uIcc_of_le zero_le_one, Function.comp_def, Function.uncurry_def] using! hc
theorem intervalIntegrable_homotopyKernel_right [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) {s : ℝ} (hs : s ∈ Icc (0 : ℝ) 1) :
IntervalIntegrable (homotopyKernel A a Γ.toSmoothContour s)
MeasureTheory.volume (0 : ℝ) 1 := by
have hc := (continuousOn_homotopyKernel A Γ ha).comp
(continuous_const.prodMk continuous_id).continuousOn (fun t ht => ⟨hs, ht⟩)
apply ContinuousOn.intervalIntegrable
simpa only [uIcc_of_le zero_le_one, Function.comp_def, Function.uncurry_def] using! hc
theorem integral_homotopyKernel_left [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) {t : ℝ} (ht : t ∈ Icc (0 : ℝ) 1) :
(∫ s in (0 : ℝ)..1, homotopyKernel A a Γ.toSmoothContour s t) =
deriv Γ.path t • homotopyResolvent A a 1 (Γ.path t) -
deriv Γ.path t • homotopyResolvent A a 0 (Γ.path t) := by
apply intervalIntegral.integral_eq_sub_of_hasDerivAt
(f := fun r => deriv Γ.path t • homotopyResolvent A a r (Γ.path t)) _
(intervalIntegrable_homotopyKernel_left A Γ ha ht)
intro s hs
exact (hasDerivAt_homotopyResolvent A ha (by simpa using hs) (Γ.avoids t ht).2).const_smul
(deriv Γ.path t)
theorem hasDerivAt_homotopyKernel_primitive [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) {s t : ℝ}
(hs : s ∈ Icc (0 : ℝ) 1) (ht : t ∈ Icc (0 : ℝ) 1) :
HasDerivAt (fun r : ℝ => -((A - algebraMap ℂ (Operator H) a) *
homotopyResolvent A a s (Γ.path r)))
(homotopyKernel A a Γ.toSmoothContour s t) t := by
have h := (hasDerivAt_homotopyResolvent_path A Γ ha hs ht).const_mul
(A - algebraMap ℂ (Operator H) a) |>.neg
have hc := (commute_homotopyResolvent A a s (Γ.path t)).eq
simpa only [homotopyKernel, mul_smul_comm, neg_smul, mul_neg, neg_neg,
sq, ← mul_assoc, hc] using! h
theorem integral_homotopyKernel_right [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) {s : ℝ} (hs : s ∈ Icc (0 : ℝ) 1) :
(∫ t in (0 : ℝ)..1, homotopyKernel A a Γ.toSmoothContour s t) = 0 := by
have he := intervalIntegral.integral_eq_sub_of_hasDerivAt
(fun t ht => hasDerivAt_homotopyKernel_primitive A Γ ha hs (by simpa using ht))
(intervalIntegrable_homotopyKernel_right A Γ ha hs)
simpa only [Γ.closed, sub_self] using he
theorem integral_integral_homotopyKernel [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) :
(∫ t in (0 : ℝ)..1, ∫ s in (0 : ℝ)..1, homotopyKernel A a Γ.toSmoothContour s t) = 0 := by
have hc := continuousOn_homotopyKernel A Γ ha
have hi := (hc.integrableOn_compact (μ := MeasureTheory.volume) (isCompact_Icc.prod isCompact_Icc)).mono_set
(Set.prod_mono Ioc_subset_Icc_self Ioc_subset_Icc_self)
have hFub := MeasureTheory.intervalIntegral_intervalIntegral_swap
(F := homotopyKernel A a Γ.toSmoothContour)
(a := (0 : ℝ)) (b := 1) (c := 0) (d := 1) (by simpa using! hi)
rw [← hFub]
calc
_ = ∫ _s in (0 : ℝ)..1, (0 : Operator H) := by
apply intervalIntegral.integral_congr
intro s hs
exact integral_homotopyKernel_right A Γ ha (by simpa using hs)
_ = 0 := by simp
theorem integral_resolvent_homotopy [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U)
{a : ℂ} (ha : a ∈ numericalClosure A) :
(∫ t in (0 : ℝ)..1, deriv Γ.path t • Ring.inverse (algebraMap ℂ (Operator H) (Γ.path t) - A)) =
∫ t in (0 : ℝ)..1, deriv Γ.path t •
Ring.inverse (algebraMap ℂ (Operator H) (Γ.path t) - algebraMap ℂ (Operator H) a) := by
have hint (s : ℝ) (hs : s ∈ Icc (0 : ℝ) 1) :
IntervalIntegrable (fun t => deriv Γ.path t • homotopyResolvent A a s (Γ.path t))
MeasureTheory.volume (0 : ℝ) 1 := by
have hc := (continuousOn_homotopyResolvent_path A Γ ha).comp
(continuous_const.prodMk continuous_id).continuousOn (fun t ht => ⟨hs, ht⟩)
apply ContinuousOn.intervalIntegrable
simpa only [uIcc_of_le zero_le_one] using!
Γ.smooth.continuous_deriv_one.continuousOn.smul hc
have he : (∫ t in (0 : ℝ)..1, deriv Γ.path t • homotopyResolvent A a 1 (Γ.path t)) =
∫ t in (0 : ℝ)..1, deriv Γ.path t • homotopyResolvent A a 0 (Γ.path t) := by
apply sub_eq_zero.mp
rw [← intervalIntegral.integral_sub (hint 1 ⟨zero_le_one, le_rfl⟩) (hint 0 ⟨le_rfl, zero_le_one⟩)]
convert integral_integral_homotopyKernel A Γ ha using 1
apply intervalIntegral.integral_congr
intro t ht
exact (integral_homotopyKernel_left A Γ ha (by simpa using ht)).symm
simpa only [homotopyResolvent, operatorHomotopy_one, operatorHomotopy_zero] using he
theorem ring_inverse_algebraMap (z : ℂ) :
Ring.inverse (algebraMap ℂ (Operator H) z) = z⁻¹ • (1 : Operator H) := by
by_cases hz : z = 0
· simp [hz]
have hu : IsUnit (algebraMap ℂ (Operator H) z) :=
(isUnit_iff_ne_zero.mpr hz).map (algebraMap ℂ (Operator H))
have he := (Ring.inverse_mul_eq_iff_eq_mul (algebraMap ℂ (Operator H) z)
1 (z⁻¹ • (1 : Operator H)) hu).mpr (by
rw [← Algebra.algebraMap_eq_smul_one, ← map_mul, mul_inv_cancel₀ hz, map_one])
simpa only [mul_one] using he
theorem contourEval_one [CompleteSpace H] (A : Operator H)
{U : Set ℂ} (Γ : CalculusContour (numericalClosure A) U) :
contourEval A Γ.toSmoothContour (fun _ => 1) = 1 := by
nontriviality H
obtain ⟨a, ha⟩ := numericalClosure_nonempty A
unfold contourEval
simp only [mul_one]
rw [integral_resolvent_homotopy A Γ ha]
simp only [← map_sub, ring_inverse_algebraMap, smul_smul,
intervalIntegral.integral_smul_const, smul_smul]
change Γ.toSmoothContour.index a • (1 : Operator H) = 1
rw [Γ.index_inside a ha, one_smul]
end CrouzeixHilbert
end
end OAI

Xet Storage Details

Size:
13.6 kB
·
Xet hash:
3ab57303d5130b64425a4d3aead41ecad924eb157690b66b94e3c61195275c1a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.