{"claim":{"assessments":[],"bundle":{"code":"","commit":"d9a4fffae4ffa440b436e21e481b14cc9facb415","config":null,"environment":"lemma/0.7.8 agent","logs":"","seeds":[]},"candidate":{"disproofs":{"Lemma.erdos_887.variants.rosenfeld_4":"import FormalConjectures.ErdosProblems.«887»\n\nopen Erdos887 Filter Finset Real\n\nnamespace Erdos887Disproof\n\n/-- Pell orbit: with `Z = 2j+1`, `X = 2k+9` we keep `Z² - 15 X² = 154`. -/\ndef pseq : ℕ → ℕ × ℕ\n  | 0 => (261, 63)\n  | m + 1 => (4 * (pseq m).1 + 15 * (pseq m).2 + 69, (pseq m).1 + 4 * (pseq m).2 + 14)\n\nlemma pseq_pell (m : ℕ) :\n    (2 * (pseq m).1 + 1) ^ 2 = 15 * (2 * (pseq m).2 + 9) ^ 2 + 154 := by\n  induction m with\n  | zero => norm_num [pseq]\n  | succ m ih =>\n    simp only [pseq]\n    linear_combination ih\n\nlemma pseq_k_ge (m : ℕ) : 63 ≤ (pseq m).2 := by\n  induction m with\n  | zero => norm_num [pseq]\n  | succ m ih => simp only [pseq]; omega\n\nlemma pseq_k_strictMono : StrictMono (fun m => (pseq m).2) := by\n  apply strictMono_nat_of_lt_succ\n  intro m\n  simp only [pseq]\n  omega\n\ndef N (k : ℕ) : ℕ :=\n  64 * k * (k + 2) * (k + 3) * (k + 4) * (k + 5) * (k + 6) * (k + 7) * (k + 9)\n\nlemma N_strictMono : StrictMono N := by\n  apply strictMono_nat_of_lt_succ\n  intro k\n  unfold N\n  have h1 : 64 * k * (k + 2) * (k + 3) * (k + 4) * (k + 5) * (k + 6) * (k + 7) * (k + 9)\n      ≤ 64 * (k + 1) * (k + 1 + 2) * (k + 1 + 3) * (k + 1 + 4) * (k + 1 + 5) * (k + 1 + 6)\n        * (k + 1 + 7) * (k + 9) := by\n    gcongr <;> omega\n  have h2 : 64 * (k + 1) * (k + 1 + 2) * (k + 1 + 3) * (k + 1 + 4) * (k + 1 + 5) * (k + 1 + 6)\n        * (k + 1 + 7) * (k + 9)\n      < 64 * (k + 1) * (k + 1 + 2) * (k + 1 + 3) * (k + 1 + 4) * (k + 1 + 5) * (k + 1 + 6)\n        * (k + 1 + 7) * (k + 1 + 9) := by\n    apply mul_lt_mul_of_pos_left (by omega) (by positivity)\n  exact lt_of_le_of_lt h1 h2\n\nlemma N_eq (k t : ℕ) (ht : t = k ^ 2 + 9 * k) :\n    N k = 64 * t * (t + 14) * (t + 18) * (t + 20) := by\n  subst ht; unfold N; ring\n\nlemma mem_window (n d : ℕ) (hd : d ∣ n) (h1 : n < d ^ 2)\n    (h2 : (d : ℝ) < √(n : ℝ) + 100 * (n : ℝ) ^ ((1 : ℝ) / 4)) :\n    d ∈ {d ∈ Ioo ⌊√(n : ℝ)⌋₊ ⌈√(n : ℝ) + 100 * (n : ℝ) ^ ((1 : ℝ) / 4)⌉₊ | d ∣ n} := by\n  have hd0 : 0 < d := by\n    rcases Nat.eq_zero_or_pos d with h | h\n    · subst h; simp at h1\n    · exact h\n  rw [Finset.mem_filter, Finset.mem_Ioo]\n  refine ⟨⟨?_, ?_⟩, hd⟩\n  · rw [Nat.floor_lt (Real.sqrt_nonneg _), Real.sqrt_lt' (by exact_mod_cast hd0)]\n    exact_mod_cast h1\n  · rw [Nat.lt_ceil]\n    exact h2\n\nlemma upper_bound (k : ℕ) (hk : 63 ≤ k) :\n    ((8 * ((k ^ 2 + 9 * k) + 18) * ((k ^ 2 + 9 * k) + 20) : ℕ) : ℝ)\n      < √(N k : ℝ) + 100 * (N k : ℝ) ^ ((1 : ℝ) / 4) := by\n  obtain ⟨t, ht⟩ : ∃ t : ℝ, t = (k : ℝ) ^ 2 + 9 * k := ⟨_, rfl⟩\n  have hN : (N k : ℝ) = 64 * t * (t + 14) * (t + 18) * (t + 20) := by\n    rw [ht]; unfold N; push_cast; ring\n  have hk' : (63 : ℝ) ≤ k := by exact_mod_cast hk\n  have ht1 : (4536 : ℝ) ≤ t := by rw [ht]; nlinarith\n  have ht0 : (0 : ℝ) < t := by linarith\n  have h4 : (2 * t) ^ 4 < (N k : ℝ) := by\n    rw [hN]; nlinarith [pow_pos ht0 4, pow_pos ht0 3, pow_pos ht0 2]\n  have hroot : 2 * t < (N k : ℝ) ^ ((1 : ℝ) / 4) := by\n    have e : ((2 * t) ^ 4) ^ ((1 : ℝ) / 4) = 2 * t := by\n      rw [show (1 : ℝ) / 4 = ((4 : ℕ) : ℝ)⁻¹ by norm_num]\n      exact Real.pow_rpow_inv_natCast (by positivity) (by norm_num)\n    calc 2 * t = ((2 * t) ^ 4) ^ ((1 : ℝ) / 4) := e.symm\n      _ < (N k : ℝ) ^ ((1 : ℝ) / 4) := Real.rpow_lt_rpow (by positivity) h4 (by norm_num)\n  have hsq : 8 * (t + 18) * (t + 20) - 200 * t < √(N k : ℝ) := by\n    rw [Real.lt_sqrt (by nlinarith [sq_nonneg t])]\n    rw [hN]\n    have e1 : 4536 * t ^ 2 ≤ t ^ 3 := by nlinarith [sq_nonneg t]\n    have e2 : 4536 * t ≤ t ^ 2 := by nlinarith\n    nlinarith\n  have hcast : ((8 * ((k ^ 2 + 9 * k) + 18) * ((k ^ 2 + 9 * k) + 20) : ℕ) : ℝ)\n      = 8 * (t + 18) * (t + 20) := by\n    rw [ht]; push_cast; ring\n  rw [hcast]\n  linarith\n\nlemma D5_dvd (t X Z k : ℕ) (hXt : X ^ 2 = 4 * t + 81) (hP : Z ^ 2 = 15 * X ^ 2 + 154)\n    (hN : N k = 64 * t * (t + 14) * (t + 18) * (t + 20)) :\n    (8 * t ^ 2 + 208 * t + 999 + 3 * X * Z) ∣ N k := by\n  have hPz : (Z : ℤ) ^ 2 = 15 * (X : ℤ) ^ 2 + 154 := by exact_mod_cast hP\n  have hXtz : (X : ℤ) ^ 2 = 4 * (t : ℤ) + 81 := by exact_mod_cast hXt\n  have : ((N k : ℕ) : ℤ) = ((8 * t ^ 2 + 208 * t + 999 + 3 * X * Z : ℕ) : ℤ)\n      * ((8 * (t : ℤ) ^ 2 + 208 * t + 999) - 3 * X * Z) := by\n    rw [hN]; push_cast\n    linear_combination (9 * (X : ℤ) ^ 2) * hPz + (9 * (15 * (X : ℤ) ^ 2 + 60 * t + 1369)) * hXtz\n  exact Int.natCast_dvd_natCast.mp ⟨_, this⟩\n\nlemma D5_sq (t X Z k : ℕ) (hXt : X ^ 2 = 4 * t + 81) (hP : Z ^ 2 = 15 * X ^ 2 + 154)\n    (hN : N k = 64 * t * (t + 14) * (t + 18) * (t + 20)) (hX0 : 0 < X) (hZ0 : 0 < Z) :\n    N k < (8 * t ^ 2 + 208 * t + 999 + 3 * X * Z) ^ 2 := by\n  have hPz : (Z : ℤ) ^ 2 = 15 * (X : ℤ) ^ 2 + 154 := by exact_mod_cast hP\n  have hXtz : (X : ℤ) ^ 2 = 4 * (t : ℤ) + 81 := by exact_mod_cast hXt\n  have : (8 * t ^ 2 + 208 * t + 999 + 3 * X * Z) ^ 2\n      = N k + (6 * (8 * t ^ 2 + 208 * t + 999) * (X * Z) + 18 * X ^ 2 * Z ^ 2) := by\n    rw [hN]; zify\n    linear_combination (-9 * (X : ℤ) ^ 2) * hPz\n      + (-9 * (15 * (X : ℤ) ^ 2 + 60 * t + 1369)) * hXtz\n  rw [this]\n  exact Nat.lt_add_of_pos_right (by positivity)\n\nlemma card_five (a b c d e : ℕ) (h1 : a < b) (h2 : b < c) (h3 : c < d) (h4 : d < e) :\n    ({a, b, c, d, e} : Finset ℕ).card = 5 := by\n  rw [Finset.card_insert_of_notMem, Finset.card_insert_of_notMem,\n    Finset.card_insert_of_notMem, Finset.card_insert_of_notMem, Finset.card_singleton]\n  all_goals simp only [Finset.mem_insert, Finset.mem_singleton]; omega\n\nlemma five_le_card (j k : ℕ) (hP : (2 * j + 1) ^ 2 = 15 * (2 * k + 9) ^ 2 + 154)\n    (hk : 63 ≤ k) :\n    5 ≤ #{d ∈ Ioo ⌊√(N k : ℝ)⌋₊ ⌈√(N k : ℝ) + 100 * (N k : ℝ) ^ ((1 : ℝ) / 4)⌉₊ | d ∣ N k} := by\n  have hup := upper_bound k hk\n  obtain ⟨t, ht⟩ : ∃ t : ℕ, t = k ^ 2 + 9 * k := ⟨_, rfl⟩\n  obtain ⟨X, hX⟩ : ∃ X : ℕ, X = 2 * k + 9 := ⟨_, rfl⟩\n  obtain ⟨Z, hZ⟩ : ∃ Z : ℕ, Z = 2 * j + 1 := ⟨_, rfl⟩\n  rw [← ht] at hup\n  rw [← hX, ← hZ] at hP\n  have hN : N k = 64 * t * (t + 14) * (t + 18) * (t + 20) := N_eq k t ht\n  have hXt : X ^ 2 = 4 * t + 81 := by subst hX ht; ring\n  have hX0 : 135 ≤ X := by omega\n  have hZX : Z < 4 * X := by nlinarith\n  have hZX' : 3 * X < Z := by nlinarith\n  have hXZ : 3 * X * Z ≤ 12 * X ^ 2 := by nlinarith\n  have hXZ' : 9 * X ^ 2 < 3 * X * Z := by nlinarith\n  obtain ⟨D1, hD1⟩ : ∃ D : ℕ, D = 8 * (t + 18) * (t + 20) := ⟨_, rfl⟩\n  obtain ⟨D2, hD2⟩ : ∃ D : ℕ, D = 8 * (t + 14) * (t + 20) := ⟨_, rfl⟩\n  obtain ⟨D3, hD3⟩ : ∃ D : ℕ, D = 8 * (t + 14) * (t + 18) := ⟨_, rfl⟩\n  obtain ⟨D4, hD4⟩ : ∃ D : ℕ, D = 8 * (k + 2) * (k + 3) * (k + 4) * (k + 9) := ⟨_, rfl⟩\n  obtain ⟨D5, hD5⟩ : ∃ D : ℕ, D = 8 * t ^ 2 + 208 * t + 999 + 3 * X * Z := ⟨_, rfl⟩\n  rw [← hD1] at hup\n  have key : ∀ d, d ∣ N k → N k < d ^ 2 → d ≤ D1 →\n      d ∈ {d ∈ Ioo ⌊√(N k : ℝ)⌋₊ ⌈√(N k : ℝ) + 100 * (N k : ℝ) ^ ((1 : ℝ) / 4)⌉₊ | d ∣ N k} :=\n    fun d h1 h2 h3 => mem_window _ _ h1 h2 (lt_of_le_of_lt (by exact_mod_cast h3) hup)\n  -- ordering\n  have hD4' : D4 = 8 * t ^ 2 + 208 * t + 1728 + 192 * k := by subst hD4 ht; ring\n  have hD3' : D3 = 8 * t ^ 2 + 256 * t + 2016 := by subst hD3; ring\n  have o1 : D4 < D5 := by\n    rw [hD4', hD5]\n    have : 192 * k ≤ 36 * t := by subst ht; nlinarith\n    linarith\n  have o2 : D5 < D3 := by\n    rw [hD5, hD3']\n    linarith\n  have o3 : D3 < D2 := by\n    rw [hD3, hD2]\n    exact mul_lt_mul_of_pos_left (by omega) (by omega)\n  have o4 : D2 < D1 := by\n    rw [hD2, hD1]\n    exact mul_lt_mul_of_pos_right (by omega) (by omega)\n  -- memberships\n  have m1 := key D1 ⟨8 * t * (t + 14), by rw [hD1, hN]; ring⟩ (by\n      rw [show D1 ^ 2 = N k + 64 * (t + 18) * (t + 20) * (24 * t + 360) by rw [hD1, hN]; ring]\n      exact Nat.lt_add_of_pos_right (by positivity)) le_rfl\n  have m2 := key D2 ⟨8 * t * (t + 18), by rw [hD2, hN]; ring⟩ (by\n      rw [show D2 ^ 2 = N k + 64 * (t + 14) * (t + 20) * (16 * t + 280) by rw [hD2, hN]; ring]\n      exact Nat.lt_add_of_pos_right (by positivity)) o4.le\n  have m3 := key D3 ⟨8 * t * (t + 20), by rw [hD3, hN]; ring⟩ (by\n      rw [show D3 ^ 2 = N k + 64 * (t + 14) * (t + 18) * (12 * t + 252) by rw [hD3, hN]; ring]\n      exact Nat.lt_add_of_pos_right (by positivity)) (by omega)\n  have m4 := key D4 ⟨8 * k * (k + 5) * (k + 6) * (k + 7), by rw [hD4]; unfold N; ring⟩ (by\n      rw [show D4 ^ 2 = N k + 64 * ((k + 2) * (k + 3) * (k + 4) * (k + 9)) * (48 * k + 216) by\n        rw [hD4]; unfold N; ring]\n      exact Nat.lt_add_of_pos_right (by positivity)) (by omega)\n  have m5 := key D5 (hD5 ▸ D5_dvd t X Z k hXt hP hN) (hD5 ▸ D5_sq t X Z k hXt hP hN (by omega) (by omega)) (by omega)\n  have hsub : ({D4, D5, D3, D2, D1} : Finset ℕ) ⊆\n      {d ∈ Ioo ⌊√(N k : ℝ)⌋₊ ⌈√(N k : ℝ) + 100 * (N k : ℝ) ^ ((1 : ℝ) / 4)⌉₊ | d ∣ N k} := by\n    intro d hd\n    simp only [Finset.mem_insert, Finset.mem_singleton] at hd\n    rcases hd with rfl | rfl | rfl | rfl | rfl\n    · exact m4\n    · exact m5\n    · exact m3\n    · exact m2\n    · exact m1\n  rw [← card_five D4 D5 D3 D2 D1 o1 o2 o3 o4]\n  exact Finset.card_le_card hsub\n\nend Erdos887Disproof\n\nopen Erdos887Disproof in\ntheorem Lemma.erdos_887.variants.rosenfeld_4 :\n    ¬ IsGreatest {K | ∃ C > (0 : ℝ),\n    Infinite {n : ℕ | K ≤ #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + C * n^((1 : ℝ) / 4)⌉₊ | d ∣ n }}} 4 := by\n  intro h\n  have h5 : (5 : ℕ) ∈ {K | ∃ C > (0 : ℝ),\n      Infinite {n : ℕ | K ≤ #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + C * n^((1 : ℝ) / 4)⌉₊ | d ∣ n }}} := by\n    refine ⟨100, by norm_num, ?_⟩\n    rw [Set.infinite_coe_iff]\n    refine Set.infinite_of_injective_forall_mem (f := fun m => N (pseq m).2) ?_ ?_\n    · exact (N_strictMono.comp pseq_k_strictMono).injective\n    · intro m\n      exact five_le_card (pseq m).1 (pseq m).2 (pseq_pell m) (pseq_k_ge m)\n  have := h.2 h5\n  omega\n"},"proofs":{}},"flags":[],"id":71,"lab_check":false,"label":"no-improvement","measured":1.0,"reason":null,"score":1.0,"significance":[[1,1,"Known result. m-czech gave infinitely many n with 5 divisors in the window (Pell equation z^2 = 56x^2 + 65, C = 31) on the erdosproblems.com forum in July 2026, and formal-conjectures PR #7218 (12 Oct 2026) refutes rosenfeld_4 in Lean with C = 40 and notes C = 7/2 suffices. This proof is independent but uses C = 100. The main question (parts.i/ii) is still open."]],"status":"verified","verdicts":[{"audit":true,"lab":true,"measured":1.0,"node":3,"seed":0}]},"entry":{"body":"Lemma.erdos_887.variants.rosenfeld_4 (IsGreatest {K | ∃ C>0, infinitely many n with ≥K divisors in (⌊√n⌋, ⌈√n+Cn^{1/4}⌉)} 4) is false. Some fixed C admits an infinite polynomial family n(k) with ≥5 divisors in the window. Evidence (T139): for n ≲ 8·10^8 and C=4, 210 n have 5 window divisors and 8 have 6 (e.g. 614839680, 85680, 147026880), with no visible decay. Many of them have normalized offsets (d−√n)/n^{1/4} near 0, 1, √2, 2, which suggests algebraic families.\nMethod: (1) Fit families. For the 6-divisor and 5-divisor n found by the C scanner (count pairs d·e=n with e in [d−2C√d, d); script in N100's chat note), factor n and the divisor pairs. Try n = c·∏(α_i k+β_i) with small integer α_i, β_i and constant c, and check whether the found n are values at consecutive k. (2) Direct algebraic search. For 2m linear forms (m=4,5,6) with α_i ≤ 3, β_i ≤ 15 and cofactor c | 720, enumerate divisor polynomials D = c1·∏_{S}(α_i k+β_i). D lies in the window for all large k iff the expansion of D − √n begins at degree < m/2, or at exactly m/2 with coefficient in (0, C). Test this with exact power-series arithmetic in sympy, or with numeric evaluation at k = 10^6, 10^7, 10^8. Count admissible D (distinct polynomials) and keep any family with ≥5. Note: equal-slope forms with m=5 need Prouhet–Tarry–Escott splits (equal p1, p2), and subsets of [0,16) give at most 1 such split, so focus on mixed slopes and cofactors. (3) If a family is found, the Lean disproof is: ¬IsGreatest because 5 ∈ set. Give C, the injective map k ↦ n(k) (Set.infinite_of_injective_forall_mem, then convert to the Infinite type), and five explicit polynomial divisors with d ∣ n by `⟨cofactor, by ring⟩`. Window bounds via Nat.floor/ceil lemmas: (√n < d ⇔ n < d²) and d < √n + C n^{1/4} from a polynomial inequality for k ≥ k0, using nlinarith on squared forms. Check the floor/ceil plumbing early with check_candidate.\nThreshold: 0 (must reach). Result 1; verified by node #3.\nSubmitter notes (data): Lean disproof of Lemma.erdos_887.variants.rosenfeld_4 (¬IsGreatest S 4), formalizing the T141/N103 Pell family. C = 100. Orbit pseq : ℕ → ℕ×ℕ, pseq 0 = (261,63), (j,k) ↦ (4j+15k+69, j+4k+14); with Z=2j+1, X=2k+9 the invariant Z²−15X²=154 is kept (linear_combination ih). N k = 64·k(k+2)(k+3)(k+4)(k+5)(k+6)(k+7)(k+9) = 64 t(t+14)(t+18)(t+20) with t=k²+9k. Five window divisors: 8(t+18)(t+20), 8(t+14)(t+20), 8(t+14)(t+18), 8(k+2)(k+3)(k+4)(k+9), and 8t²+208t+999+3XZ (cofactor 8t²+208t+999−3XZ in ℤ; identity via linear_combination with the Pell relation and X²=4t+81). Each d has N<d² (explicit d² = N + positive), and all are ≤ D1 < √N + 100 N^{1/4}, proved from (2t)^4 < N (so 2t < N^{1/4} via Real.pow_rpow_inv_natCast and rpow_lt_rpow) and (D1−200t)² < N for t ≥ 4536 (Real.lt_sqrt). Floor/ceil via Nat.floor_lt + Real.sqrt_lt' and Nat.lt_ceil. Distinctness by the strict chain D4<D5<D3<D2<D1 (needs 3X<Z<4X from the Pell relation). Infinitude via Set.infinite_of_injective_forall_mem with m ↦ N (pseq m).2, injective since both maps are StrictMono. Faithfulness caveat: the variant lets C>0 be arbitrary, so it asks about the window (√n, √n + C n^{1/4}) for some C, not Erdős–Rosenfeld's fixed window (√n, √n+n^{1/4}); the counterexample needs C ≈ 34 or more (limit offsets 0, 16.43, 16.97, 22.63, 33.94 in units of N^{1/4}), and T139's data suggests C=1 or 2 still gives at most 4. So the original C=1 question stays open; what is refuted is the formal variant.\nStatement checked: misformalized\nWould unblock it: Nothing needed for this variant; the original fixed-window (C=1) question would need a family with five divisors in (√n, √n + n^{1/4}), which this Pell family does not give.","claim":71,"created":1792001107,"credit":[2],"id":219,"kind":"result","label":"no-improvement","parent":null,"program":"erdos-open","score":1.0,"title":"Cleared U108 threshold: statements proved or disproved 1","unit":108},"followups":[{"hypothesis":"Settle Lemma.erdos_1177.parts.i: prove it or disprove it","status":"dead-end","unit":159},{"hypothesis":"Settle Lemma.erdos_1177.parts.ii: prove it or disprove it","status":"dead-end","unit":184},{"hypothesis":"Settle Lemma.erdos_1177.parts.iii: prove it or disprove it","status":"dead-end","unit":186},{"hypothesis":"Settle Lemma.erdos_1178: prove it or disprove it","status":"dead-end","unit":194},{"hypothesis":"Settle Lemma.erdos_1199: prove it or disprove it","status":"dead-end","unit":201},{"hypothesis":"Settle Lemma.erdos_1206.parts.i: prove it or disprove it","status":"dead-end","unit":210},{"hypothesis":"Settle Lemma.erdos_1206.parts.ii: prove it or disprove it","status":"dead-end","unit":222},{"hypothesis":"Settle Lemma.erdos_1210: prove it or disprove it","status":"dead-end","unit":223},{"hypothesis":"Settle Lemma.erdos_1210.variants.er80_correction: prove it or disprove it","status":"dead-end","unit":224},{"hypothesis":"Settle Lemma.erdos_137.variants.multiple_powerful_factors: prove it or disprove it","status":"dead-end","unit":233},{"hypothesis":"Settle Lemma.erdos_15: prove it or disprove it","status":"dead-end","unit":234},{"hypothesis":"Settle Lemma.erdos_159: prove it or disprove it","status":"dead-end","unit":250},{"hypothesis":"Settle Lemma.erdos_161.parts.ii: prove it or disprove it","status":"open","unit":258},{"hypothesis":"Settle Lemma.erdos_196: prove it or disprove it","status":"open","unit":259},{"hypothesis":"Settle Lemma.erdos_197: prove it or disprove it","status":"open","unit":263}]}