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/DirichletError/L28.lean

All files · 62 lines · source at the verified commit

1module
2
3public import E424.DirichletError.Basic
4
5@[expose] public section
6
7/-!
8# Section 7 of the outline: L28
9-/
10
11set_option linter.style.header false
12open Finset MeasureTheory
13
14namespace E424
15
16/-- One dilated polynomial as a sum over multiples of `s`. -/
17theorem Fp_dilate (s : ℕ) (hs : 1 ≤ s) (N t : ℝ) (hN : 0 < N) :
18 ((1 / s : ℝ) : ℂ) * nit s t * Fp (N / s) t = ∑ n ∈ Icc 1 ⌊4 * N⌋₊,
19 if s ∣ n then ((gw (n / N) / n * F (n / s) : ℝ) : ℂ) * nit n t else 0 := by
20 have hs0 : (0 : ℝ) < s := by exact_mod_cast hs
21 rw [← sum_filter, Fp, mul_sum]
22 refine sum_bij' (fun m _ => s * m) (fun n _ => n / s) ?_ ?_ ?_ ?_ ?_
23 · intro m hm
24 rw [mem_Icc, Nat.le_floor_iff (by positivity)] at hm
25 rw [mem_filter, mem_Icc, Nat.le_floor_iff (by positivity)]
26 refine ⟨⟨Nat.mul_pos hs hm.1, ?_⟩, dvd_mul_right s m⟩
27 have := hm.2
28 rw [mul_div_assoc', le_div_iff₀ hs0] at this
29 push_cast; linarith
30 · intro n hn
31 rw [mem_filter, mem_Icc, Nat.le_floor_iff (by positivity)] at hn
32 obtain ⟨⟨h1, h2⟩, m, rfl⟩ := hn
33 rw [Nat.mul_div_cancel_left m hs, mem_Icc, Nat.le_floor_iff (by positivity)]
34 refine ⟨Nat.pos_of_ne_zero fun h => by simp [h] at h1, ?_⟩
35 rw [mul_div_assoc', le_div_iff₀ hs0]
36 push_cast at h2; linarith
37 · intro m _; exact Nat.mul_div_cancel_left m hs
38 · intro n hn; exact Nat.mul_div_cancel' (mem_filter.mp hn).2
39 · intro m hm
40 have hm1 := (mem_Icc.mp hm).1
41 have hm0 : (0 : ℝ) < m := by exact_mod_cast hm1
42 rw [Nat.mul_div_cancel_left m hs, nit_mul s m hs hm1]
43 have e : gw ((m : ℝ) / (N / s)) = gw (((s * m : ℕ) : ℝ) / N) := by
44 congr 1; push_cast; field_simp
45 have e2 : gw (((s * m : ℕ) : ℝ) / N) / ((s * m : ℕ) : ℝ) * F m =
46 (1 / s) * (gw ((m : ℝ) / (N / s)) * F m / m) := by
47 rw [e]; push_cast; field_simp
48 rw [e2]; push_cast; ring
49
50/-- **Lemma 28**, exact identity: `Err_N^S(t) = ∑ gw(n/N) e^S(n) n^{-1-it}` with
51`e^S(n) = F n - m⁻¹ ∑_{s ∣ n} F(n/s)`. -/
52theorem L28 (S : Finset ℕ) (hS : ∀ s ∈ S, 1 ≤ s) (N t : ℝ) (hN : 0 < N) :
53 Err S N t = ∑ n ∈ Icc 1 ⌊4 * N⌋₊,
54 ((gw (n / N) / n * (F n - (ms S)⁻¹ * ∑ s ∈ S with s ∣ n, F (n / s)) : ℝ) : ℂ) * nit n t := by
55 rw [Err, sum_congr rfl fun s hs => Fp_dilate s (hS s hs) N t hN, sum_comm, mul_sum, Fp,
56 ← sum_sub_distrib]
57 refine sum_congr rfl fun n _ => ?_
58 rw [← sum_filter, ← sum_mul, ← Complex.ofReal_sum, ← mul_sum]
59 push_cast; ring
60
61end E424
62