/- Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil /-! # Erdős Problem 730 *References:* - [erdosproblems.com/730](https://www.erdosproblems.com/730) - [A129515](https://oeis.org/A129515) - [PALOMAR-2026-08-22-000001](https://palomar-registry.org/entry.html?id=PALOMAR-2026-08-22-000001&version=1): a Lean 4 proof that there are infinitely many such pairs, checked by Comparator against the statement `S.Infinite` below and registered with the Palomar registry. The proof follows an argument posted on the erdosproblems.com forum (Liam Price, 24 June 2026), which shows that there are infinitely many consecutive pairs $(n, n+1)$. -/ @[expose] public section namespace Erdos730 abbrev S := {(n, m) : ℕ × ℕ | n < m ∧ n.centralBinom.primeFactors = m.centralBinom.primeFactors} set_option linter.style.formal_proof_palomar false in /-- Are there infinitely many pairs of integers $n < m$ such that $\binom{2n}{n}$ and $\binom{2m}{m}$ have the same set of prime divisors? Yes: there are infinitely many consecutive pairs $(n, n+1)$. The formal proof registered as [PALOMAR-2026-08-22-000001] proves `S.Infinite` for this `S`. -/ @[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/williamjblair/lean-proofs/blob/03729c9cbb0b602f5a828bb850c85e84c5a6d460/ErdosProblems/Erdos730/FullDensityTheorem.lean#L40"] theorem erdos_730 : S.Infinite := by sorry /-- For example, $(87,88)$ and $(607,608)$ are such pairs. -/ @[category textbook, AMS 11] theorem erdos_730.variants.explicit_pairs : {(87, 88), (607, 608)} ⊆ S := by rintro _ (rfl | rfl) <;> refine ⟨by decide, ?_⟩ all_goals simp only [Nat.centralBinom, Nat.choose_eq_descFactorial_div_factorial] decide +kernel /-- There are examples where $(n, m) ∈ S$ with $m ≠ n + 1$. (Found by AlphaProof, although it was implicit already in [A129515]) -/ @[category research solved, AMS 11] theorem erdos_730.variants.delta_ne_one : ∃ (n m : ℕ), (n, m) ∈ S ∧ m ≠ n + 1 := by dsimp [S] use 10003 use 10005 norm_num [Finset.ext_iff, Nat.choose_eq_zero_iff, Nat.centralBinom] simp_rw [Nat.choose_eq_descFactorial_div_factorial] intro p hp constructor all_goals exact fun h' => or_self_iff.1 (hp.dvd_mul.1 ( h'.trans (by refine' of_decide_eq_true (by constructor : _ = ↑_)))) end Erdos730