{
  "id": "1649",
  "ident": "NS.01649",
  "slug": "erdos-307",
  "title": "Erdős Problem 307",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Are there two finite set of primes $P$ and $Q$ such that\n\n$$\n1 = \\left( \\sum_{p \\in P} \\frac{1}{p} \\right) \\left( \\sum_{q \\in Q} \\frac{1}{q} \\right)\n$$\n?\n\nAsked by Barbeau [Ba76].\n\n[Ba76] Barbeau, E. J., _Computer challenge corner: Problem 477: A brute force program._",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/307",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos307.erdos_307",
  "statement_lean": "theorem erdos_307 : ∃ P Q : Finset ℕ, (∀ p ∈ P, p.Prime) ∧ (∀ q ∈ Q, q.Prime) ∧\n    1 = (∑ p ∈ P, (p : ℚ)⁻¹) * (∑ q ∈ Q, (q : ℚ)⁻¹)",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 307\n\n*Reference:* [erdosproblems.com/307](https://www.erdosproblems.com/307)\n-/\n\n@[expose] public section\n\nnamespace Erdos307\n\nopen scoped Finset\n\n/--\nAre there two finite set of primes $P$ and $Q$ such that\n\n$$\n1 = \\left( \\sum_{p \\in P} \\frac{1}{p} \\right) \\left( \\sum_{q \\in Q} \\frac{1}{q} \\right)\n$$\n?\n\nAsked by Barbeau [Ba76].\n\n[Ba76] Barbeau, E. J., _Computer challenge corner: Problem 477: A brute force program._\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_307 : ∃ P Q : Finset ℕ, (∀ p ∈ P, p.Prime) ∧ (∀ q ∈ Q, q.Prime) ∧\n    1 = (∑ p ∈ P, (p : ℚ)⁻¹) * (∑ q ∈ Q, (q : ℚ)⁻¹) := by\n  sorry\n\n/--\nInstead of asking for sets of primes, ask only that all elements in the sets be relatively coprime.\n\nCambie has found several examples when this weakened version is true. For example,\n$$\n1=\\left(1+\\frac{1}{5}\\right)\\left(\\frac{1}{2}+\\frac{1}{3}\\right)\n$$\nand\n$$\n1=\\left(1+\\frac{1}{41}\\right)\\left(\\frac{1}{2}+\\frac{1}{3}+\\frac{1}{7}\\right).\n$$\n-/\n@[category textbook, AMS 5 11]\ntheorem erdos_307.variants.coprime : ∃ P Q : Finset ℕ, 0 ∉ P ∩ Q ∧ 1 < #P ∧ 1 < #Q ∧\n    Set.Pairwise P Nat.Coprime ∧ Set.Pairwise Q Nat.Coprime ∧\n    1 = (∑ p ∈ P, (p : ℚ)⁻¹) * (∑ q ∈ Q, (q : ℚ)⁻¹) := by\n  simp only [Finset.mem_inter, not_and]\n  use {1, 5}, {2, 3}\n  norm_num +decide\n\n/--\nThere are no examples known of the weakened coprime version if we insist that $1\\not\\in P\\cup Q$.\n-/\n@[category research open, question, AMS 5 11]\ntheorem erdos_307.variants.coprime_one_notMem : ∃ P Q : Finset ℕ, 0 ∉ P ∩ Q ∧ 1 ∉ P ∪ Q ∧\n    1 < #P ∧ 1 < #Q ∧ Set.Pairwise P Nat.Coprime ∧ Set.Pairwise Q Nat.Coprime ∧\n    1 = (∑ p ∈ P, (p : ℚ)⁻¹) * (∑ q ∈ Q, (q : ℚ)⁻¹) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nA machine-checked **barrier** for Erdős 307 (Bonfioli, 2026): any solution with `Q` nonempty uses at\nleast 59 primes in total, and `(∏_{p ∈ P} p)² ≥ 4·10¹¹²` — i.e. `∏_{p ∈ P} p ≥ 2·10⁵⁶` (and, by\nsymmetry, the same for `∏ Q`); so no solution lies below a prime-product of `2.09·10⁵⁶`. The full\n`sorry`-free proof is in the linked repository (`Closed.lean`): the left conjunct is `card_ge_59`,\nthe right is `erdos307_barrier_closed`. Both depend on `propext, Classical.choice, Quot.sound` and\nnothing further: the evaluation of the first 59 primes is kernel-checked by `decide`, so no\n`native_decide` enters this statement.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n\"https://github.com/ElVec1o/erdos307/blob/76d242b024102f32d8411c714be4ad140a8b7c4b/lean/Erdos307/Closed.lean#L121\"]\ntheorem erdos_307.barrier {P Q : Finset ℕ}\n    (hP : ∀ p ∈ P, p.Prime) (hQ : ∀ q ∈ Q, q.Prime) (hQne : Q.Nonempty)\n    (heq : 1 = (∑ p ∈ P, (p : ℚ)⁻¹) * (∑ q ∈ Q, (q : ℚ)⁻¹)) :\n    59 ≤ #(P ∪ Q) ∧ (4 * 10 ^ 112 : ℚ) ≤ (∏ p ∈ P, (p : ℚ)) ^ 2 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nA stronger machine-checked **barrier** (Bonfioli, 2026), closing the 59-prime level: any solution of\nErdős 307 in fact uses at least `60` primes in total. The full `sorry`-free proof is `erdos307_sixty`\nin the linked repository (`Sixty.lean` at tag `v1.1.1`); its only non-logical input is a `native_decide`\ndepth-first search establishing that no admissible 59-prime support survives the Pythagorean\n`plus`-value square test, with axioms `propext, Classical.choice, Quot.sound` together with that\n`native_decide`.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n\"https://github.com/ElVec1o/erdos307/blob/080164a8db2eeb20f65c362894ec93f12448609a/lean/Erdos307/Sixty.lean#L367\"]\ntheorem erdos_307.barrier_sixty {P Q : Finset ℕ}\n    (hP : ∀ p ∈ P, p.Prime) (hQ : ∀ q ∈ Q, q.Prime)\n    (heq : 1 = (∑ p ∈ P, (p : ℚ)⁻¹) * (∑ q ∈ Q, (q : ℚ)⁻¹)) :\n    60 ≤ #(P ∪ Q) := by\n  sorry\n\nend Erdos307\n",
  "statement_hash": "be31350037ef9c6603498d20758c335a73bce2635647c41934d19fedc03806e3",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}