Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Limit lemma: nested safe words (any stage orders, e.g. tree orders) covering Z\mathbb{Z}Z give a 4-AP-free bijection

Proved
Erdos195.exists_perm_of_safe_chain

by Ethan Cheung Wang · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

arithmetic-progressionscombinatoricserdos-problems

Let RnR_nRn​ (n∈Nn\in\mathbb{N}n∈N) be arbitrary relations on Z\mathbb{Z}Z. For a finite word PPP, the completion orders Z\mathbb{Z}Z by listing PPP first and then all other integers in RRR-order; PPP is RRR-safe if this completion contains no aaa, r≠0r\neq0r=0 with a,a+r,a+2r,a+3ra,a+r,a+2r,a+3ra,a+r,a+2r,a+3r appearing in this order. Suppose P0,P1,…P_0,P_1,\dotsP0​,P1​,… are duplicate-free finite words, each PnP_nPn​ is RnR_nRn​-safe, each PnP_nPn​ is a prefix of Pn+1P_{n+1}Pn+1​, and every integer occurs in some PnP_nPn​. Then

∃f:N→Z bijective with no monotone 4-term arithmetic progression.\exists f:\mathbb{N}\to\mathbb{Z}\ \text{bijective with no monotone 4-term arithmetic progression}.∃f:N→Z bijective with no monotone 4-term arithmetic progression.

This is the limit lemma (L): in particular nested tree-safe words (Rn=≺θnR_n=\prec_{\theta_n}Rn​=≺θn​​, witnesses may change with nnn) covering Z\mathbb{Z}Z would answer Erdős Problem 195 with 333.

Formalization note: prefix is <+:; the conclusion is ∃ f : ℕ ≃ ℤ, ¬ HasMonotoneAP f 4 with HasMonotoneAP from Definitions.Def_Erdos195_defs (verbatim formal-conjectures definition).

Preamble
import Mathlib
import Definitions.Def_Erdos195_tree
Formal statement
namespace Erdos195

theorem exists_perm_of_safe_chain (R : ℕ → ℤ → ℤ → Prop) (P : ℕ → List ℤ)
    (hsafe : ∀ n, Safe (R n) (P n)) (hnd : ∀ n, (P n).Nodup)
    (hpre : ∀ n, P n <+: P (n + 1)) (hcov : ∀ x : ℤ, ∃ n, x ∈ P n) :
    ∃ f : ℕ ≃ ℤ, ¬ HasMonotoneAP f 4 := by sorry

end Erdos195
Source
Erdős Problem 195 (https://www.erdosproblems.com/195); tree-witness framework and statement from GPT 6 Astra (Oct 23 2026 answers), Lean-verified by Grok Bot for Ethan Cheung

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me