File size: 4,619 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import OAI.Analysis.Calculus.Current.Physical.Hessian

/-! Uniform nondegeneracy of the background on physical spatial fibers. -/

noncomputable section
namespace OAI.Analysis.Calculus.Current

open OAI.Analysis.Calculus.Quaternion
open scoped Matrix

def physicalPhaseRow {d : β„•} (z : Index d β†’ β„‚) : Option (Fin d) β†’ β„‚
  | none => (Real.sqrt 2)⁻¹ β€’ (1 - fiberQuadratic (ratio z) / 2)
  | some i => ratio z i

theorem physicalPhaseRow_eq_jacobian {d : β„•} (z : Index d β†’ β„‚) :
    physicalPhaseRow z = physicalFiberJacobian 1 10 z none := by
  funext b
  cases b with
  | none =>
    simp [physicalPhaseRow, physicalFiberJacobian, fiberJacobian, phaseRow, fiberQuadratic]
    ring
  | some i => simp [physicalPhaseRow, physicalFiberJacobian, fiberJacobian, phaseRow]

theorem fderiv_physicalPhi_single {d : β„•} (Ο„ : β„‚) (q : Option (Fin d) β†’ β„‚)
    (hY : physicalEmbedding Ο„ q none β‰  0) (b : Option (Fin d)) :
    fderiv β„‚ (fun p => phi (physicalEmbedding Ο„ p)) q (Pi.single b 1) =
      physicalPhaseRow (physicalEmbedding Ο„ q) b := by
  have he : (fun p : Option (Fin d) β†’ β„‚ => fiberMap 1 10 (physicalEmbedding Ο„ p) none) =
      (fun p => phi (physicalEmbedding Ο„ p)) := by funext p; simp [fiberMap]
  rw [physicalPhaseRow_eq_jacobian, ← he]
  exact fderiv_physicalFiberMap_single 1 10 Ο„ q hY none b

def physicalBackgroundHessian {d : β„•} (Ο„ : β„‚) (q : Option (Fin d) β†’ β„‚) :
    Matrix (Option (Fin d)) (Option (Fin d)) OAI.Analysis.Calculus.Quaternion.Q :=
  OAI.Analysis.Calculus.Quaternion.imaginaryHessian (fun p => β€–phi (physicalEmbedding Ο„ p)β€– ^ 2) q

theorem physicalBackgroundHessian_diag {d : β„•} (Ο„ : β„‚) (q : Option (Fin d) β†’ β„‚)
    (hY : physicalEmbedding Ο„ q none β‰  0) (b : Option (Fin d)) :
    (physicalBackgroundHessian Ο„ q b b).re = 4 * β€–physicalPhaseRow (physicalEmbedding Ο„ q) bβ€– ^ 2 := by
  have he : (fun p : Option (Fin d) β†’ β„‚ => fiberMap 1 10 (physicalEmbedding Ο„ p) none) =
      (fun p => phi (physicalEmbedding Ο„ p)) := by funext p; simp [fiberMap]
  have hf : ContDiffAt β„‚ 2 (fun p => phi (physicalEmbedding Ο„ p)) q := by
    rw [← he]
    exact (contDiffAt_fiberMap_complex 1 10 (physicalEmbedding Ο„ q) hY none).comp q
      (contDiff_physicalEmbedding_complex Ο„).contDiffAt
  rw [physicalBackgroundHessian, OAI.Analysis.Calculus.Quaternion.imaginaryHessian_norm_sq hf,
    fderiv_physicalPhi_single Ο„ q hY b]
  simp [complexK, Complex.mul_re, pow_two]
  simpa only [Complex.normSq_apply, pow_two] using
    Complex.normSq_eq_norm_sq (physicalPhaseRow (physicalEmbedding Ο„ q) b)

theorem physicalBackgroundHessian_trace_formula {d : β„•} (Ο„ : β„‚) (q : Option (Fin d) β†’ β„‚)
    (hY : physicalEmbedding Ο„ q none β‰  0) :
    (βˆ‘ b, (physicalBackgroundHessian Ο„ q b b).re) =
      2 * β€–1 - fiberQuadratic (ratio (physicalEmbedding Ο„ q)) / 2β€– ^ 2 +
        4 * βˆ‘ i, β€–ratio (physicalEmbedding Ο„ q) iβ€– ^ 2 := by
  simp only [physicalBackgroundHessian_diag Ο„ q hY, Fintype.sum_option, physicalPhaseRow,
    norm_smul, Real.norm_eq_abs, abs_of_nonneg (inv_nonneg.mpr (Real.sqrt_nonneg _)),
    mul_pow, inv_pow, Real.sq_sqrt (by norm_num : (0 : ℝ) ≀ 2), ← Finset.mul_sum]
  ring

theorem physicalBackgroundHessian_trace_bounds {d : β„•} (a : ℝ) (Ο„ : β„‚)
    (q : Option (Fin d) β†’ β„‚) (hY : physicalEmbedding Ο„ q none β‰  0)
    (hr : physicalFiberDefining (1 / 10) a Ο„ q ≀ 0) :
    1 ≀ (βˆ‘ b, (physicalBackgroundHessian Ο„ q b b).re) ∧
      (βˆ‘ b, (physicalBackgroundHessian Ο„ q b b).re) ≀ 3 := by
  let z := physicalEmbedding Ο„ q
  have hW := fiber_ratio_bound (1 / 10) a z (by norm_num) hr
  have hW0 : 0 ≀ βˆ‘ i, β€–ratio z iβ€– ^ 2 := Finset.sum_nonneg (fun _ _ => sq_nonneg _)
  have hQ := (norm_fiberQuadratic_le (ratio z)).trans hW
  have hq : β€–fiberQuadratic (ratio z) / 2β€– ≀ (1 / 200 : ℝ) := by
    rw [norm_div]
    norm_num
    linarith
  have hu := norm_sub_le (1 : β„‚) (fiberQuadratic (ratio z) / 2)
  have hl := norm_sub_norm_le (1 : β„‚) (fiberQuadratic (ratio z) / 2)
  simp only [norm_one] at hu hl
  have hNl : (199 / 200 : ℝ) ≀ β€–1 - fiberQuadratic (ratio z) / 2β€– := by linarith
  have hNu : β€–1 - fiberQuadratic (ratio z) / 2β€– ≀ (201 / 200 : ℝ) := by linarith
  rw [physicalBackgroundHessian_trace_formula Ο„ q hY]
  change 1 ≀ 2 * β€–1 - fiberQuadratic (ratio z) / 2β€– ^ 2 + 4 * βˆ‘ i, β€–ratio z iβ€– ^ 2 ∧
    2 * β€–1 - fiberQuadratic (ratio z) / 2β€– ^ 2 + 4 * βˆ‘ i, β€–ratio z iβ€– ^ 2 ≀ 3
  constructor <;> nlinarith [norm_nonneg (1 - fiberQuadratic (ratio z) / 2)]

end OAI.Analysis.Calculus.Current