Title:Recurrence for Rule 167 cellular automaton sequence
Statement:Conjecture: for . - Andres Cicuttin, Mar 29 2016
A formal proof has been found with the methods described in arxiv/2605.22763.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.06053 [math.NT] · NS.06053v1 for this version |
| Declaration: | OeisA267581.a_recurrence |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 0cc503dea2b6d4c71c656afd97393ec818178420d4227d507699e88abaef927d |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/267581.lean |
Formal statement
theorem a_recurrence (n : ℕ) (hn : 2 ≤ n) : a n = 2 * a (n - 1) + 1 - oeisFloorTerm nShow the full Challenge.lean (109 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Recurrence for Rule 167 cellular automaton sequence
Decimal representation of the middle column of the "Rule 167" elementary cellular automaton
starting with a single ON (black) cell.
*References:*
- [A267581](https://oeis.org/A267581)
- [arxiv/2605.22763](https://arxiv.org/abs/2605.22763) *Advancing Mathematics Research with AI-Driven Formal Proof Search* by George Tsoukalas et al.
-/
@[expose] public section
namespace OeisA267581
open Nat Int
/-- The rule function for Rule 167. Inputs must be 0 or 1. -/
def caRule167 (c_L c_C c_R : ℕ) : ℕ :=
let R : ℕ := 167
let index : ℕ := 4 * c_L + 2 * c_C + c_R
-- Rule 167 is determined by the index-th bit of R.
(R / (2 ^ index)) % 2
/--
The state of the Rule 167 elementary cellular automaton at time $t$ and position $x$.
The initial condition is a single ON cell at $x=0$.
$C(t, x)$ is structurally recursive on $t$.
-/
def caState (t : ℕ) (x : ℤ) : ℕ :=
match t with
| 0 => if x = 0 then 1 else 0
| t' + 1 =>
let C_t' (y : ℤ) := caState t' y
caRule167 (C_t' (x - 1)) (C_t' x) (C_t' (x + 1))
/-- The sequence of bits forming the middle column of the CA pattern, $C_{t, 0}$. -/
def middleColumnBit (t : ℕ) : ℕ := caState t 0
/--
Decimal representation of the middle column of the "Rule 167" elementary cellular automaton
starting with a single ON (black) cell.
The term $a(n)$ is the decimal value of the binary number $C_{0, 0} C_{1, 0} \dots C_{n, 0}$,
where $C_{i, 0}$ is the state of the center cell at time $i$.
$$a(n) = \sum_{k=0}^n C_{k, 0} \cdot 2^{n-k}$$
-/
def a (n : ℕ) : ℕ :=
Finset.sum (Finset.range (n + 1)) fun k => (middleColumnBit k) * (2^ (n - k))
/-- The floor term in the conjectured recurrence relation for A267581.
This term, $\lfloor (1/2)^{(2^{n+1} \bmod n)} \rfloor$, simplifies to 1 if $(2^{n+1} \bmod n) = 0$
(i.e., $n \mid 2^{n+1}$), and 0 otherwise.
Since the recurrence is only stated for $n \ge 2$, the $n=0$ case is irrelevant
to the conjecture. -/
def oeisFloorTerm (n : ℕ) : ℕ :=
if n = 0 then 0
else if (2 ^ (n + 1)) % n = 0 then 1 else 0
@[category test, AMS 11]
lemma a_0 : a 0 = 1 := by rfl
@[category test, AMS 11]
lemma a_1 : a 1 = 3 := by rfl
@[category test, AMS 11]
lemma a_2 : a 2 = 6 := by rfl
@[category test, AMS 11]
lemma a_3 : a 3 = 13 := by rfl
@[category test, AMS 11]
lemma a_4 : a 4 = 26 := by rfl
set_option linter.style.formal_proof_palomar false in
/--
Conjecture: $a(n) = 2 a(n-1) + 1 - \lfloor (1/2)^{2^{n+1} \bmod n} \rfloor$ for $n \ge 2$. - _Andres Cicuttin_, Mar 29 2016
A formal proof has been found with the methods described in
[arxiv/2605.22763](https://arxiv.org/abs/2605.22763).
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at
"https://github.com/mo271/formal-conjectures/blob/a32396489dcb8f86c3549b93aa358ac6a10a3a1f/FormalConjectures/OEIS/267581.wip.lean#L190"]
theorem a_recurrence (n : ℕ) (hn : 2 ≤ n) : a n = 2 * a (n - 1) + 1 - oeisFloorTerm n := by
sorry
end OeisA267581
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA267581.a_recurrence with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_recurrence : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-267581 nosorry submit oeis-267581 nosorry/oeis-267581/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.