Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 192

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let A={a1,a2,…}⊂RdA=\{a_1,a_2,\ldots\}\subset \mathbb{R}^d be an infinite sequence such that ai+1−aia_{i+1}-a_i is a positive unit vector (i.e. is of the form (0,0,…,1,0,…,0)(0,0,\ldots,1,0,\ldots,0)). For which dd must AA contain a three-term arithmetic progression?

This is true for d≤3d\leq 3 and false for d≥4d\geq 4.

This problem is equivalent to one on 'abelian squares' (see 231). In particular AA can be interpreted as an infinite string over an alphabet with dd letters (each letter describining which of the dd possible steps is taken at each point). An abelian square in a string ss is a pair of consecutive blocks xx and yy appearing in ss such that yy is a permutation of xx. The connection comes from the observation that p,q,r∈A⊂Rdp,q,r\in A\subset \mathbb{R}^d form a three-term arithmetic progression if and only if the string corresponding to the steps from pp to qq is a permutation of the string corresponding to the steps from qq to rr.

This problem is therefore equivalent to asking for which dd there exists an infinite string over {1,…,d}\{1,\ldots,d\} with no abelian squares. An infinite string without abelian squares was constructed when d=4d=4 by Keränen [Ke92]. We refer to a recent survey by Fici and Puzynina [FiPu23] for more background and related results.

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Tags:question, formal_proof
Cite as:NS.01269 [math.CO] · NS.01269v1 for this version
Declaration:Erdos192.erdos_192
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:3e69184a6d9fc830a1e2050b8b83368ebd14d33f958c3ca7ba0371a8cacfbb2c
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/192.lean

Formal statement

theorem erdos_192 : {d : ℕ | ∀ a : ℕ → Fin d → ℝ, IsPositiveUnitWalk a →
    ∃ x ∈ Set.range a, ∃ y ∈ Set.range a, ∃ z ∈ Set.range a, x ≠ y ∧ ∀ j, x j + z j = 2 * y j} =
      erdos_192.answer
Show the full Challenge.lean (76 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 192

*References:*
- [erdosproblems.com/192](https://www.erdosproblems.com/192)
- [ErGr79] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory: van der Waerden's theorem and related topics*. Enseign. Math. (1979), 325-344.
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathematique (1980).
- [Ke92] Keränen, Veikko, *Abelian squares are avoidable on $4$ letters*. Automata, languages and
  programming (Vienna, 1992) (1992), 41-52.
- [FiPu23] Fici, Gabriele and Puzynina, Svetlana, *Abelian combinatorics on words: a survey*.
  Comput. Sci. Rev. (2023), Paper No. 100532, 21.
-/

@[expose] public section

namespace Erdos192

/-- A sequence $a_1, a_2, \ldots \in \mathbb{R}^d$ such that every difference $a_{i+1}-a_i$ is a
positive unit vector $(0,\ldots,0,1,0,\ldots,0)$. -/
def IsPositiveUnitWalk {d : ℕ} (a : ℕ → Fin d → ℝ) : Prop :=
  ∀ n, ∃ i : Fin d, ∀ j, a (n + 1) j = a n j + if j = i then 1 else 0

def erdos_192.answer : Set ℕ := Set.Iic 3

set_option linter.style.formal_proof_palomar false in
/--
Let $A=\{a_1,a_2,\ldots\}\subset \mathbb{R}^d$ be an infinite sequence such that $a_{i+1}-a_i$
is a positive unit vector (i.e. is of the form $(0,0,\ldots,1,0,\ldots,0)$). For which $d$ must
$A$ contain a three-term arithmetic progression?

This is true for $d\leq 3$ and false for $d\geq 4$.

This problem is equivalent to one on 'abelian squares' (see
[231](https://www.erdosproblems.com/231)). In particular $A$ can be interpreted as an infinite
string over an alphabet with $d$ letters (each letter describining which of the $d$ possible
steps is taken at each point). An abelian square in a string $s$ is a pair of consecutive blocks
$x$ and $y$ appearing in $s$ such that $y$ is a permutation of $x$. The connection comes from the
observation that $p,q,r\in A\subset \mathbb{R}^d$ form a three-term arithmetic progression if and
only if the string corresponding to the steps from $p$ to $q$ is a permutation of the string
corresponding to the steps from $q$ to $r$.

This problem is therefore equivalent to asking for which $d$ there exists an infinite string over
$\{1,\ldots,d\}$ with no abelian squares. An infinite string without abelian squares was
constructed when $d=4$ by Keränen [Ke92]. We refer to a recent survey by Fici and Puzynina
[FiPu23] for more background and related results.
-/
@[category research solved, question value, AMS 5 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos192.lean#L39"]
theorem erdos_192 : {d : ℕ | ∀ a : ℕ → Fin d → ℝ, IsPositiveUnitWalk a →
    ∃ x ∈ Set.range a, ∃ y ∈ Set.range a, ∃ z ∈ Set.range a, x ≠ y ∧ ∀ j, x j + z j = 2 * y j} =
      erdos_192.answer := by
  sorry

end Erdos192

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos192.erdos_192 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_192 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-192
nosorry submit erdos-192 nosorry/erdos-192/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.