Buckets:
| import Mathlib | |
| import OAI.Analysis.Crouzeix.NumericalRange | |
| namespace OAI | |
| /-! Convexity of the numerical range and its closure. -/ | |
| noncomputable section | |
| open scoped TensorProduct Matrix.Norms.L2Operator InnerProductSpace | |
| open Set | |
| namespace CrouzeixHilbert | |
| universe u | |
| variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| theorem phase_real (u v : ℂ) : | |
| ∃ c : ℂ, ‖c‖ = 1 ∧ (c * u + star c * v).im = 0 := by | |
| let d : ℂ := u - star v | |
| have him (c : ℂ) : (c * u + star c * v).im = (c * d).im := by | |
| simp only [d, mul_sub, Complex.add_im, Complex.sub_im, Complex.mul_im, | |
| Complex.star_def, Complex.conj_re, Complex.conj_im] | |
| ring | |
| by_cases hd : d = 0 | |
| · refine ⟨1, norm_one, ?_⟩ | |
| rw [him, hd, mul_zero, Complex.zero_im] | |
| · refine ⟨(‖d‖ : ℂ)⁻¹ * star d, ?_, ?_⟩ | |
| · simp [hd] | |
| · rw [him, mul_assoc] | |
| simp only [Complex.star_def, Complex.conj_mul', ← Complex.ofReal_inv, | |
| ← Complex.ofReal_pow, ← Complex.ofReal_mul, Complex.ofReal_im] | |
| theorem unit_interval_of_quadratic_endpoints (B : Operator H) | |
| (x y : H) (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) | |
| (hBx : ⟪x, B x⟫_ℂ = 0) (hBy : ⟪y, B y⟫_ℂ = 1) | |
| (t : ℝ) (ht : t ∈ Icc (0 : ℝ) 1) : | |
| ∃ w : H, ‖w‖ = 1 ∧ ⟪w, B w⟫_ℂ = (t : ℂ) := by | |
| obtain ⟨c, hc, hcross⟩ := phase_real ⟪x, B y⟫_ℂ ⟪y, B x⟫_ℂ | |
| let y' : H := c • y | |
| have hy' : ‖y'‖ = 1 := by simp [y', norm_smul, hc, hy] | |
| have hy'B : ⟪y', B y'⟫_ℂ = 1 := by | |
| simp only [y', map_smul, inner_smul_left, inner_smul_right, hBy, mul_one, | |
| Complex.mul_conj', hc, Complex.ofReal_one, one_pow] | |
| have hc' : (⟪x, B y'⟫_ℂ + ⟪y', B x⟫_ℂ).im = 0 := by | |
| simpa only [y', map_smul, inner_smul_left, inner_smul_right, starRingEnd_apply] using hcross | |
| let q : ℝ → H := fun s => ((1 - s : ℝ) : ℂ) • x + (s : ℂ) • y' | |
| have hq0 (s : ℝ) : q s ≠ 0 := by | |
| intro hz | |
| have heq : (((1 - s : ℝ) : ℂ) • x) = -(s : ℂ) • y' := by | |
| simpa only [neg_smul] using eq_neg_of_add_eq_zero_left hz | |
| have hq := congrArg (fun z : H => ⟪z, B z⟫_ℂ) heq | |
| simp only [map_smul, inner_smul_left, inner_smul_right, hBx, hy'B, mul_zero, | |
| mul_one, map_neg, Complex.conj_ofReal, neg_mul_neg] at hq | |
| have hs : s = 0 := by | |
| have hh := congrArg Complex.re hq | |
| simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, mul_zero, | |
| sub_zero, Complex.zero_re] at hh | |
| nlinarith | |
| simp [q, hs] at hz | |
| rw [hz] at hx | |
| norm_num at hx | |
| have hq : Continuous q := by | |
| dsimp [q] | |
| fun_prop | |
| have hqi (s : ℝ) : (⟪q s, B (q s)⟫_ℂ).im = 0 := by | |
| have heq : ⟪q s, B (q s)⟫_ℂ = (s : ℂ) ^ 2 + | |
| (s : ℂ) * (1 - (s : ℂ)) * (⟪x, B y'⟫_ℂ + ⟪y', B x⟫_ℂ) := by | |
| simp only [q, map_add, map_smul, inner_add_left, inner_add_right, | |
| inner_smul_left, inner_smul_right, Complex.conj_ofReal, hBx, hy'B, map_sub, map_one, | |
| mul_zero, mul_one, zero_add, Complex.ofReal_sub, Complex.ofReal_one] | |
| ring | |
| rw [heq] | |
| simp [Complex.add_im, Complex.mul_im, hc', pow_two] | |
| let g : ℝ → H := fun s => (‖q s‖ : ℂ)⁻¹ • q s | |
| have hg (s : ℝ) : ‖g s‖ = 1 := by | |
| simp [g, norm_smul, hq0 s] | |
| have hgc : Continuous g := by | |
| apply Continuous.smul _ hq | |
| apply Continuous.inv₀ (Complex.continuous_ofReal.comp hq.norm) | |
| intro s | |
| change (‖q s‖ : ℂ) ≠ 0 | |
| exact_mod_cast norm_ne_zero_iff.mpr (hq0 s) | |
| have hgi (s : ℝ) : (⟪g s, B (g s)⟫_ℂ).im = 0 := by | |
| simp only [g, map_smul, inner_smul_left, inner_smul_right, ← Complex.ofReal_inv, | |
| Complex.conj_ofReal, Complex.mul_im, Complex.ofReal_im, Complex.ofReal_re, hqi s] | |
| ring | |
| let f : ℝ → ℝ := fun s => (⟪g s, B (g s)⟫_ℂ).re | |
| have hfc : Continuous f := Complex.continuous_re.comp (hgc.inner (𝕜 := ℂ) (B.continuous.comp hgc)) | |
| have hf0 : f 0 = 0 := by simp [f, g, q, hx, hBx] | |
| have hf1 : f 1 = 1 := by simp [f, g, q, hy', hy'B] | |
| have hmem : t ∈ Icc (f 0) (f 1) := by simpa only [hf0, hf1] using ht | |
| obtain ⟨s, _, hs⟩ := intermediate_value_Icc (by norm_num : (0 : ℝ) ≤ 1) hfc.continuousOn hmem | |
| refine ⟨g s, hg s, ?_⟩ | |
| apply Complex.ext | |
| · exact hs | |
| · exact hgi s | |
| theorem convex_numericalRange (A : Operator H) : Convex ℝ (numericalRange A) := by | |
| intro a ha b hb α β hα hβ hsum | |
| by_cases hab : a = b | |
| · subst b | |
| rw [← add_smul, hsum, one_smul] | |
| exact ha | |
| obtain ⟨x, hx, hAx⟩ := ha | |
| obtain ⟨y, hy, hAy⟩ := hb | |
| have hba : b - a ≠ 0 := sub_ne_zero.mpr (Ne.symm hab) | |
| let B : Operator H := (b - a)⁻¹ • (A - a • 1) | |
| have hform (v : H) (hv : ‖v‖ = 1) : | |
| ⟪v, B v⟫_ℂ = (b - a)⁻¹ * (⟪v, A v⟫_ℂ - a) := by | |
| simp [B, inner_self_eq_norm_sq_to_K, hv] | |
| have hBx : ⟪x, B x⟫_ℂ = 0 := by rw [hform x hx, hAx, sub_self, mul_zero] | |
| have hBy : ⟪y, B y⟫_ℂ = 1 := by rw [hform y hy, hAy, inv_mul_cancel₀ hba] | |
| obtain ⟨w, hw, hwB⟩ := unit_interval_of_quadratic_endpoints B x y hx hy hBx hBy | |
| β ⟨hβ, by linarith⟩ | |
| refine ⟨w, hw, ?_⟩ | |
| rw [hform w hw] at hwB | |
| have hid := congrArg (fun z : ℂ => (b - a) * z) hwB | |
| simp only [← mul_assoc, mul_inv_cancel₀ hba, one_mul] at hid | |
| have hsumC : (α : ℂ) + (β : ℂ) = 1 := by exact_mod_cast hsum | |
| calc | |
| ⟪w, A w⟫_ℂ = (⟪w, A w⟫_ℂ - a) + a := by ring | |
| _ = (b - a) * (β : ℂ) + a := by rw [hid] | |
| _ = α • a + β • b := by | |
| simp only [Complex.real_smul] | |
| linear_combination -a * hsumC | |
| theorem convex_numericalClosure (A : Operator H) : Convex ℝ (numericalClosure A) := | |
| (convex_numericalRange A).closure | |
| theorem hilbert_geometry [CompleteSpace H] (A : Operator H) : | |
| IsCompact (numericalClosure A) ∧ Convex ℝ (numericalClosure A) ∧ | |
| spectrum ℂ A ⊆ numericalClosure A := | |
| ⟨isCompact_numericalClosure A, convex_numericalClosure A, | |
| spectrum_subset_numericalClosure A⟩ | |
| end CrouzeixHilbert | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 6.01 kB
- Xet hash:
- e5f2620cdd1293d08faca4f59e8c90d11cc1bbce40a7a1245d469e0ff8e6f26a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.