Download lean/ComparatorChallenges/OrdinaryTwoPointCorrelations.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.64 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/ComparatorChallenges/OrdinaryTwoPointCorrelations.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/ComparatorChallenges/OrdinaryTwoPointCorrelations.lean
-
curl -L -o OrdinaryTwoPointCorrelations.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/ComparatorChallenges/OrdinaryTwoPointCorrelations.lean
2.64 kB
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators ComplexConjugate | |
| open Filter | |
| namespace TwoPointCorrelations | |
| def liouville (n : ℕ) : ℂ := ArithmeticFunction.liouville n | |
| def correlationSum (f g : ℕ → ℂ) (h₁ h₂ N : ℕ) : ℂ := | |
| ∑ n ∈ Finset.Icc 1 N, f (n + h₁) * g (n + h₂) | |
| def affineSum (f g : ℕ → ℂ) (a₁ a₂ b₁ b₂ N : ℕ) : ℂ := | |
| ∑ n ∈ Finset.Icc 1 N, f (a₁ * n + b₁) * g (a₂ * n + b₂) | |
| 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 | |
| def primesUpTo (N : ℕ) : Finset ℕ := (Finset.range (N + 1)).filter Nat.Prime | |
| def squaredDistance (f g : ℕ → ℂ) (N : ℕ) : ℝ := | |
| ∑ p ∈ primesUpTo N, (1 - (f p * conj (g p)).re) / (p : ℝ) | |
| def characterTwist {q : ℕ} (χ : DirichletCharacter ℂ q) | |
| (t : ℝ) (n : ℕ) : ℂ := | |
| χ (n : ZMod q) * Complex.exp (((t * Real.log (n : ℝ) : ℝ) : ℂ) * Complex.I) | |
| def UniformlyNonpretentious (f : ℕ → ℂ) : Prop := | |
| ∀ (q : ℕ), 0 < q → ∀ (χ : DirichletCharacter ℂ q) (K : ℝ), | |
| ∀ᶠ N : ℕ in atTop, ∀ t : ℝ, |t| ≤ (N : ℝ) → | |
| K ≤ squaredDistance f (characterTwist χ t) N | |
| end TwoPointCorrelations | |
| namespace OrdinaryTwoPointCorrelations | |
| open TwoPointCorrelations | |
| theorem liouville_log_saving : | |
| ∃ c : ℝ, 0 < c ∧ ∀ a₁ a₂ b₁ b₂ : ℕ, | |
| 0 < a₁ → 0 < a₂ → a₁ * b₂ ≠ a₂ * b₁ → | |
| ∃ C : ℝ, 0 < C ∧ ∀ X : ℝ, 3 ≤ X → | |
| ‖affineSum liouville liouville a₁ a₂ b₁ b₂ ⌊X⌋₊‖ ≤ | |
| C * X / Real.rpow (Real.log X) c := by | |
| sorry | |
| theorem binary_corrected_elliott : | |
| ∀ f₁ f₂ : ℕ → ℂ, Multiplicative f₁ → Multiplicative f₂ → | |
| OneBounded f₁ → OneBounded f₂ → | |
| (UniformlyNonpretentious f₁ ∨ UniformlyNonpretentious f₂) → | |
| ∀ h₁ h₂ : ℕ, h₁ ≠ h₂ → | |
| Tendsto (fun N : ℕ => correlationSum f₁ f₂ h₁ h₂ N / (N : ℂ)) atTop (nhds 0) := by | |
| sorry | |
| theorem affine_corrected_elliott : | |
| ∀ f₁ f₂ : ℕ → ℂ, Multiplicative f₁ → Multiplicative f₂ → | |
| OneBounded f₁ → OneBounded f₂ → | |
| (UniformlyNonpretentious f₁ ∨ UniformlyNonpretentious f₂) → | |
| ∀ a₁ a₂ b₁ b₂ : ℕ, 0 < a₁ → 0 < a₂ → a₁ * b₂ ≠ a₂ * b₁ → | |
| Tendsto (fun N : ℕ => affineSum f₁ f₂ a₁ a₂ b₁ b₂ N / (N : ℂ)) atTop (nhds 0) := by | |
| sorry | |
| end OrdinaryTwoPointCorrelations | |
| end | |
| end OAI | |