Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_E156.lean
qedmarketβs copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source β
/-From Prove2Me, definition `QED_E156` (https://prove2.me/definitions/353beef4-8ca8-4faf-9991-5552e03b5418). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-E156: Can additive squares be avoided over the integers?An additive square in a sequence of integers is a block of 2k consecutive terms whose first half and second half have the same sum (for example 1 3 | 2 2). Is there a finite set of integers S and an infinite sequence with all terms in S that contains no additive square? Such sequences exist over a finite subset of the plane lattice ZΒ², and over Z one can avoid additive cubes (three adjacent blocks of equal length and equal sum), but no one knows whether squares can be avoided over Z.Informal statement: Decide whether there exist a finite set $S\subset\mathbb{Z}$ and $w:\mathbb{N}\to S$ such that for all $i\ge0$ and $k\ge1$, $\sum_{j=i}^{i+k-1}w(j)\neq\sum_{j=i+k}^{i+2k-1}w(j)$. Equivalently, by compactness: is there a finite $S\subset\mathbb Z$ for which arbitrarily long finite words over $S$ avoid additive squares?Formalization notes:* An infinite word is w : β β β€ with all values in a finite set S : Finset β€. An additive square at position i of half-length k β₯ 1 is w(i) + β¦ + w(i+kβ1) = w(i+k) + β¦ + w(i+2kβ1). `AddSqFree w` forbids all of them.* `Claim`: some finite S β β€ admits an infinite additive-square-free word over S. Decision problem: proving `Claim` = additive squares are avoidable over β€; Β¬Claim = every infinite word over any finite S β β€ has an additive square (by compactness equivalent to the finite-word version).-/namespace OpenProblems.QEDE156 def AddSqFree (w : β β β€) : Prop := β i k : β, 0 < k β β j β Finset.range k, w (i + j) β β j β Finset.range k, w (i + k + j) def Claim : Prop := β S : Finset β€, β w : β β β€, (β n : β, w n β S) β§ AddSqFree w end OpenProblems.QEDE156