File size: 4,101 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | import Mathlib.NumberTheory.ArithmeticFunction.Liouville
import Mathlib.Algebra.BigOperators.Intervals
import Mathlib.Analysis.Complex.Basic
namespace OAI
/-!
# Ordinary two-point correlations: concrete sums and affine transfer
Definitions follow the introduction of the supplied manuscript
*Ordinary two-point correlations of multiplicative functions* (September 24, 2026).
The exact Liouville identities below are the algebraic part of Β§8.
No cancellation estimate is assumed or asserted here.
-/
open scoped BigOperators
namespace TwoPointCorrelations
/-- The standard Liouville function, viewed as complex valued. Its value at zero
is zero, as in mathlib; only positive arguments occur in the main statements. -/
noncomputable def liouville (n : β) : β := ArithmeticFunction.liouville n
/-- An ordinary sum, with weight one on each positive integer at most `N`. -/
def correlationSum (f g : β β β) (hβ hβ N : β) : β :=
β n β Finset.Icc 1 N, f (n + hβ) * g (n + hβ)
/-- The ordinary affine correlation, allowing nonunit coefficients. -/
def affineSum (f g : β β β) (aβ aβ bβ bβ N : β) : β :=
β n β Finset.Icc 1 N, f (aβ * n + bβ) * g (aβ * n + bβ)
/-- The progression sum includes every residue class, including zero. -/
def progressionSum (f g : β β β) (h l b N : β) : β :=
β n β (Finset.Icc 1 N).filter (fun n => n % l = b % l), f n * g (n + h)
/-- Ordinary multiplicativity is required only for coprime positive arguments;
this also permits the identically zero function, as does the manuscript. -/
def Multiplicative (f : β β β) : Prop :=
β m n : β, 0 < m β 0 < n β m.Coprime n β f (m * n) = f m * f n
def OneBounded (f : β β β) : Prop := β n : β, 0 < n β βf nβ β€ 1
@[simp] theorem liouville_mul (m n : β) :
liouville (m * n) = liouville m * liouville n := by
simp [liouville, ArithmeticFunction.liouville_apply_mul]
@[simp] theorem liouville_sq {n : β} (hn : n β 0) : liouville n ^ 2 = 1 := by
have h : (ArithmeticFunction.liouville n) ^ 2 = (1 : β€) := by
rw [ArithmeticFunction.liouville_apply hn, β pow_mul, Nat.mul_comm _ 2, pow_mul]
norm_num
unfold liouville
exact_mod_cast h
/-- Multiplying the two affine arguments by the opposite slopes gives an exact
identity. There is no coprimality restriction on any coefficient. -/
theorem liouville_affine_dilation (aβ aβ bβ bβ n : β)
(haβ : aβ β 0) (haβ : aβ β 0) :
liouville (aβ * n + bβ) * liouville (aβ * n + bβ) =
liouville (aβ * aβ) * liouville (aβ * (aβ * n + bβ)) *
liouville (aβ * (aβ * n + bβ)) := by
have hs := liouville_sq (Nat.mul_ne_zero haβ haβ)
calc
_ = liouville (aβ * aβ) ^ 2 *
(liouville (aβ * n + bβ) * liouville (aβ * n + bβ)) := by rw [hs, one_mul]
_ = _ := by simp only [liouville_mul]; ring
/-- The orientation with `aβ bβ β€ aβ bβ`; the opposite orientation is obtained
by swapping the two factors. This is manuscript equation (q:quant-affine-identity). -/
theorem liouville_affine_ordered (aβ aβ bβ bβ n : β)
(haβ : aβ β 0) (haβ : aβ β 0) (horder : aβ * bβ β€ aβ * bβ) :
liouville (aβ * n + bβ) * liouville (aβ * n + bβ) =
liouville (aβ * aβ) * liouville (aβ * aβ * n + aβ * bβ) *
liouville (aβ * aβ * n + aβ * bβ + (aβ * bβ - aβ * bβ)) := by
rw [liouville_affine_dilation aβ aβ bβ bβ n haβ haβ]
congr 2
Β· congr 1; ring
Β· calc
aβ * (aβ * n + bβ) = aβ * aβ * n + aβ * bβ := by ring
_ = aβ * aβ * n + aβ * bβ + (aβ * bβ - aβ * bβ) := by omega
theorem liouville_multiplicative : Multiplicative liouville := by
intro m n _ _ _
exact liouville_mul m n
theorem liouville_oneBounded : OneBounded liouville := by
intro n hn
have hs : βliouville nβ ^ 2 = 1 := by
rw [β norm_pow, liouville_sq hn.ne', norm_one]
nlinarith [norm_nonneg (liouville n)]
end TwoPointCorrelations
end OAI
|