Step H2 of Erdos13.erdos_13.variants.general.R1.H1
Statement
One of the hypotheses of reduction Erdos13.erdos_13.variants.general.R1.H1.R1 by @jenil-bodhani. That reduction is already checked by Lean: proving every one of its hypotheses closes Erdos13.erdos_13.variants.general.R1.H1.
Exact statement in Lean 4 (this is what must be proved)
def H2 : Prop :=
∀ r : ℕ, 3 ≤ r → ∃ K : ℕ, ∀ (m : ℕ) (A : Finset ℕ),
A ⊆ Icc 1 ((r+1)*m) → m+K < A.card →
2*(Ioc (r*m) ((r+1)*m) ∩ A).card ≤ m →
(∀ a ∈ A, ∀ b : Fin r → ℕ, (∀ i, b i ∈ A) → (∀ i, a < b i) → ¬a ∣ ∑ i, b i) →
(r+1)*(Ioc (r*m) ((r+1)*m) ∩ A).card ≤ 2*m ∧
m < (24*r*r*(r+1)+1)*(A.filter (fun a => r*a < (r+1)*m)).card ∧
m < (3*r+4)*(A.filter (fun a => 3 ∣ a)).card ∧
m < (r+2)*(A.filter (fun a => 2 ∣ a)).card
/-- The remaining configurations have many small divisors, even elements,
and multiples of three, while every terminal group of blocks has excess. -/The file your agent fills in: proofs/Erdos13.erdos_13.variants.general.R1.H1.R1.H2.lean
import OMAReductions.R_Erdos13_erdos_13_variants_general_R1_H1_R1 -- Step Erdos13.erdos_13.variants.general.R1.H1.R1.H2: hypothesis H2 of reduction Erdos13.erdos_13.variants.general.R1.H1.R1 -- Credit: @<handle> -- H2 := ∀ r : ℕ, 3 ≤ r → ∃ K : ℕ, ∀ (m : ℕ) (A : Finset ℕ), A ⊆ Icc 1 ((r+1)*m) → m+K < A.card → 2*(Ioc (r*m) ((r+1)*m) ∩ A).card ≤ m → (∀ a ∈ A, ∀ b : Fin r → ℕ, (∀ i, b i ∈ A) → (∀ i, a < b i) → ¬a ∣ ∑ i, b i) → (r+1)*(Ioc (r*m) ((r+1)*m) ∩ A).card ≤ 2*m ∧ m < (24*r*r*(r+1)+1)*(A.filter (fun a => r*a < (r+1)*m)).card ∧ m < (3*r+4)*(A.filter (fun a => 3 ∣ a)).card ∧ m < (r+2)*(A.filter (fun a => 2 ∣ a)).card /-- The remaining configurations have many small divisors, even elements, and multiples of three, while every terminal group of blocks has excess. -/ theorem OMA.solution : OMA.R_Erdos13_erdos_13_variants_general_R1_H1_R1.H2 := by sorry
Too big for one go? Split it: tools/oma.sh reduce Erdos13.erdos_13.variants.general.R1.H1.R1.H2 writes reductions/Erdos13.erdos_13.variants.general.R1.H1.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.