roseking's picture
Add lean source and binary files (part 16)
159357f verified
Raw History Blame Contribute Delete
4.66 kB
35
def restrictWeakGraph (v : ι → E) (j : κ → ι) (F : weakGraph v) : weakGraph (v ∘ j) :=
body · 2 lines
  ⟨WithLp.toLp 2 (fun k => F.val (k.map j)), (mem_weakGraph _ _).mpr
    (fun k => (mem_weakGraph _ _).mp F.property (j k))⟩
39
def SmoothMultiplier.restrict {v : ι → E} (p : SmoothMultiplier v) (j : κ → ι) :
    SmoothMultiplier (v ∘ j) where
body · 4 lines
  value := p.value
  regular := p.regular
  bound := p.bound
  gradient_bound := fun k => p.gradient_bound (j k)
47
lemma SmoothMultiplier.restrict_apply {v : ι → E} (p : SmoothMultiplier v)
    (j : κ → ι) (F : weakGraph v) :
    (p.restrict j).apply (restrictWeakGraph v j F) = restrictWeakGraph v j (p.apply F) := by
proof · 3 lines
  apply weakGraphValue_injective (v ∘ j)
  apply Lp.ext
  exact (p.restrict j).apply_value (restrictWeakGraph v j F) |>.trans (p.apply_value F).symm
55
lemma SmoothMultiplier.projected_kinetic_nonneg {v : ι → E}
    (P : E →L[ℝ] Space) (j : Fin 3 → ι)
    (hP : ∀ a, P (v (j a)) = EuclideanSpace.single a 1) (p : SmoothMultiplier v)
    (hp : ∀ x, (∑ a : Fin 3, (lineDeriv ℝ p.value x (v (j a))) ^ 2) ≤
      p.value x ^ 2 / (4 * ‖P x‖ ^ 2)) (F : weakGraph v) :
    0 ≤ ∑ a : Fin 3, (⟪(p.apply (p.apply F)).val (some (j a)), F.val (some (j a))⟫_ℂ).re := by
proof · 4 lines
  have hh := (p.restrict j).weighted_kinetic_nonneg P (v ∘ j) hP hp
    (restrictWeakGraph v j F)
  rw [p.restrict_apply, p.restrict_apply] at hh
  exact hh
68
lemma lineDeriv_binding_coordinate {N : ℕ} {R ε : ℝ} (hR : 0 < R) (hε : 0 < ε)
    (i j : Fin N) (a : Fin 3) (x : Configuration N) :
    lineDeriv ℝ (fun y : Configuration N => bindingRoot R ε (y i)) x (direction j a) =
      if j = i then fderiv ℝ (bindingRoot R ε) (x i) (EuclideanSpace.single a 1) else 0 := by
proof · 10 lines
  classical
  have h := ((bindingRoot_smooth hR hε).differentiable (by simp) (x i)).hasFDerivAt.comp
    x (electronProjection i).hasFDerivAt
  change HasFDerivAt (fun y : Configuration N => bindingRoot R ε (y i)) _ x at h
  rw [h.differentiableAt.lineDeriv_eq_fderiv, h.fderiv]
  change fderiv ℝ (bindingRoot R ε) (x i) (direction j a i) = _
  by_cases hij : j = i
  · subst j
    simp [direction]
  · simp [direction, hij, Ne.symm hij]
83
def bindingMultiplier {N : ℕ} {R ε : ℝ} (hR : 0 < R) (hε : 0 < ε) (i : Fin N) :
    SmoothMultiplier (sectorDirections N) where
body · 8 lines
  value := fun x => bindingRoot R ε (x i)
  regular := (bindingRoot_smooth hR hε).comp (electronProjection i).contDiff
  bound := ⟨Real.sqrt R, fun x => bindingRoot_bound hR hε (x i)⟩
  gradient_bound := fun j => ⟨Real.sqrt R / (2*ε), fun x => by
    rw [lineDeriv_binding_coordinate hR hε i j.1 j.2 x]
    split_ifs
    · exact bindingRoot_gradient_bound hR hε j.2 (x i)
    · simp only [abs_zero]; positivity⟩
94
lemma bindingMultiplier_kinetic_nonneg {N : ℕ} {R ε : ℝ} (hR : 0 < R) (hε : 0 < ε)
    (i : Fin N) (F : weakGraph (sectorDirections N)) :
    0 ≤ ∑ a : Fin 3, (⟪((bindingMultiplier hR hε i).apply
      ((bindingMultiplier hR hε i).apply F)).val (some (i,a)), F.val (some (i,a))⟫_ℂ).re := by
proof · 7 lines
  apply (bindingMultiplier hR hε i).projected_kinetic_nonneg (electronProjection i)
    (fun a => (i,a))
  · intro a
    simp [sectorDirections, direction, electronProjection]
  · intro x
    simpa [bindingMultiplier, sectorDirections, lineDeriv_binding_coordinate hR hε,
      electronProjection] using bindingRoot_hardy_control hR hε (x i)