{
  "id": "4018",
  "ident": "NS.04018",
  "slug": "green-27",
  "title": "Green's Open Problem 27",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "What is the size of the smallest set $A \\subset \\mathbb{Z} / p\\mathbb{Z}$ (with at least two elements)\nfor which no element in the sumset $A + A$ has a unique representation?",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green27.green_27.equivalent",
  "statement_lean": "theorem green_27.equivalent :\n  green_27.equivalent.answer ~[primesAtTop] m",
  "challenge_source": "/-\nCopyright 2026 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# Green's Open Problem 27\n\nReferences:\n- [Gr24] [Green, Ben. \"100 open problems.\" (2024).](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.27)\n- [Be23] Bedert, Benjamin. \"On unique sums in Abelian groups.\" Combinatorica 44.2 (2024): 269-298.\n- [CY26] Cao, Jiao-Long, and Ye Yuan. \"A Second-Logarithm Lower Bound for Sets with No Unique\n  Sums.\" arXiv preprint arXiv:2608.06728 (2026).\n- [He26] He, Xinjie. \"A near-quadratic lower bound for sets with no unique sums.\" Working draft\n  (July 21, 2026):\n  https://github.com/xinjiegit/ben_27_formalization/blob/f70352964007662e97a810c880abbfea1e2ea262/NUS_edited.tex.\n  Its Lean 4 proof is registered as\n  [PALOMAR-2026-08-18-000003](https://palomar-registry.org/entry.html?id=PALOMAR-2026-08-18-000003&version=1).\n- [HY26] Hou, Jianfeng, and Kai Yang. \"A near-quadratic lower bound for sets with no unique sums.\"\n  arXiv preprint arXiv:2610.09349 (2026).\n- [St76] Straus, E. G. \"Differences of residues (mod p).\" Journal of Number Theory 8.1 (1976): 40-42.\n-/\n\n@[expose] public section\n\nopen Asymptotics Filter\n\nnamespace Green27\n\n/--\nThis is $m(p)$ in [Be23]: the size of the smallest set $A \\subset \\mathbb{Z} / p\\mathbb{Z}$ (with\nat least two elements) for which no element in the sumset $A + A$ has a unique representation.\n-/\nnoncomputable def m (p : ℕ) : ℝ :=\n  (sInf { (A.card) | (A : Finset (ZMod p)) (_ : 2 ≤ A.card) (_ : HasNoUniqueRepresentation A) } : ℝ)\n\n/-- `atTop` restricted to prime numbers. -/\ndef primesAtTop : Filter ℕ := atTop ⊓ 𝓟 {p : ℕ | p.Prime}\n\n/-- Bedert's lower bound [Be23, Theorem 3]. This was the best known bound when Green's list was\nwritten; it has since been improved, see `green_27.lower`. -/\nnoncomputable def lowerBest (p : ℕ) : ℝ :=\n  (Real.sqrt (Real.log (Real.log (Real.log (p : ℝ)))) /\n   Real.log (Real.log (Real.log (Real.log (p : ℝ))))) * Real.log (p : ℝ)\n\n/-- Best-known upper bound [Be23, Theorem 5]. -/\nnoncomputable def upperBest (p : ℕ) : ℝ := (Real.log (p : ℝ)) ^ 2\n\ndef green_27.equivalent.answer : ℕ → ℝ := sorry\n\n/--\nWhat is the size of the smallest set $A \\subset \\mathbb{Z} / p\\mathbb{Z}$ (with at least two elements)\nfor which no element in the sumset $A + A$ has a unique representation?\n-/\n@[category research open, question value, AMS 5 11]\ntheorem green_27.equivalent :\n  green_27.equivalent.answer ~[primesAtTop] m := by\n  sorry\n\nnoncomputable def green_27.lower.answer : ℕ → ℝ := fun p ↦ Real.log p * Real.log (Real.log p)\n\n/-- Propose a better lower bound along primes.\n\nCao and Yuan [CY26, Theorem 1.1] prove $m(p) \\gg \\log p \\log \\log p$. This beats `lowerBest`,\nsince $\\sqrt{\\log \\log \\log p} / \\log \\log \\log \\log p = o(\\log \\log p)$.\n\nXinjie He [He26, Theorem 1.2] and Hou and Yang [HY26, Theorem 1.1] prove the stronger bound\n$m(p) \\gg (\\log p / \\log \\log p)^2$. He's proof is formalised in Lean, see\n`green_27.variants.lower_he26_hy26`. Together with `green_27.variants.upper_be23`, this lower bound\ngives $m(p) = (\\log p)^{2 + o(1)}$. The exact order of $m(p)$ remains open. -/\n@[category research solved, question value, AMS 5 11]\ntheorem green_27.lower :\n    (lowerBest =o[primesAtTop] green_27.lower.answer) ∧ (green_27.lower.answer =O[primesAtTop] m)\n      := by\n  sorry\n\ndef green_27.upper.answer : ℕ → ℝ := sorry\n\n/-- Propose a better upper bound along primes. -/\n@[category research open, question value, AMS 5 11]\ntheorem green_27.upper :\n    (green_27.upper.answer =o[primesAtTop] upperBest) ∧ (m =O[primesAtTop] green_27.upper.answer)\n      := by\n  sorry\n\n/--\nWe have $m(p) \\geq \\omega(p) \\log p$ for some function $\\omega(p)$ tending to infinity [Be23, Theorem 3].\n-/\n@[category research solved, AMS 5 11]\ntheorem green_27.variants.lower_be23 :\n  ∃ ω : ℕ → ℝ, Tendsto ω primesAtTop atTop ∧\n    ∀ᶠ p in primesAtTop,\n      ω p * Real.log (p : ℝ) ≤ m p := by\n  sorry\n  \n/-- Lower bound: $\\log p \\log \\log p \\ll m(p)$ [CY26, Theorem 1.1]. -/\n@[category research solved, AMS 5 11]\ntheorem green_27.variants.lower_cy26 :\n  (fun p ↦ Real.log (p : ℝ) * Real.log (Real.log (p : ℝ))) =O[primesAtTop] m := by\n  sorry\n\n/-- Lower bound: $(\\log p / \\log \\log p)^2 \\ll m(p)$ [He26, Theorem 1.2], [HY26, Theorem 1.1].\nThe linked formal proof is He's. -/\n@[category research solved, AMS 5 11, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-08-18-000003\"]\ntheorem green_27.variants.lower_he26_hy26 :\n  ∃ c > (0 : ℝ), ∀ᶠ p : ℕ in primesAtTop,\n    c * (Real.log (p : ℝ) / Real.log (Real.log (p : ℝ))) ^ 2 ≤ m p := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Upper bound: $m(p) \\ll (\\log p)^2$ [Be23, Theorem 5]. -/\n@[category research solved, AMS 5 11,\n  formal_proof using lean4 at \"https://github.com/mkwatson/unique-sums-notes/blob/d4383f93a52e3a916ccce78d5fb7739c3bf3dabc/Green27Upper/Theorem.lean#L26\"]\ntheorem green_27.variants.upper_be23 :\n  m =O[primesAtTop] upperBest := by\n  sorry\n\n/-- Previous best-known lower bound $\\log p \\ll m(p)$ from [St76]. -/\n@[category research solved, AMS 5 11]\ntheorem green_27.variants.previous_lower :\n  (fun p ↦ Real.log (p : ℝ)) =O[primesAtTop] m := by\n  sorry\n\n/-- Previous best-known upper bound $m(p) \\ll \\sqrt{p}$ from [Be23]. -/\n@[category research solved, AMS 5 11]\ntheorem green_27.variants.previous_upper :\n  m =O[primesAtTop] (fun p ↦ Real.sqrt (p : ℝ)) := by\n  sorry\n\nend Green27\n",
  "statement_hash": "d85bce89419127b853202d0733c60a87d51a30b315e825f842d772910bef2676",
  "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."
}