Title:Büchi's problem
Statement:Büchi's problem There exists a positive integer such that, for all integers and , if is a square for consecutive values of , then .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.07699 [math.NT] · NS.07699v1 for this version |
| Declaration: | Buchi.buchi_problem |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 71716cb13181d43db271bdcab062a3844cea3fda157438b452b897d5d865b2ce |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/Wikipedia/Buchi.lean |
Formal statement
theorem buchi_problem :
∃ M : ℕ, 1 ≤ M ∧ IsBuchi MShow the full Challenge.lean (114 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Büchi's problem
*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/B%C3%BCchi%27s_problem)
-/
@[expose] public section
namespace Buchi
/-- `IsBuchi M` asserts that whenever `M` consecutive values `(x + n)² + a` (for
`n = 0, …, M - 1`) are all perfect squares, then `a` must be `0`. -/
def IsBuchi (M : ℕ) : Prop :=
∀ x a : ℤ, (∀ n ∈ Finset.range M, IsSquare ((x + (n : ℤ)) ^ 2 + a)) → a = 0
/--
**Büchi's problem**
There exists a positive integer $M$ such that, for all integers $x$ and $a$,
if $(x+n)^2 + a$ is a square for $M$ consecutive values of $n$, then $a = 0$.
-/
@[category research open, question, AMS 11]
theorem buchi_problem :
∃ M : ℕ, 1 ≤ M ∧ IsBuchi M := by
sorry
/--
**Büchi's problem (first open case, $M = 5$)**:
For all integers $x$ and $a$, if $(x+n)^2 + a$ is a perfect square for $n = 0, 1, 2, 3, 4$,
then $a = 0$.
Non-trivial sequences of length 3 and 4 are known to exist, so $M = 5$ is the first open case.
-/
@[category research open, AMS 11]
theorem buchi_problem_M5 : IsBuchi 5 := by
sorry
/-- The case $M = 0$ fails: the hypothesis is vacuous, so $a = 0$ cannot be concluded. -/
@[category test, AMS 11]
theorem buchi_false_M0 : ¬ IsBuchi 0 := by
simp only [IsBuchi, Finset.range_zero, not_forall, exists_prop]
exact ⟨0, 1, by norm_num⟩
/-- The case $M = 1$ fails: $0^2 + 4 = 4 = 2^2$ is a square but $a = 4 \neq 0$. -/
@[category test, AMS 11]
theorem buchi_false_M1 : ¬ IsBuchi 1 := by
simp only [IsBuchi, not_forall]
refine ⟨0, 4, ?_, by norm_num⟩
intro n hn
simp only [Finset.range_one, Finset.mem_singleton] at hn; subst hn
exact ⟨2, by norm_num⟩
/-- The case $M = 2$ fails: $(7+n)^2 - 48$ is a perfect square for $n = 0, 1$
($1^2$ and $4^2$), but $a = -48 \neq 0$. -/
@[category test, AMS 11]
theorem buchi_false_M2 : ¬ IsBuchi 2 := by
simp only [IsBuchi, not_forall]
refine ⟨7, -48, ?_, by norm_num⟩
intro n hn
simp [Finset.mem_range] at hn
interval_cases n
· exact ⟨1, by norm_num⟩
· exact ⟨4, by norm_num⟩
/-- The case $M = 3$ fails: $(24+n)^2 - 576$ is a perfect square for $n = 0, 1, 2$
($0^2$, $7^2$, and $10^2$), but $a = -576 \neq 0$. -/
@[category test, AMS 11]
theorem buchi_false_M3 : ¬ IsBuchi 3 := by
simp only [IsBuchi, not_forall]
refine ⟨24, -576, ?_, by norm_num⟩
intro n hn
simp [Finset.mem_range] at hn
interval_cases n
· exact ⟨0, by norm_num⟩
· exact ⟨7, by norm_num⟩
· exact ⟨10, by norm_num⟩
/-- The case $M = 4$ fails: $(246+n)^2 - 60480$ is a perfect square for $n = 0, 1, 2, 3$
($6^2$, $23^2$, $32^2$, and $39^2$), but $a = -60480 \neq 0$.
The sequence $(6, 23, 32, 39)$ is a nontrivial Büchi sequence of length 4 (Hensley 1983). -/
@[category test, AMS 11]
theorem buchi_false_M4 : ¬ IsBuchi 4 := by
simp only [IsBuchi, not_forall]
refine ⟨246, -60480, ?_, by norm_num⟩
intro n hn
simp [Finset.mem_range] at hn
interval_cases n
· exact ⟨6, by norm_num⟩
· exact ⟨23, by norm_num⟩
· exact ⟨32, by norm_num⟩
· exact ⟨39, by norm_num⟩
end Buchi
To prove it: keep every definition of Challenge.lean unchanged and prove Buchi.buchi_problem with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_buchi_problem : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch wikipedia-buchi nosorry submit wikipedia-buchi nosorry/wikipedia-buchi/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- buchi-problem-m5 — open
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.