openAI-math-dataset / lean /OAI /Analysis /AncientFlat /Evolution /FiniteCoreScaling.lean
roseking's picture
Add lean source and binary files (part 10)
12dee50 verified
Raw History Blame Contribute Delete
2.94 kB
9
lemma laplacian_mul (f : V → ℂ) (hf : ContDiff ℝ 2 f) (a : ℂ) :
    Δ (fun x => a*f x)=fun x => a*Δ f x := by
proof · 2 lines
  funext x
  exact InnerProductSpace.laplacian_smul a (hf.contDiffAt)
14
lemma correction_mul (f : V → ℂ) (hf : ContDiff ℝ 2 f) (a : ℂ) :
    correction (fun x => a*f x)=fun x => a*correction f x := correction_smul f hf a
16
lemma laplacian_sub (f g : V → ℂ) (hf : ContDiff ℝ 2 f) (hg : ContDiff ℝ 2 g) :
    Δ (f-g)=Δ f-Δ g := by
proof · 3 lines
  funext x
  exact hf.contDiffAt.laplacian_sub
    hg.contDiffAt
21
lemma compact_expand (f : V → ℂ) (hf : ContDiff ℝ 4 f) (x : V) :
    compactOp f x-flatOp f x=(errorTwo f x+errorFour f x)/16 := by
proof · 5 lines
  have hl := laplacian_smooth f hf
  have hc := correction_smooth f hf
  simp only [compactOp,flatOp,sphereLap,laplacian_sub _ _ hl hc,
    correction_sub _ _ hl hc,Pi.sub_apply,errorTwo,errorFour]
  ring
28
lemma errorTwo_scaled (f : V → ℂ) (hf : ContDiff ℝ 4 f) (q : ℝ) (x : V) :
    errorTwo (fun y => f (q • y)) x=(q:ℂ)^2*errorTwo f (q • x) := by
proof · 7 lines
  have hf2 : ContDiff ℝ 2 f := hf.of_le (by norm_num)
  have hl := laplacian_smooth f hf
  have hc := correction_smooth f hf
  have hs : ContDiff ℝ 2 (fun y => (Δ f) (q • y)) := hl.comp (by fun_prop)
  simp only [errorTwo,correction_scaled f hf2 q,laplacian_scaled _ hc q,
    laplacian_scaled f hf2 q,correction_mul _ hs ((q:ℂ)^2),correction_scaled _ hl q]
  ring
38
lemma errorFour_scaled (f : V → ℂ) (hf : ContDiff ℝ 4 f) (q : ℝ) (x : V) :
    errorFour (fun y => f (q • y)) x=errorFour f (q • x) := by
proof · 3 lines
  have hf2 : ContDiff ℝ 2 f := hf.of_le (by norm_num)
  simp only [errorFour,correction_scaled f hf2 q,
    correction_scaled _ (correction_smooth f hf) q]
43
lemma flat_scaled (f : V → ℂ) (hf : ContDiff ℝ 4 f) (q : ℝ) (x : V) :
    flatOp (fun y => f (q • y)) x=(q:ℂ)^4*flatOp f (q • x) := by
proof · 6 lines
  have hf2 : ContDiff ℝ 2 f := hf.of_le (by norm_num)
  have hl := laplacian_smooth f hf
  have hs : ContDiff ℝ 2 (fun y => (Δ f) (q • y)) := hl.comp (by fun_prop)
  simp only [flatOp,laplacian_scaled f hf2 q,laplacian_mul _ hs ((q:ℂ)^2),
    laplacian_scaled _ hl q]
  ring
52
theorem compact_scaled (f : V → ℂ) (hf : ContDiff ℝ 4 f) (q : ℝ) (x : V) :
    (q:ℂ)^4*compactOp f (q • x)-flatOp (fun y => f (q • y)) x=
      (q:ℂ)^2/16*errorTwo (fun y => f (q • y)) x+
      (q:ℂ)^4/16*errorFour (fun y => f (q • y)) x := by
proof · 3 lines
  rw [flat_scaled f hf q x,errorTwo_scaled f hf q x,errorFour_scaled f hf q x]
  have he := compact_expand f hf (q • x)
  linear_combination (q:ℂ)^4*he