{
  "id": "2267",
  "ident": "NS.02267",
  "slug": "erdos-494",
  "title": "Erdős Problem 494",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Selfridge and Straus [SeSt58] showed that the conjecture is true when $k = 2$ and\n$|A| \\ne 2^l$ for $l \\ge 0$.\nThey also gave counterexamples when $k = 2$ and $|A| = 2^l$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos494.erdos_494.variants.k_eq_2_card_not_pow_two",
  "statement_lean": "theorem erdos_494.variants.k_eq_2_card_not_pow_two :\n    ∀ card : ℕ, (∀ l : ℕ, card ≠ 2 ^ l) → Erdos494Unique 2 card",
  "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 494\n\n*References:*\n  - [erdosproblems.com/494](https://www.erdosproblems.com/494)\n  - [SeSt58] Selfridge, J. L. and Straus, E., On the determination of numbers by their sums\n      of a fixed order. Pacific Journal of Math. (1958), 847-856.\n  - [Er61] Erdős, Paul, Some unsolved problems. Magyar Tud. Akad. Mat. Kutató Int. Közl. (1961),\n      221-254.\n  - [GFS62] Gordon, B. and Fraenkel, A. S. and Straus, E. G., On the determination of sets\n      by the sets of sums of a certain order. Pacific J. Math. (1962), 187--196.\n  - [FoIz94] Fomin, D. V. and Izhboldin, O. T., Sets of multiple sums. Proc. St. Petersburg\n      Math. Soc. 3 (1994), 244-259.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos494\n\n/--\nFor a finite set $A \\subset \\mathbb{C}$ and $k \\ge 1$, define $A_k$ as the multiset consisting of\nall sums of $k$ distinct elements of $A$.\n-/\nnoncomputable def sumMultiset (A : Finset ℂ) (k : ℕ) : Multiset ℂ :=\n  (A.powersetCard k).val.map fun s => s.sum id\n\ndef Erdos494Unique (k : ℕ) (card : ℕ) :=\n  ∀ A B : Finset ℂ, A.card = card → B.card = card → sumMultiset A k = sumMultiset B k → A = B\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSelfridge and Straus [SeSt58] showed that the conjecture is true when $k = 2$ and\n$|A| \\ne 2^l$ for $l \\ge 0$.\nThey also gave counterexamples when $k = 2$ and $|A| = 2^l$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/a2d6dcb99d4f11469cbb40c18959357031786c4c/erdos-494/Solution.lean#L26\"]\ntheorem erdos_494.variants.k_eq_2_card_not_pow_two :\n    ∀ card : ℕ, (∀ l : ℕ, card ≠ 2 ^ l) → Erdos494Unique 2 card := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSelfridge and Straus [SeSt58] gave counterexamples to the conjecture\nwhen $k = 2$ and $|A| = 2^l$.\n-/\n@[category research solved, AMS 5,\n  formal_proof using formal_conjectures at\n    \"https://github.com/hjyuh/formal-conjectures/blob/e0da6ec78953b17618895a093d4bee90fd3f6f67/FormalConjectures/ErdosProblems/494.lean#L533\"]\ntheorem erdos_494.variants.k_eq_2_card_pow_two :\n    ∀ card : ℕ, (∃ l : ℕ, card = 2 ^ l) → ¬Erdos494Unique 2 card := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSelfridge and Straus [SeSt58] also showed that the conjecture is true when\n1) $k = 3$ and $|A| > 6$, except possibly for $|A| = 27$ and $|A| = 486$, or\n2) $k = 4$ and $|A| > 12$.\nMore generally, they proved that $A$ is determined by $A_k$ (and $|A|$) if $|A|$ is divisible by\na prime greater than $k$.\n\nThe cases $|A| = 27$ and $|A| = 486$ were left open in [SeSt58]. Fomin and Izhboldin [FoIz94]\nlater found two distinct sets of each of these sizes with the same multiset of $3$-sums, so\nthese exceptions are genuine.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/a2d6dcb99d4f11469cbb40c18959357031786c4c/erdos-494/Solution.lean#L30\"]\ntheorem erdos_494.variants.k_eq_3_card_gt_6 :\n    ∀ card > 6, card ≠ 27 → card ≠ 486 → Erdos494Unique 3 card := by\n  sorry\n\n/--\nSelfridge and Straus [SeSt58] showed that the conjecture is true\nwhen $k = 4$ and $|A| > 12$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-14-000008\"]\ntheorem erdos_494.variants.k_eq_4_card_gt_12 :\n    ∀ card > 12, Erdos494Unique 4 card := by\n  sorry\n\n/--\nSelfridge and Straus [SeSt58] proved that $A$ is determined by $A_k$\nif $|A|$ is divisible by a prime greater than $k$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-14-000008\"]\ntheorem erdos_494.variants.card_divisible_by_prime_gt_k :\n    ∀ (k card p : ℕ), p.Prime → k ∈ Set.Ioo 0 p → p ∣ card → Erdos494Unique k card := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nKruyt noted that the conjecture fails when $|A| = k$, by rotating $A$ around an appropriate point.\n-/\n@[category research solved, AMS 5,\n  formal_proof using formal_conjectures at\n    \"https://github.com/hjyuh/formal-conjectures/blob/e0da6ec78953b17618895a093d4bee90fd3f6f67/FormalConjectures/ErdosProblems/494.lean#L592\"]\ntheorem erdos_494.variants.k_eq_card :\n    ∀ k > 2, ¬Erdos494Unique k k := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSimilarly, Tao noted that the conjecture fails when $|A| = 2k$, by taking $A$ to be a set of\nthe total sum 0 and considering $-A$.\n-/\n@[category research solved, AMS 5,\n  formal_proof using formal_conjectures at\n    \"https://github.com/hjyuh/formal-conjectures/blob/e0da6ec78953b17618895a093d4bee90fd3f6f67/FormalConjectures/ErdosProblems/494.lean#L916\"]\ntheorem erdos_494.variants.card_eq_2k :\n    ∀ k > 2, ¬Erdos494Unique k (2 * k) := by\n  sorry\n\n/--\nGordon, Fraenkel, and Straus [GFS62] proved that the claim is true for all $k > 2$ when\n$|A|$ is sufficiently large.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_494.variants.gordon_fraenkel_straus :\n    ∀ k > 2, ∀ᶠ card in atTop, Erdos494Unique k card := by\n  sorry\n\n/--\nA version in [Er61] by Erdős is product instead of sum, which is false.\nCounterexample (by Steinerberger): consider $k = 3$ and let\n$A = \\{1, \\zeta_6, \\zeta_6^2, \\zeta_6^4\\}$ and $B = \\{1, \\zeta_6^2, \\zeta_6^3, \\zeta_6^4\\}$.\n-/\nnoncomputable def prodMultiset (A : Finset ℂ) (k : ℕ) : Multiset ℂ :=\n  ((A.powersetCard k).val.map (fun s => s.prod id))\n\n/-- A counterexample to the product version of the conjecture for sets of nonzero complex numbers\nof size greater than $3$ (by Steinerberger). -/\n@[category research solved, AMS 5]\ntheorem erdos_494.variants.product :\n    ∃ (A B : Finset ℂ), 3 < A.card ∧ A.card = B.card ∧ (0 : ℂ) ∉ A ∧ (0 : ℂ) ∉ B ∧\n      prodMultiset A 3 = prodMultiset B 3 ∧ A ≠ B := by\n  sorry\n\nend Erdos494\n",
  "statement_hash": "e1ced6b089bf3c08f37fff33cf81553afd5bd5f4adca79ad093de47620926e22",
  "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."
}