Lean / Reader
Lean reader

Challenge.lean

23 lines2 declarations1 × sorry / admit / native_decideimports Mathlib
  1. import Mathlib
  2. /-!
  3. # Erdős Problem 824: the target statement
  4. Mathlib definitions only. `h` and the statement follow Formal Conjectures'
  5. `FormalConjectures/ErdosProblems/824.lean` (Apache-2.0), with `σ 1` written as
  6. `ArithmeticFunction.sigma 1` and the answer `True`.
  7. -/
  8. namespace Erdos824
  9. /-- The number of pairs `1 ≤ a < b < x` with `gcd(a, b) = 1` and `σ(a) = σ(b)`. -/
  10. noncomputable def h (x : ℕ) : ℕ :=
  11. ((Finset.Ico 1 x ×ˢ Finset.Ico 1 x).filter fun (a, b) ↦
  12. a < b ∧ a.Coprime b ∧ ArithmeticFunction.sigma 1 a = ArithmeticFunction.sigma 1 b).card
  13. theorem erdos_824 :
  14. ∀ ε : ℝ, 0 < ε → ∀ᶠ x : ℕ in Filter.atTop, (x : ℝ) ^ (2 - ε) < (h x : ℝ) := by
  15. sorry
  16. end Erdos824