{
  "id": "1269",
  "ident": "NS.01269",
  "slug": "erdos-192",
  "title": "Erdős Problem 192",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A=\\{a_1,a_2,\\ldots\\}\\subset \\mathbb{R}^d$ be an infinite sequence such that $a_{i+1}-a_i$\nis a positive unit vector (i.e. is of the form $(0,0,\\ldots,1,0,\\ldots,0)$). For which $d$ must\n$A$ contain a three-term arithmetic progression?\n\nThis is true for $d\\leq 3$ and false for $d\\geq 4$.\n\nThis problem is equivalent to one on 'abelian squares' (see\n[231](https://www.erdosproblems.com/231)). In particular $A$ can be interpreted as an infinite\nstring over an alphabet with $d$ letters (each letter describining which of the $d$ possible\nsteps is taken at each point). An abelian square in a string $s$ is a pair of consecutive blocks\n$x$ and $y$ appearing in $s$ such that $y$ is a permutation of $x$. The connection comes from the\nobservation that $p,q,r\\in A\\subset \\mathbb{R}^d$ form a three-term arithmetic progression if and\nonly if the string corresponding to the steps from $p$ to $q$ is a permutation of the string\ncorresponding to the steps from $q$ to $r$.\n\nThis problem is therefore equivalent to asking for which $d$ there exists an infinite string over\n$\\{1,\\ldots,d\\}$ with no abelian squares. An infinite string without abelian squares was\nconstructed when $d=4$ by Keränen [Ke92]. We refer to a recent survey by Fici and Puzynina\n[FiPu23] for more background and related results.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos192.erdos_192",
  "statement_lean": "theorem erdos_192 : {d : ℕ | ∀ a : ℕ → Fin d → ℝ, IsPositiveUnitWalk a →\n    ∃ x ∈ Set.range a, ∃ y ∈ Set.range a, ∃ z ∈ Set.range a, x ≠ y ∧ ∀ j, x j + z j = 2 * y j} =\n      erdos_192.answer",
  "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 192\n\n*References:*\n- [erdosproblems.com/192](https://www.erdosproblems.com/192)\n- [ErGr79] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory: van der Waerden's theorem and related topics*. Enseign. Math. (1979), 325-344.\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathematique (1980).\n- [Ke92] Keränen, Veikko, *Abelian squares are avoidable on $4$ letters*. Automata, languages and\n  programming (Vienna, 1992) (1992), 41-52.\n- [FiPu23] Fici, Gabriele and Puzynina, Svetlana, *Abelian combinatorics on words: a survey*.\n  Comput. Sci. Rev. (2023), Paper No. 100532, 21.\n-/\n\n@[expose] public section\n\nnamespace Erdos192\n\n/-- A sequence $a_1, a_2, \\ldots \\in \\mathbb{R}^d$ such that every difference $a_{i+1}-a_i$ is a\npositive unit vector $(0,\\ldots,0,1,0,\\ldots,0)$. -/\ndef IsPositiveUnitWalk {d : ℕ} (a : ℕ → Fin d → ℝ) : Prop :=\n  ∀ n, ∃ i : Fin d, ∀ j, a (n + 1) j = a n j + if j = i then 1 else 0\n\ndef erdos_192.answer : Set ℕ := Set.Iic 3\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A=\\{a_1,a_2,\\ldots\\}\\subset \\mathbb{R}^d$ be an infinite sequence such that $a_{i+1}-a_i$\nis a positive unit vector (i.e. is of the form $(0,0,\\ldots,1,0,\\ldots,0)$). For which $d$ must\n$A$ contain a three-term arithmetic progression?\n\nThis is true for $d\\leq 3$ and false for $d\\geq 4$.\n\nThis problem is equivalent to one on 'abelian squares' (see\n[231](https://www.erdosproblems.com/231)). In particular $A$ can be interpreted as an infinite\nstring over an alphabet with $d$ letters (each letter describining which of the $d$ possible\nsteps is taken at each point). An abelian square in a string $s$ is a pair of consecutive blocks\n$x$ and $y$ appearing in $s$ such that $y$ is a permutation of $x$. The connection comes from the\nobservation that $p,q,r\\in A\\subset \\mathbb{R}^d$ form a three-term arithmetic progression if and\nonly if the string corresponding to the steps from $p$ to $q$ is a permutation of the string\ncorresponding to the steps from $q$ to $r$.\n\nThis problem is therefore equivalent to asking for which $d$ there exists an infinite string over\n$\\{1,\\ldots,d\\}$ with no abelian squares. An infinite string without abelian squares was\nconstructed when $d=4$ by Keränen [Ke92]. We refer to a recent survey by Fici and Puzynina\n[FiPu23] for more background and related results.\n-/\n@[category research solved, question value, AMS 5 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos192.lean#L39\"]\ntheorem erdos_192 : {d : ℕ | ∀ a : ℕ → Fin d → ℝ, IsPositiveUnitWalk a →\n    ∃ x ∈ Set.range a, ∃ y ∈ Set.range a, ∃ z ∈ Set.range a, x ≠ y ∧ ∀ j, x j + z j = 2 * y j} =\n      erdos_192.answer := by\n  sorry\n\nend Erdos192\n",
  "statement_hash": "3e69184a6d9fc830a1e2050b8b83368ebd14d33f958c3ca7ba0371a8cacfbb2c",
  "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."
}