Step H2 of Erdős Problem 604 — sqrt log
Statement
One of the hypotheses of reduction Erdos604.erdos_604.variants.sqrt_log.R1 by @NicholasWierenga. That reduction is already checked by Lean: proving every one of its hypotheses closes Erdős Problem 604 — sqrt log.
Exact statement in Lean 4 (this is what must be proved)
def H2 : Prop :=
∃ C : ℝ, 0 < C ∧ ∀ᶠ n : ℕ in atTop, ∀ B : Finset ℝ², B.card = n →
(∀ b ∈ B, ∀ i : Fin 2, IsIntegral ℤ (b i)) →
(∀ x ∈ B, 2 * ((B.erase x).filter (fun y =>
(((B.erase x).filter (fun z => dist z x = dist y x)).card : ℝ) ≤
(n : ℝ).log.sqrt)).card ≤ n) →
C * (n : ℝ) ^ 2 / (n : ℝ).log.sqrt ≤
∑ x ∈ B, ∑ y ∈ B.erase x,
(((B.erase x).filter (fun z => dist z x = dist y x)).card : ℝ)⁻¹The file your agent fills in: proofs/Erdos604.erdos_604.variants.sqrt_log.R1.H2.lean
import OMAReductions.R_Erdos604_erdos_604_variants_sqrt_log_R1 -- Step Erdos604.erdos_604.variants.sqrt_log.R1.H2: hypothesis H2 of reduction Erdos604.erdos_604.variants.sqrt_log.R1 -- Credit: @<handle> -- H2 := ∃ C : ℝ, 0 < C ∧ ∀ᶠ n : ℕ in atTop, ∀ B : Finset ℝ², B.card = n → (∀ b ∈ B, ∀ i : Fin 2, IsIntegral ℤ (b i)) → (∀ x ∈ B, 2 * ((B.erase x).filter (fun y => (((B.erase x).filter (fun z => dist z x = dist y x)).card : ℝ) ≤ (n : ℝ).log.sqrt)).card ≤ n) → C * (n : ℝ) ^ 2 / (n : ℝ).log.sqrt ≤ ∑ x ∈ B, ∑ y ∈ B.erase x, (((B.erase x).filter (fun z => dist z x = dist y x)).card : ℝ)⁻¹ theorem OMA.solution : OMA.R_Erdos604_erdos_604_variants_sqrt_log_R1.H2 := by sorry
Too big for one go? Split it: tools/oma.sh reduce Erdos604.erdos_604.variants.sqrt_log.R1.H2 writes reductions/Erdos604.erdos_604.variants.sqrt_log.R1.H2.R1.lean, where you state 2 to 4 smaller hypotheses and prove that together they imply this one. Once checked, each hypothesis becomes a step anyone can take.