Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_E157.lean

qedmarket’s copy of theproofnetwork/open-problems@860a535, 3 Dec 2026original source ↗

29 lines · 2.1 kBraw
/-From Prove2Me, definition `QED_E157` (https://prove2.me/definitions/5dd11b0b-133f-4191-8804-fa1123df9b7f). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-E157: Square-free words from lists of size threeThue showed in 1906 that there is an infinite word over three letters with no square, that is, no block immediately repeated (like 'abab'). Now suppose each position i has its own list A_i of three allowed symbols, chosen by an adversary from an unbounded alphabet. Is there always an infinite square-free word whose i-th letter lies in A_i? Lists of size 4 are known to suffice, and size 3 suffices when all lists are drawn from only four symbols.Informal statement: Claim: for every sequence $(A_i)_{i\ge1}$ of sets $A_i\subseteq\mathbb N$ with $|A_i|=3$, there exists $w:\mathbb N_{\ge1}\to\mathbb N$ with $w(i)\in A_i$ for all $i$, such that there are no $i,k\ge1$ with $w(i+j)=w(i+k+j)$ for all $0\le j<k$. (By compactness, this is equivalent to the same statement for every finite length; that is, the Thue choice number of the path is $3$.)Formalization notes: Positions are indexed from 0 instead of 1 (an inessential shift).Symbols are natural numbers (any countable alphabet reduces to ℕ, and a single sequence oflists uses only countably many symbols). `SquareFree w` says no factor of the infiniteword w is a square: for every start i and every length k > 0 the blocksw(i..i+k−1) and w(i+k..i+2k−1) differ somewhere. Claim = every assignment of3-element lists admits a square-free choice (Thue choice number of the path ≤ 3, hence = 3);¬Claim = some sequence of 3-lists admits no infinite square-free choice word (equivalently,by König's lemma, some finite prefix of lists admits none).-/namespace OpenProblems.QEDE157noncomputable section def SquareFree (w : ℕ → ℕ) : Prop :=  ∀ i k : ℕ, 0 < k → ∃ j : ℕ, j < k ∧ w (i + j) ≠ w (i + k + j) def Claim : Prop :=  ∀ A : ℕ → Finset ℕ, (∀ i : ℕ, (A i).card = 3) →    ∃ w : ℕ → ℕ, (∀ i : ℕ, w i ∈ A i) ∧ SquareFree w endend OpenProblems.QEDE157

download (.tar)