{
  "id": "2817",
  "ident": "NS.02817",
  "slug": "erdos-675",
  "title": "Erdős Problem 675",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "A set $A \\subseteq \\mathbb{N}$ has the translation property if, for every $n$, there is an\ninteger $t_n \\geq 1$ such that, for all $1 \\leq a \\leq n$, $a \\in A$ if and only if\n$a + t_n \\in A$. Does the set of sums of two squares $\\{x^2 + y^2 : x, y \\in \\mathbb{N}\\}$\nhave the translation property?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos675.erdos_675.parts.i",
  "statement_lean": "theorem erdos_675.parts.i :\n    HasTranslationProperty {m : ℕ | ∃ x y : ℕ, m = x ^ 2 + y ^ 2}",
  "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# Erdős Problem 675\n\n*References:*\n- [erdosproblems.com/675](https://www.erdosproblems.com/675)\n- [Er79] Erdős, Paul, *Some unconventional problems in number theory*. Math. Mag. (1979), 67-70.\n- [Ho26] Ho, B. S., *A squarefree lower bound for Erdős Problem 675*.\n  [PDF](https://boonsuan.github.io/erdos675_squarefree.pdf) (2026).\n-/\n\n@[expose] public section\n\nopen Asymptotics Filter\n\nnamespace Erdos675\n\n/--\n`IsTranslation A n t` says that $t \\geq 1$ and, for all $1 \\leq a \\leq n$, $a \\in A$ if and\nonly if $a + t \\in A$.\n-/\ndef IsTranslation (A : Set ℕ) (n t : ℕ) : Prop :=\n  1 ≤ t ∧ ∀ a : ℕ, 1 ≤ a → a ≤ n → (a ∈ A ↔ a + t ∈ A)\n\n/--\nA set $A \\subseteq \\mathbb{N}$ has the translation property if, for every $n$, there is an\ninteger $t_n \\geq 1$ such that, for all $1 \\leq a \\leq n$, $a \\in A$ if and only if\n$a + t_n \\in A$.\n-/\ndef HasTranslationProperty (A : Set ℕ) : Prop :=\n  ∀ n : ℕ, ∃ t : ℕ, IsTranslation A n t\n\n/--\n`minTranslation A n` is the least $t_n \\geq 1$ such that, for all $1 \\leq a \\leq n$,\n$a \\in A$ if and only if $a + t_n \\in A$. It is `0` if there is no such $t_n$.\n-/\nnoncomputable def minTranslation (A : Set ℕ) (n : ℕ) : ℕ :=\n  sInf {t : ℕ | IsTranslation A n t}\n\n/-- `composedOf P` is the set of positive integers all of whose prime factors lie in `P`\n(a version of `Nat.factoredNumbers` for an arbitrary set `P`). It contains $1$. -/\ndef composedOf (P : Set ℕ) : Set ℕ :=\n  {m : ℕ | 0 < m ∧ ∀ p : ℕ, p.Prime → p ∣ m → p ∈ P}\n\n/-- The set $\\{1\\}$ does not have the translation property: for $n = 1$ it would need\n$1 + t \\in \\{1\\}$ for some $t \\geq 1$. -/\n@[category test, AMS 11]\ntheorem not_hasTranslationProperty_singleton_one : ¬ HasTranslationProperty {1} := by\n  intro h\n  obtain ⟨t, ht1, ht⟩ := h 1\n  have h1 : 1 + t ∈ ({1} : Set ℕ) := (ht 1 le_rfl le_rfl).mp (Set.mem_singleton 1)\n  rw [Set.mem_singleton_iff] at h1\n  omega\n\n/-- The numbers $1, 2, 3$ are squarefree, and $t = 4$ is the least $t \\geq 1$ such that\n$1 + t$, $2 + t$ and $3 + t$ are all squarefree. -/\n@[category test, AMS 11]\ntheorem minTranslation_squarefree_three : minTranslation {m : ℕ | Squarefree m} 3 = 4 := by\n  refine IsLeast.csInf_eq ⟨⟨by norm_num, fun a ha1 ha3 ↦ ?_⟩, fun t ⟨ht1, ht⟩ ↦ ?_⟩\n  · interval_cases a <;> simp [Nat.squarefree_iff_nodup_primeFactorsList]\n  · by_contra! h\n    have := ht (4 - t) (by omega) (by omega)\n    interval_cases t <;> simp [Nat.squarefree_iff_nodup_primeFactorsList] at this\n\n/-- If `P` contains every prime, then `composedOf P` is the set of all positive integers. -/\n@[category test, AMS 11]\ntheorem composedOf_primes : composedOf {p : ℕ | p.Prime} = {m : ℕ | 0 < m} := by\n  ext m\n  show (0 < m ∧ ∀ p : ℕ, p.Prime → p ∣ m → p ∈ {p : ℕ | p.Prime}) ↔ 0 < m\n  exact ⟨fun h ↦ h.1, fun h ↦ ⟨h, fun _ hp _ ↦ hp⟩⟩\n\n/--\nA set $A \\subseteq \\mathbb{N}$ has the translation property if, for every $n$, there is an\ninteger $t_n \\geq 1$ such that, for all $1 \\leq a \\leq n$, $a \\in A$ if and only if\n$a + t_n \\in A$. Does the set of sums of two squares $\\{x^2 + y^2 : x, y \\in \\mathbb{N}\\}$\nhave the translation property?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_675.parts.i :\n    HasTranslationProperty {m : ℕ | ∃ x y : ℕ, m = x ^ 2 + y ^ 2} := by\n  sorry\n\n/--\nIf we partition all primes into $P\\sqcup Q$, such that each set contains $\\gg x/\\log x$ many\nprimes $\\leq x$ for all large $x$, then can the set of integers only divisible by primes from\n$P$ have the translation property?\n\nWe read \"can\" as: is there such a partition for which this set (which contains $1$) has the\ntranslation property?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_675.parts.ii :\n    ∃ P : Set ℕ, P ⊆ {p : ℕ | p.Prime} ∧\n      (fun x : ℕ ↦ (x : ℝ) / Real.log x) =O[atTop] (fun x ↦ ((P ∩ Set.Iic x).ncard : ℝ)) ∧\n      (fun x : ℕ ↦ (x : ℝ) / Real.log x) =O[atTop]\n        (fun x ↦ ((({p : ℕ | p.Prime} \\ P) ∩ Set.Iic x).ncard : ℝ)) ∧\n      HasTranslationProperty (composedOf P) := by\n  sorry\n\n/--\nIf $A$ is the set of squarefree numbers then how fast does the minimal such $t_n$ grow? Is it\ntrue that $t_n>\\exp(n^c)$ for some constant $c>0$?\n\nWe ask for the inequality for all sufficiently large $n$, since $t_1 = 1$.\n\nHo [Ho26] proved that the answer is yes: for every fixed $0 < c < 25/72$, $t_n > \\exp(n^c)$ for\nall sufficiently large $n$ (Theorem 1.2 and Corollary 3.2); see also the\n[forum discussion](https://www.erdosproblems.com/forum/thread/675#post-6002).\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_675.parts.iii :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      Real.exp ((n : ℝ) ^ c) < (minTranslation {m : ℕ | Squarefree m} n : ℝ) := by\n  sorry\n\n/--\nElementary sieve theory implies that the set of squarefree numbers has the translation property\n(as remarked on erdosproblems.com).\n-/\n@[category research solved, AMS 11]\ntheorem erdos_675.variants.squarefree : HasTranslationProperty {m : ℕ | Squarefree m} := by\n  sorry\n\nopen scoped Classical in\n/--\nLet $B \\subseteq \\mathbb{N}$ be a set of pairwise coprime integers with\n$$\\sum_{b \\in B,\\ b < x} \\frac{1}{b} = o(\\log \\log x).$$\nThen $A = \\{n : b \\nmid n \\text{ for all } b \\in B\\}$ has the translation property.\nAs remarked on erdosproblems.com, this follows from Brun's sieve, and Erdős did not know what\nhappens if the condition on the sum is weakened or dropped.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_675.variants.brun (B : Set ℕ) (hB : B.Pairwise Nat.Coprime)\n    (hsum : (fun x : ℕ ↦ ∑ b ∈ Finset.range x with b ∈ B, (1 : ℝ) / (b : ℝ)) =o[atTop]\n      fun x : ℕ ↦ Real.log (Real.log (x : ℝ))) :\n    HasTranslationProperty {n : ℕ | ∀ b ∈ B, ¬ b ∣ n} := by\n  sorry\n\nend Erdos675\n",
  "statement_hash": "4a3cc51f1c19cb09a9c0c9de39e3d8c998fd9c45efc178c6944fef6021df9f32",
  "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."
}