{
  "id": "1054",
  "ident": "NS.01054",
  "slug": "erdos-125",
  "title": "Erdős Problem 125",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Case 3:\nDoes $A + B$ have positive upper and lower density that are equal?\nThis is the literal interpretation of \"positive density\" which was falsified.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/125",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos125.erdos_125",
  "statement_lean": "theorem erdos_125 :\n    ¬ (A + B).HasPosDensity",
  "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 125\n\n*Reference:* [erdosproblems.com/125](https://www.erdosproblems.com/125)\n\nThere are four possibilities for the density of $A+B$:\n1. $A+B$ has zero upper and lower density (and hence also zero density).\n2. $A+B$ has zero lower density, but positive upper density (and hence no density).\n3. $A+B$ has positive upper and lower density that are equal (and hence positive density).\n4. $A+B$ has positive upper and lower density that are unequal (and hence no density).\n-/\n\n@[expose] public section\n\nopen Nat Pointwise\n\nnamespace Erdos125\n\nset_option quotPrecheck false\n\n/--\nLet $A$ be the set of integers which have only the digits $0, 1$ when written base 3,\n-/\nlocal notation \"A\" => { x : ℕ | (digits 3 x).toFinset ⊆ {0, 1} }\n/--\nand $B$ be the set of integers which have only the digits $0, 1$ when written base 4.\n-/\nlocal notation \"B\" => { x : ℕ | (digits 4 x).toFinset ⊆ {0, 1} }\n\n\n/-\nThere are four possibilities for the density of $A+B$:\n1. $A+B$ has zero upper and lower density (and hence also zero density).\n2. $A+B$ has zero lower density, but positive upper density (and hence no density).\n3. $A+B$ has positive upper and lower density that are equal (and hence positive density).\n4. $A+B$ has positive upper and lower density that are unequal (and hence no density).\n-/\n\nset_option linter.style.formal_proof_palomar false in\n/--\nCase 3:\nDoes $A + B$ have positive upper and lower density that are equal?\nThis is the literal interpretation of \"positive density\" which was falsified.\n-/\n\n@[category research solved, question, AMS 11,\nformal_proof using formal_conjectures at \"https://github.com/google-deepmind/formal-conjectures/blob/300bf771bdbef43d7b9aa2521e633a50fd54dd28/FormalConjectures/ErdosProblems/125.lean\"]\ntheorem erdos_125 :\n    ¬ (A + B).HasPosDensity := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLiterature question:\nDoes $A + B$ have positive lower density?\n\nThis has been falsified.\n-/\n@[category research solved, question, AMS 11,\nformal_proof using formal_conjectures at \"https://github.com/mo271/formal-conjectures/blob/c27415379b5dbe34105d1fdd707994540c4c6fc7/FormalConjectures/ErdosProblems/125.lean#L468\"]\ntheorem erdos_125.variants.positive_lower_density :\n    ¬ 0 < (A + B).lowerDensity := by\n  sorry\n\n\n/--\nLiterature question:\nDoes $A + B$ have positive upper density?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_125.variants.positive_upper_density :\n    0 < (A + B).upperDensity := by\n  sorry\n\n/--\nCase 1:\nDoes $A + B$ have zero upper and lower density?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_125.variants.zero_density :\n    (A + B).upperDensity = 0 ∧ (A + B).lowerDensity = 0 := by\n  sorry\n\n/--\nCase 2:\nDoes $A + B$ have zero lower density, but positive upper density?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_125.variants.zero_lower_positive_upper_density :\n    (A + B).lowerDensity = 0 ∧ 0 < (A + B).upperDensity := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nCase 4:\nDoes $A + B$ have positive upper and lower density that are unequal?\n\nThis follows from the disproof `erdos_125.variants.positive_lower_density` above.\n-/\n@[category research solved, question, AMS 11, formal_proof using formal_conjectures at\n\"https://github.com/mo271/formal-conjectures/blob/0bc740d2351c53713e66d9340e83f7d2c1ddecab/FormalConjectures/ErdosProblems/125.lean#L860\"]\ntheorem erdos_125.variants.positive_unequal_density :\n    ¬ (0 < (A + B).lowerDensity ∧ (A + B).lowerDensity < (A + B).upperDensity) := by\n  sorry\n\nend Erdos125\n",
  "statement_hash": "f206abf27f07a99d596111acfc2e635c4692aff1d650ca194f29704dab7dfbb8",
  "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."
}