{
"slug": "erdos423-erdos-423",
"class": "d",
"attack": "no",
"chance_pct": 1,
"direction": "prove",
"statement": "theorem erdos_423 : ∀ a : ℕ → ℕ, IsHofstadterSeq a → (fun n : ℕ => (a n : ℝ) - n) =o[atTop] (fun n : ℕ => (n : ℝ)). Here IsHofstadterSeq a := a 1 = 1 ∧ a 2 = 2 ∧ ∀ k, 3 ≤ k → IsConsecutiveBlockSum a k (a k) ∧ a (k-1) < a k ∧ ∀ m, a (k-1) < m → m < a k → ¬IsConsecutiveBlockSum a k m; and IsConsecutiveBlockSum a k m := ∃ i j, 1 ≤ i ∧ i+1 ≤ j ∧ j+1 ≤ k ∧ m = ∑ l ∈ Finset.Icc i j, a l.",
"faithful": true,
"differences": "Faithful to the source (a_n = n + o(n), Hofstadter's sequence, OEIS A005243). Indexed from 1; a 0 is unconstrained and irrelevant because o(.) is eventual. Subtraction is real (a n : ℝ) - n, so no truncation issue. Blocks need at least two terms with indices in [1,k-1]. The statement is universally quantified over a, and the definition determines a on indices >= 1 uniquely, so it is about the one real sequence. Caveat: I read the file from formal-conjectures main, because the pinned commit 7d1a8c9 path returned 404 on raw.githubusercontent.com; I did not apply the audit patch. The patch text has no hit for this file name in the grep I ran, so the statement is probably unchanged, but that is UNVERIFIED. The Lean target is the original open question, not a weakened one.",
"solved_in_literature": false,
"literature": [
{"url": "https://arxiv.org/abs/2603.09939", "date": "2026-03-10 (v3 2026-11-17)", "finding": "Tang: a_n - n >= c*log log n - O(1) and a polynomial upper bound on a_n, so the sequence omits infinitely many integers. This is partial progress only. a_n = n + o(n) is not proved."},
{"url": "https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/ErdosProblems/423.lean", "date": "2026", "finding": "The Lean file lists erdos_423 as 'research open'. It lists as solved: a_n - n nondecreasing (Bolan, Tang), a_n - n -> infinity, infinite complement, upper bound a_n << n^(688/413+eps) via Cushman arXiv:2512.13849, and lower bound n + Omega(log log n)."},
{"url": "https://oeis.org/A005243", "date": "n/a", "finding": "OEIS entry for the Hofstadter sequence 1, 2, 3, 5, 6, 8, 10, 11, 14, 16, 17, 18, ..."}
],
"computation": "I ran a C program that generates a(1..200000) with the exact definition (least integer greater than the previous term that is a sum of at least two consecutive earlier terms), using prefix sums and monotone per-start pointers. First terms: 1 2 3 5 6 8 10 11 14 16 17 18, matching OEIS. Results (k, a(k)-k, (a(k)-k)/k): k=10: 6, 0.6. k=100: 46, 0.46. k=1000: 149, 0.149. k=10000: 321, 0.0321. k=50000: 517, 0.01034. k=100000: 637, 0.00637. k=200000: 777, 0.00388. So the excess grows very slowly, roughly like a few hundred per decade, and the ratio a(n)/n tends to 1 numerically. This supports the conjecture but proves nothing. Bounds reached: n <= 200000. The program is in $TMPDIR and is not delivered.",
"approach_a": "Direct proof of o(n) by a density argument. Show the omitted set has density 0, or equivalently that the excess e_n = a_n - n grows sublinearly. Tang already shows e_n is nondecreasing, so it would suffice to show e_n <= eps*n eventually. Lean lemmas needed: (1) IsHofstadterSeq.strictMono and le_apply, which the file already has; (2) nondecreasing a_n - n, which the file already proves; (3) a_n - n -> infinity (stated, sorry in the file); (4) an explicit lemma that every integer m in (a_{k-1}, a_k) is not a consecutive sum, hence that gaps come from block sums skipping m; (5) a quantitative bound on the gaps using consecutive-sum windows a_i+...+a_j with j-i small, which would need new mathematics (the known polynomial bound a_n << n^1.67 is far from linear); (6) the final Asymptotics.IsLittleO unfolding via isLittleO_iff and Filter.eventually_atTop. Step (5) is the open core.",
"approach_b": "Reduction to a sumset or additive-combinatorics bound. For the set A of terms up to N, the number of consecutive-sum values a_i+...+a_j is at most |A|^2 but they live in [1, N*|A|]. Cushman's convex sumset bound gives a_n << n^(688/413+eps). Improving the exponent to 1 would need a result like |A-A| >= |A|^(2-o(1)) for convex sets, which is not known, so this cannot be finished in Lean by 4 hours of work. Lean lemmas would be: prefix sums P_k = ∑ l ∈ Icc 1 k, a l (Finset.sum_Ioc_consecutive), the identity ∑ l ∈ Icc i j, a l = P_j - P_(i-1), the pigeonhole principle Finset.exists_ne_map_eq_of_card_lt_of_maps_to, and Real.log or Asymptotics lemmas. In any case a Lean proof would need new mathematics beyond Tang's paper.",
"useful_lemmas": [
"Erdos423.IsHofstadterSeq.strictMono (in file)",
"Erdos423.IsHofstadterSeq.le_apply (in file)",
"Erdos423.erdos_423.variants.nondecreasing (in file, fully proved)",
"Asymptotics.isLittleO_iff",
"Filter.eventually_atTop",
"Finset.sum_Ioc_consecutive",
"Finset.exists_ne_map_eq_of_card_lt_of_maps_to"
],
"plan": "Not recommended for a Lean attempt. The target is the main open question of Erdős #423, asking whether a_n = n + o(n) for Hofstadter's sequence. As of Tang's arXiv:2603.09939 (v3 Nov 2026) only the lower bound n + Omega(log log n) and a polynomial upper bound are known, and the formal-conjectures file still marks it open. Numerics up to n = 200000 show the excess a_n - n is about 777, so the conjecture looks true, which means no counterexample search can help, and a proof needs a new idea to improve the exponent 688/413 to 1. If anyone tries it, they should first formalize the already published pieces (a_n - n -> infinity, the upper bound) as compiled lemmas, then look for a structural invariant explaining why the excess stays logarithmic. Chance of a full proof in one 4-hour attempt is about 1%.",
"unverified": [
"Content of the pinned formal-conjectures commit 7d1a8c9 and the audit patch effect on 423.lean (the file was read from main, and the commit path returned 404)",
"erdosproblems.com/423 page and comments (the site returned 403 / a Cloudflare challenge, so I could not read it)",
"Full text of arXiv:2603.09939 beyond the abstract and the claims in the Lean file",
"Bolan's note (GitHub PDF) was not read",
"No search of arXiv for 2026 results later than Tang v3 beyond one web search"
]
}
