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/ToolDefs.lean

All files · 32 lines · source at the verified commit

1module
2
3public import Mathlib
4
5@[expose] public section
6
7/-!
8# Erdős 424: definitions used by the tools
9-/
10
11set_option linter.style.header false
12open Finset
13
14namespace E424
15
16/-- `n^{-it}` as `exp(-(t log n) i)`. -/
17noncomputable def nit (n : ℕ) (t : ℝ) : ℂ := Complex.exp (-(t * Real.log n : ℝ) * Complex.I)
18
19/-- `e(x) = exp(2πix)`. -/
20noncomputable def ee (x : ℝ) : ℂ := Complex.exp ((2 * Real.pi * x : ℝ) * Complex.I)
21
22/-- Every prime factor of `n` exceeds `z`. (`0` is never rough for `z ≥ 2`, `1` always is.) -/
23def Rough (z : ℝ) (n : ℕ) : Prop := ∀ p : ℕ, p.Prime → p ∣ n → z < p
24
25/-- The primes of `(u, v]` (`0 ≤ u`). -/
26noncomputable def primesIoc (u v : ℝ) : Finset ℕ := (Ioc ⌊u⌋₊ ⌊v⌋₊).filter Nat.Prime
27
28/-- The triangle kernel `ψ_Q(u) = Q (1 - Q|u|)_+`. -/
29noncomputable def tri (Q u : ℝ) : ℝ := Q * max 0 (1 - Q * |u|)
30
31end E424
32