This journal is in preparation. Submissions are open as a pilot and the editorial board is being formed. Articles marked Demonstration show the format only.
Journal of Machine-Verified MathematicsPeer-reviewed mathematics with machine-checked proofs, for the age of AI

E424/Tools/T5Aux.lean

All files · 87 lines · source at the verified commit

1module
2
3public import E424.Tools.T4
4
5@[expose] public section
6
7/-!
8# Erdős 424: helpers for T5 (pointwise bound of `‖D t‖²` by a unit-window integral).
9-/
10
11set_option linter.style.header false
12open Finset MeasureTheory Set
13
14namespace E424
15
16/-- For a `C¹` function `D`, `‖D t‖²` is at most the integral of `‖D‖² + 2‖D‖‖D'‖` over the
17unit window around `t`. -/
18lemma pointwise_le_window (D D' : ℝ → ℂ) (hD : ∀ x, HasDerivAt D (D' x) x)
19 (hD' : Continuous D') (t : ℝ) :
20 ‖D t‖ ^ 2 ≤ ∫ u in Icc (t - 1 / 2) (t + 1 / 2), (‖D u‖ ^ 2 + 2 * ‖D u‖ * ‖D' u‖) := by
21 have hDc : Continuous D := continuous_iff_continuousAt.2 fun x => (hD x).continuousAt
22 set I : Set ℝ := Icc (t - 1 / 2) (t + 1 / 2) with hI
23 set h : ℝ → ℝ := fun u => 2 * ‖D u‖ * ‖D' u‖ with hh
24 have hhc : Continuous h := by simp only [hh]; fun_prop
25 set g' : ℝ → ℝ := fun x => 2 * inner ℝ (D x) (D' x) with hg'
26 have hg'c : Continuous g' := by
27 simp only [hg']; exact continuous_const.mul (hDc.inner hD')
28 have hg'h : ∀ x, |g' x| ≤ h x := fun x => by
29 simp only [hg', hh, abs_mul]
30 have := abs_real_inner_le_norm (D x) (D' x)
31 rw [abs_two]; linarith [mul_comm ‖D x‖ ‖D' x‖]
32 set K : ℝ := ∫ v in I, h v with hK
33 have hIvol : volume I = 1 := by simp [hI]; norm_num
34 have hIint : IntegrableOn (fun u => ‖D u‖ ^ 2) I := (by fun_prop : Continuous fun u => ‖D u‖ ^ 2).continuousOn.integrableOn_Icc
35 have key : ∀ u ∈ I, ‖D t‖ ^ 2 ≤ ‖D u‖ ^ 2 + K := by
36 intro u hu
37 have hftc : ∫ v in u..t, g' v = ‖D t‖ ^ 2 - ‖D u‖ ^ 2 :=
38 intervalIntegral.integral_eq_sub_of_hasDerivAt (f := fun x => ‖D x‖ ^ 2)
39 (fun x _ => (hD x).norm_sq) (hg'c.intervalIntegrable _ _)
40 have h1 : ‖D t‖ ^ 2 - ‖D u‖ ^ 2 ≤ |∫ v in u..t, g' v| := by rw [hftc]; exact le_abs_self _
41 rw [intervalIntegral.abs_integral_eq_abs_integral_uIoc] at h1
42 have hsub : uIoc u t ⊆ I := by
43 intro x hx
44 rw [uIoc_eq_union] at hx
45 simp only [hI, Set.mem_Icc] at hu ⊢
46 rcases hx with hx | hx <;> simp only [Set.mem_Ioc] at hx <;> constructor <;> linarith [hx.1, hx.2]
47 have hint : ∀ f : ℝ → ℝ, Continuous f → IntegrableOn f (uIoc u t) :=
48 fun f hf => (hf.integrableOn_Icc (a := min u t) (b := max u t)).mono_set
49 (by intro x hx; simp only [uIoc, Set.mem_Ioc, Set.mem_Icc] at hx ⊢; exact ⟨hx.1.le, hx.2⟩)
50 have h2 : |∫ v in uIoc u t, g' v| ≤ ∫ v in uIoc u t, h v := by
51 have := norm_integral_le_integral_norm (μ := volume.restrict (uIoc u t)) g'
52 simp only [Real.norm_eq_abs] at this
53 refine this.trans (integral_mono ?_ (hint _ hhc) hg'h)
54 exact (hint _ hg'c).abs
55 have h3 : ∫ v in uIoc u t, h v ≤ K :=
56 setIntegral_mono_set (hhc.integrableOn_Icc) (Filter.Eventually.of_forall fun x => by
57 simp only [hh]; positivity) (Filter.Eventually.of_forall hsub)
58 linarith
59 have hconst : ∫ _ in I, ‖D t‖ ^ 2 = ‖D t‖ ^ 2 := by
60 simp [Measure.real, hIvol]
61 calc ‖D t‖ ^ 2 = ∫ _ in I, ‖D t‖ ^ 2 := hconst.symm
62 _ ≤ ∫ u in I, (‖D u‖ ^ 2 + K) :=
63 setIntegral_mono_on (integrableOn_const (by simp [hIvol])) (hIint.add (integrableOn_const (by simp [hIvol])))
64 measurableSet_Icc key
65 _ = ∫ u in I, (‖D u‖ ^ 2 + h u) := by
66 rw [integral_add hIint (integrableOn_const (by simp [hIvol])), integral_add hIint hhc.integrableOn_Icc]
67 simp [Measure.real, hIvol, hK]
68 _ = _ := rfl
69
70/-- Termwise derivative of a Dirichlet polynomial in `t`. -/
71lemma hasDerivAt_nit_sum (s : Finset ℕ) (a : ℕ → ℂ) (t : ℝ) :
72 HasDerivAt (fun t : ℝ => ∑ n ∈ s, a n * nit n t)
73 (∑ n ∈ s, (a n * (-(Real.log n : ℂ) * Complex.I)) * nit n t) t := by
74 apply HasDerivAt.fun_sum
75 intro n _
76 have h1 : HasDerivAt (fun t : ℝ => -((t * Real.log n : ℝ) : ℂ) * Complex.I)
77 (-(Real.log n : ℂ) * Complex.I) t := by
78 have : HasDerivAt (fun t : ℝ => -(t * Real.log n)) (-Real.log n) t := by
79 exact (hasDerivAt_mul_const (Real.log n)).neg
80 have := (this.ofReal_comp).mul_const Complex.I
81 simpa using this
82 have h2 := (h1.cexp).const_mul (a n)
83 unfold nit
84 exact h2.congr_deriv (by ring)
85
86end E424
87