{
  "id": "1270",
  "ident": "NS.01270",
  "slug": "erdos-193",
  "title": "Erdős Problem 193",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $S \\subseteq \\mathbb{Z}^3$ be a finite set and let $A = \\lbrace a_1, a_2, \\ldots \\rbrace$ be\nan infinite $S$-walk, so that $a_{i+1} - a_i \\in S$ for all $i$. Must $A$ contain three collinear\npoints?\n\nCambie and Kalviainen [CaKa26] answered this question in the negative by constructing an infinite\nwalk in $\\mathbb{Z}^3$ with a finite set of steps and no three collinear points.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos193.erdos_193",
  "statement_lean": "theorem erdos_193 :\n    ¬ ∀ S : Set (Fin 3 → ℤ), S.Finite →\n      /- The statement's $A = \\lbrace a_1, a_2, \\ldots \\rbrace$ is an infinite set.\n\n      If the sequence only takes finitely many values, one value has to repeat infinitely many\n      times, which would yield a trivial collinear triple (x, x, x). In this case, the conjecture\n      would hold for degenerate S-walks. Another case is constant S-walks, which would render the\n      conjecture trivially false (finite loop ranges have no 3 distinct points).\n\n      Assuming the authors intend to stay away from these degenerate cases, we formalize this by\n      requiring an infinite range (and require distinct points). -/\n      ∀ a : ℕ → Fin 3 → ℤ, IsSWalk S a → (range a).Infinite →\n      HasCollinearTriple ℚ (range (fun n ↦ (↑) ∘ a n : ℕ → Fin 3 → ℚ))",
  "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 193\n\nReferences:\n- [erdosproblems.com/193](https://www.erdosproblems.com/193)\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- [GeRa79] Gerver, Joseph L. and Ramsey, L. Thomas, \"On certain sequences of lattice points.\"\n  Pacific J. Math. (1979), 357-363.\n- [CaKa26] Cambie, Stijn and Kalviainen, Erik, \"An infinite small-step Z³-walk with no\n  collinear triple.\" [arXiv:2609.01766](https://arxiv.org/abs/2609.01766).\n-/\n\n@[expose] public section\n\nopen Set\n\nnamespace Erdos193\n\n/-- An $S$-walk is a sequence where every difference is in $S$. -/\ndef IsSWalk {V : Type*} [AddCommGroup V] (S : Set V) (a : ℕ → V) : Prop :=\n  ∀ n, a (n + 1) - a n ∈ S\n\n/-- True if set $A$ contains 3 distinct collinear points over $R$. -/\ndef HasCollinearTriple (R) {V : Type*} [DivisionRing R] [AddCommGroup V] [Module R V] (A : Set V) : Prop :=\n  ∃ x ∈ A, ∃ y ∈ A, ∃ z ∈ A, x ≠ y ∧ y ≠ z ∧ x ≠ z ∧ Collinear R ({x, y, z} : Set V)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $S \\subseteq \\mathbb{Z}^3$ be a finite set and let $A = \\lbrace a_1, a_2, \\ldots \\rbrace$ be\nan infinite $S$-walk, so that $a_{i+1} - a_i \\in S$ for all $i$. Must $A$ contain three collinear\npoints?\n\nCambie and Kalviainen [CaKa26] answered this question in the negative by constructing an infinite\nwalk in $\\mathbb{Z}^3$ with a finite set of steps and no three collinear points.\n-/\n@[category research solved, question, AMS 5,\n  formal_proof using lean4 at \"https://github.com/ekalvi/erdos-193/blob/fca4e1bd2b423c000a6bef18cf2f3bc0f4bd363e/formal/Hilbert193/Hilbert193/Continuity.lean#L64-L72\"]\ntheorem erdos_193 :\n    ¬ ∀ S : Set (Fin 3 → ℤ), S.Finite →\n      /- The statement's $A = \\lbrace a_1, a_2, \\ldots \\rbrace$ is an infinite set.\n\n      If the sequence only takes finitely many values, one value has to repeat infinitely many\n      times, which would yield a trivial collinear triple (x, x, x). In this case, the conjecture\n      would hold for degenerate S-walks. Another case is constant S-walks, which would render the\n      conjecture trivially false (finite loop ranges have no 3 distinct points).\n\n      Assuming the authors intend to stay away from these degenerate cases, we formalize this by\n      requiring an infinite range (and require distinct points). -/\n      ∀ a : ℕ → Fin 3 → ℤ, IsSWalk S a → (range a).Infinite →\n      HasCollinearTriple ℚ (range (fun n ↦ (↑) ∘ a n : ℕ → Fin 3 → ℚ)) := by\n  sorry\n\n/--\n[GeRa79] showed that the answer is yes for $\\mathbb{Z}^2$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_193_z2 :\n    ∀ S : Set (Fin 2 → ℤ), S.Finite →\n      ∀ a : ℕ → Fin 2 → ℤ, IsSWalk S a → (range a).Infinite →\n      HasCollinearTriple ℚ (range (fun n ↦ (↑) ∘ a n : ℕ → Fin 2 → ℚ)) := by\n  sorry\n\n-- TODO(jeangud): For $\\mathbb{Z}^3$ the largest number of collinear points can be bounded [GeRa79].\n\nend Erdos193\n",
  "statement_hash": "c7c1a5a6e9b31b4b497a6fc67bdbc978df592d8ae8cca0f97915438cb7361db9",
  "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."
}