{
  "slug": "erdos699-erdos-699",
  "class": "d",
  "attack": "no",
  "chance_pct": 1,
  "direction": "prove",
  "statement": "theorem Erdos699.erdos_699 : answer(sorry) ↔ ∀ n i j : ℕ, 1 ≤ i → i < j → j ≤ n / 2 → ∃ p : ℕ, p.Prime ∧ i ≤ p ∧ p ∣ Nat.gcd (Nat.choose n i) (Nat.choose n j)   -- elaborated bounty type (conjectures.io): True ↔ ∀ (n i j : ℕ), 1 ≤ i → i < j → j ≤ n / 2 → ∃ p, Nat.Prime p ∧ i ≤ p ∧ p ∣ (n.choose i).gcd (n.choose j). File FormalConjectures/ErdosProblems/699.lean at formal-conjectures 7d1a8c9912747679d0093f6d1216420c33ee5ffa; the audit patch (sha256 352280407fbbe83e636aa07a5c090aab15c6353c7cd77c0491284cd40df51275, verified) does not touch this file.",
  "faithful": true,
  "differences": "None of substance. All variables are ℕ and there is no subtraction. `j ≤ n / 2` uses floor division, which for natural j is the same as 2j ≤ n, i.e. j ≤ n/2 over the reals. For n ≤ 3, n/2 ≤ 1 < 2 ≤ j, so those n are vacuous, and the first nontrivial n is 4 (i=1, j=2). `p.Prime ∧ i ≤ p` is exactly the source's p ≥ i, the weak form. The famous stronger p > i version, which fails at 10, 16, 28, 244, 512, 2048, 2188, 1594324 and 2^41, is a separate constant (`erdos_szekeres_strengthening`) and is not this target. Since answer(sorry) elaborates to True, the bounty asks for a proof of P (∀ n i j ...) or of ¬P. The i=1 and i=2 cases are easy: i=1 because n/gcd(n,j) > 1 divides both binomials, and i=2 because Erdős–Szekeres give gcd > 1, so any prime factor is ≥ 2. All the difficulty is in i ≥ 3.",
  "solved_in_literature": false,
  "literature": [
    {"url": "https://www.erdosproblems.com/699", "date": "page last edited 2026-07-19; proof exposition last edited 2026-08-27", "finding": "Still listed as open. Partial result: GPT 5.6 (prompted by Liam Price) proved the statement when j ≤ 3i/2 or n = 2j, using the identity C(n,i)C(n-i,j-i)=C(n,j)C(j,i) together with Ecklund–Eggleton–Erdős–Selfridge 1978 (V_i(n) > C(n,i)^{1/2} apart from finitely many explicit exceptions). For fixed i<j only finitely many n can be counterexamples. Erdős–Szekeres conjectured p > i except in a few special cases; the one known exception with i ≥ 4 is (28,5,14)."},
    {"url": "https://www.erdosproblems.com/forum/thread/699", "date": "comments 2026-01-06 to 2026-07-25", "finding": "Cong Lu (2026-01-06) searched the official p ≥ i statement exhaustively to n = 10^7, plus n = 2^k (k ≤ 27) and n = 3^m+1 (m ≤ 17), and found no counterexample; code at github.com/conglu1997/erdos_699_rust. Bloom (2026-07-19) quotes [ErSz78] calling the problem 'if true is probably very deep'. Del Pin (2026-07-24) shows that any counterexample needs C(2j,i) < C(j,i)^2, so the bad j for each i form an interval, and pure size arguments of the EEES kind stop at j ≤ 3i/2. MaxDKaos/Claude (2026-07-25) shows a counterexample needs n ≤ j^{i/(i-π(i-1))} and no prime in (n-i,n]. With Dusart this settles j ≤ C·i·log^2 i unconditionally, though the constant is not attained at moderate i, and it says nothing for n = 2j. That comment states '#699 remains open'."},
    {"url": "https://www.erdosproblems.com/forum/thread/699/proof-claims", "date": "2026-07-18 and 2026-07-25", "finding": "There are two proof claims, and both are partial. (1) Liam Price/GPT-5.6 Sol Pro covers j ≤ 3i/2 or n=2j and was accepted by the site. (2) Wouter van Doorn and Stefano Rocca (ChatGPT 5.6 Sol Pro) claim a counterexample can occur only for i=3 or in a finite, ineffective, not explicitly determined set with 4 ≤ i ≤ 1475. The authors are still verifying it, and a Lean version would be conditional on results such as [OeSHP14]. Neither claim is a complete solution."},
    {"url": "https://oeis.org/A399402", "date": "2026-11-01 (approved 2026-11-08)", "finding": "Lists the n where p > i fails: 10,16,28,244,512,2048,2188,1594324. There are no other terms below 10^12 by exhaustive search, and 2^41 is also a term. In every known term p = i divides both binomials, so none of them is a counterexample to the p ≥ i question."},
    {"url": "https://raw.githubusercontent.com/Paulee314/erdos699/main/README.md", "date": "2026-10 (runs 2026-10-24..26)", "finding": "Reports no counterexample with n < 10^12 (exhaustive, checkpointed). Reports none with j ≤ 10^9 for any n, using the lemma n ≤ j^2 (i ≥ 3) plus residue enumeration above 10^12, and none with j ≤ 100 via Luca–Najman's list of x with x^2-1 97-smooth. The families 2^k (k ≤ 62) and 3^m+1 (m ≤ 39) were checked. The work has been reviewed only by AI reviewers and no human mathematician has checked it, so treat it as UNVERIFIED by me."},
    {"url": "https://github.com/dcanter64/erdos-699", "date": "2026", "finding": "README: partial progress only. It reports sweeps of open-region triples to n ≤ 20,000 with 0 flagged and states 'Erdős #699 remains open'. It makes no proof claim."},
    {"url": "https://conjectures.io/problems/erdos699-erdos-699", "date": "accessed 2026-11-26", "finding": "Bounty $2,975 (linear-age policy), date added 13 Aug 2026. 'Prove the statement no attempts' / 'Find a counterexample no attempts' / 'Nobody has attempted this.' There is 1 published piece (2026-09-02, 21 lemmas): 'Erdős 699: Kummer-carry criterion for a prime dividing gcd of two binomials, plus exceptional triples' (declarations Contribution.Erdos699Carries.*, e.g. prime_dvd_choose_iff_exists_mod_pow_lt)."},
    {"url": "https://conjectures.io/submission-terms", "date": "accessed 2026-11-26", "finding": "A reward is NOT_NOVEL if a complete, established public proof of the same problem predates acceptance. No such complete proof was found, only the partial results above."},
    {"url": "https://www.renyi.hu/~p_erdos/1978-46.pdf", "date": "1978", "finding": "This is the original source [ErSz78], Austral. Math. Soc. Gaz. 5 (1978) 97-99. It poses the question and lists the special counterexamples to p > i. I know it only from the erdosproblems page, the OEIS entry and a search snippet; I did not fetch or read it (UNVERIFIED)."},
    {"url": "https://arxiv.org/abs/0806.0607", "date": "2008", "finding": "Bergman, 'On common divisors of multinomial coefficients'. According to a search snippet it reproduces the Erdős–Szekeres proof that gcd(C(N,i),C(N,j)) > 1 and shows that the gcd tends to infinity with N for i > 1. It does not address the prime ≥ i question. I did not read the paper (UNVERIFIED)."}
  ],
  "computation": "I ran my own exhaustive search in C (search699.c), which uses exact integer arithmetic only. For every n with 2 ≤ n ≤ 10^7 and every 1 ≤ i < j ≤ n/2 it decided whether some prime p ≥ i, and separately some prime p > i, divides gcd(C(n,i),C(n,j)). Method: (1) if a prime P lies in (n-i,n], then P > n/2 and P divides C(n,k) for every i ≤ k ≤ n/2, so only i ≤ n - prevprime(n) is checked. (2) For p > i, p | C(n,i) iff p divides one of n,...,n-i+1, read off a smallest-prime-factor sieve. The case p = i is tested with Lucas. (3) Every j that no admissible prime divides has to be base-p* digit-dominated by n for each admissible p*, so I enumerate those j for the p* with the fewest of them and test each j against every admissible prime with Lucas's theorem. Result: 122,736,387 (n,i) pairs needed checking (largest i checked was 153), and 14,311,428,595 candidate j were tested exactly. There were 0 counterexamples to the Lean statement (p ≥ i) for n ≤ 10^7. The p > i failures were exactly (10,3,5), (16,2,6), (28,3,14), (28,5,14), (244,3,122), (512,2,147), (2048,2,713), (2188,3,1094) and (1594324,3,797162), with the smallest failing j shown. This matches Cong Lu's forum list and OEIS A399402. As a cross-check, an independent Python brute force (exact gcd of Python-int binomials, no filters, all i) for all n ≤ 600 gave identical lists: none for p ≥ i, and for p > i (10,3,5), (16,2,6), (28,3,14), (28,5,14), (244,3,122), (512,2,147). The 10^7 run took 120 s. An extension to n ≤ 3×10^7 hit a 10-minute limit before finishing and is NOT claimed; no new line was printed before the kill. Known range from others, not re-run by me: n < 10^12 exhaustive and j ≤ 10^9 for all n (Paulee314/erdos699, AI-reviewed only), and n ≤ 10^7 (Cong Lu). The scripts were scratch files and are not delivered; the description above is enough to reproduce them.",
  "approach_a": "Prove direction, partial, by size plus a prime window; this is the only realistic route to compiled lemmas. Formalize the Erdős–Szekeres reduction. Let g = gcd(C(n,i),C(n,j)). From C(n,j)·C(j,i) = C(n,i)·C(n-i,j-i) (Nat.choose_mul), C(n,i)/g divides C(j,i), which gives (i) gcd > 1, so i ∈ {1,2} is fully proved; and (ii) if every prime factor of g is < i, then by Kummer (Nat.pow_factorization_choose_le: p^{v_p C(n,i)} ≤ n) g ≤ n^{π(i-1)}, hence (n/j)^i ≤ n^{π(i-1)}, i.e. n ≤ j^2 for i ≥ 3. (iii) A prime in (n-i,n] divides both binomials, through Nat.Prime.dvd_choose-style lemmas or Lucas. Together these settle every (i,j) for which every window (x-i,x] with x ≤ j^{i/(i-π(i-1))} contains a prime, which is a finite prime-gap check per (i,j). The gap that remains is the infinite family j ≫ i·log^2 i and the case n=2j. Price's proof handles n=2j but needs EEES78, which is not in Mathlib. Closing the gap would need prime-gap bounds far beyond what is known, so a full proof is not expected.",
  "approach_b": "Refute direction, by a certificate. Search beyond the known ranges, chiefly the structured families n=3^m+1 with i=3 and n=2^k with i ≤ 3, and n where n, n-1, n-2 are all j-smooth (every prime factor of n(n-1)...(n-i+1) must be ≤ j in a counterexample). If a triple (n,i,j) turned up, prove ¬P in Lean without native_decide. List the primes q > i dividing n,...,n-i+1, each with a primality certificate (norm_num's Nat.Prime extension or Pratt). Show that any prime p ≥ i with p | C(n,i) is either i or one of those q, using Nat.descFactorial_eq_factorial_mul_choose and Nat.Prime.dvd_mul. Then show each fails to divide C(n,j) by a Lucas digit computation (Choose.choose_modEq_choose_mod_mul_choose_div_nat, iterated) that the kernel can decide on small digit numbers. This is cheap to verify if an object exists, but exhaustive search to 10^12 (third-party) and 10^7 (mine) and the family checks to about 4.6e18 found none, so success is very unlikely.",
  "useful_lemmas": [
    "Nat.choose_mul : k ≤ n → s ≤ k → n.choose k * k.choose s = n.choose s * (n - s).choose (k - s)  (Erdős–Szekeres identity)",
    "Nat.pow_factorization_choose_le : 0 < n → p ^ (n.choose k).factorization p ≤ n  (Kummer bound)",
    "Nat.factorization_choose_le_log : (n.choose k).factorization p ≤ Nat.log p n",
    "Nat.Prime.emultiplicity_choose (Kummer carries) / Nat.factorization_choose_le_one (n < p^2)",
    "Choose.choose_modEq_choose_mod_mul_choose_div_nat (Lucas, Mathlib.Combinatorics.Choose.Lucas)",
    "Nat.Prime.dvd_choose_add, Nat.Prime.dvd_choose (prime in (n-i,n] divides C(n,k))",
    "Nat.descFactorial_eq_factorial_mul_choose, Nat.Prime.dvd_factorial (primes > i dividing C(n,i) divide n..n-i+1)",
    "Nat.Coprime.dvd_of_dvd_mul_left, Nat.gcd_dvd_left/right, Nat.Coprime.gcd_eq_one, Nat.exists_prime_and_dvd",
    "Nat.choose_lt_choose / Nat.choose_le_choose (C(j,i) < C(n,i) for j < n, 1 ≤ i ≤ j)",
    "Nat.exists_prime_lt_and_le_two_mul (Bertrand), Nat.add_choose_eq (Vandermonde)",
    "Contribution.Erdos699Carries.prime_dvd_choose_iff_exists_mod_pow_lt and 20 sibling lemmas already published on conjectures.io (2026-09-02)"
  ],
  "plan": "Do not spend a 4-hour attack slot on this target. It is a faithful formalization of a genuinely open Erdős–Szekeres problem, which they themselves call 'probably very deep'. Known results are partial: j ≤ 3i/2 or n=2j (Price/GPT, accepted on erdosproblems, relying on EEES78, not in Mathlib); j ≤ C·i·log^2 i through prime gaps; and a claimed but unverified, ineffective reduction to i=3 plus finitely many triples (van Doorn–Rocca). Search evidence strongly favours truth: no counterexample for n ≤ 10^7 (mine) or n < 10^12 (third-party), so refutation is essentially hopeless. If a worker is assigned anyway, the useful output is a set of compiled lemmas: the i ∈ {1,2} cases, the choose_mul reduction (C(n,i)/gcd divides C(j,i)), the Kummer bound gcd ≤ n^{π(i-1)} for small-prime gcds, and the 'prime in (n-i,n] divides both' lemma, building on the 21 lemmas already contributed on conjectures.io. A full proof should not be expected.",
  "unverified": [
    "Mathlib lemma names listed in useful_lemmas were not checked against the pinned Mathlib 065356127b1d (no Lake build was run in this triage).",
    "The third-party searches (n < 10^12 and j ≤ 10^9 by Paulee314/erdos699; n ≤ 10^7 and families by Cong Lu) were not re-run; only my own n ≤ 10^7 run and the n ≤ 600 brute force were run.",
    "The van Doorn–Rocca proof claim (Overleaf manuscript) was not read, and its correctness is unknown.",
    "Price's accepted partial proof and EEES78 were not re-checked; I read only Bloom's exposition on erdosproblems.com.",
    "The original Erdős–Szekeres 1978 paper and Bergman arXiv:0806.0607 were not fetched or read.",
    "The content of the 21 contributed Lean lemmas on conjectures.io was not inspected beyond their listed names.",
    "There may be literature not indexed by the web searches run (queries on Erdős–Szekeres gcd binomial prime ≥ i, Erdős 699 arXiv 2026, van Doorn Rocca 699)."
  ]
}
