/-
Copyright 2025 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
import FormalConjecturesUtilErdős Problem 520
open MeasureTheory ProbabilityTheory Nat Real Filter
namespace Erdos520
variable {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)]
A random function $f$ is Rademacher multiplicative if $f(1) = 1$, for each prime $p$, we independently choose $f(p) \in {-1, 1}$ uniformly at random, for each square-free integer $n = p_1 \cdots p_r$, $f(n) = f(p_1) \cdots f(p_r)$, and for each non-squarefree integer $n$, $f(n) = 0$.
structure IsRademacherMultiplicative (f : ℕ → Ω → ℝ) : Prop wherePrime entries are independent.
iIndepFun_primes : iIndepFun (fun p : Primes ↦ f p) ℙ
Primes entries are uniformly distributed on {-1, 1}.
prob_of_prime p : p.Prime → ℙ {ω | f p ω = 1} = 1 / 2 ∧ ℙ {ω | f p ω = -1} = 1 / 2
map_one ω : f 1 ω = 1
map_mul_of_coprime a b ω : a.Coprime b → f (a * b) ω = f a ω * f b ω
map_of_not_squarefree n ω : ¬ Squarefree n → f n ω = 0
Let $f$ be a Rademacher multiplicative function. Does there exist some constant $c > 0$ such that, almost surely, $$ \limsup_{N \to \infty} \frac{\sum_{m \leq N} f(m)}{\sqrt{N \log \log N}} = c? $$
@[category research open, AMS 11 60]
theorem erdos_520 :
answer(sorry) ↔ ∃ c > 0, ∀ (Ω : Type) [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)]
(f : ℕ → Ω → ℝ), IsRademacherMultiplicative f →
∀ᵐ ω, limsup (fun N ↦ ∑ m ≤ N, f m ω / sqrt (N * log (log N))) atTop = c := ⊢ True ↔
∃ c > 0,
∀ (Ω : Type) [inst : MeasureSpace Ω] [IsProbabilityMeasure ℙ] (f : ℕ → Ω → ℝ),
IsRademacherMultiplicative f →
∀ᵐ (ω : Ω), limsup (fun N => ∑ m ∈ Finset.Iic N, f m ω / √(↑N * Real.log (Real.log ↑N))) atTop = c
All goals completed! 🐙
end Erdos520