Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:The Rule 30 Prize Problems

Source:Other sources
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Rule 30 Prize, Problem 1 (non-periodicity). The center column of Rule 30 is not eventually periodic: there is no positive period pp and threshold NN past which the column repeats with period pp.

Subjects:Dynamical Systems (math.DS); Combinatorics (math.CO)
MSC classes:37, 68
Tags:question
Cite as:NS.07190 [math.DS] · NS.07190v1 for this version
Declaration:Rule30.centerColumn_not_eventually_periodic
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:65c660e933cf787aa3a972249209d1be32a182a57d3d399a0df801794fedd205
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Other/Rule30.lean

Formal statement

theorem centerColumn_not_eventually_periodic :
    ¬ ∃ p : ℕ, 0 < p ∧ ∃ N : ℕ, ∀ t : ℕ, N ≤ t → centerColumn (t + p) = centerColumn t
Show the full Challenge.lean (95 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# The Rule 30 Prize Problems

**Rule 30** is the elementary cellular automaton with local update $c' = l \oplus (c \lor r)$,
the Boolean rule numbered $30$ by Wolfram. Started from a single black cell on a bi-infinite row,
its **center column** `t ↦ (state t) 0` looks random — it was long *Mathematica*'s default
pseudorandom generator — yet nothing about that randomness is proven. In 2019 Wolfram offered
the **Rule 30 Prizes** for three questions about it; we formalize the first two.

* **Problem 1.** Is the center column non-periodic (never eventually periodic)?
* **Problem 2.** Does each color occur on average equally often, i.e. does the running average
  of the values converge to $1/2$?

Problem 3 — whether computing the $n$-th cell requires at least $O(n)$ work — is omitted. It is
model-relative and has no canonical model-independent phrasing. All three are open.

*References:*
- [Announcing the Rule 30 Prizes](https://writings.stephenwolfram.com/2019/10/announcing-the-rule-30-prizes/),
  Stephen Wolfram, 2019.
- [Rule 30 Prizes](https://rule30prize.org/).
- [Wikipedia: Rule 30](https://en.wikipedia.org/wiki/Rule_30).
-/

@[expose] public section

namespace Rule30

/-- The Rule 30 local update on a bi-infinite row `row : ℤ → Bool`.
The new value at position $i$ is `row (i-1) ⊕ (row i ∨ row (i+1))`, i.e. Wolfram's rule $30$. -/
def step (row : ℤ → Bool) : ℤ → Bool :=
  fun i => xor (row (i - 1)) (row i || row (i + 1))

/-- The Rule 30 evolution from the single-black-cell initial condition: `state 0` is black
exactly at position $0$, and each subsequent row is obtained by applying `step`. -/
def state : ℕ → ℤ → Bool
  | 0     => fun i => decide (i = 0)
  | t + 1 => step (state t)

@[simp, category API, AMS 37 68]
theorem state_zero (i : ℤ) : state 0 i = decide (i = 0) := rfl

@[simp, category API, AMS 37 68]
theorem state_succ (t : ℕ) : state (t + 1) = step (state t) := rfl

/-- The **center column** of Rule 30: the value of the single central cell (position $0$)
at time $t$. -/
def centerColumn (t : ℕ) : Bool := state t 0

/-- Sanity check: the first center-column values reproduce the known Rule 30 center column
([OEIS A051023](https://oeis.org/A051023)). Unlike `state_zero`/`state_succ`, this exercises the
composed evolution, guarding against a wrong seed, a swapped `xor`/`||`, or an off-by-one
neighbour index. -/
@[category test, AMS 37 68]
theorem centerColumn_prefix :
    (List.range 8).map centerColumn = [true, true, false, true, true, true, false, false] := by
  decide

/-- **Rule 30 Prize, Problem 1 (non-periodicity).** The center column of Rule 30 is not
eventually periodic: there is no positive period $p$ and threshold $N$ past which the column
repeats with period $p$. -/
@[category research open, question, AMS 37 68]
theorem centerColumn_not_eventually_periodic :
    ¬ ∃ p : ℕ, 0 < p ∧ ∃ N : ℕ, ∀ t : ℕ, N ≤ t → centerColumn (t + p) = centerColumn t := by
  sorry

/-- **Rule 30 Prize, Problem 2 (equal frequency).** Each color occurs on average equally often
in the center column: the set of times at which it is black has natural density $1/2$. This is
Wolfram's phrasing that the discrete limit of $\mathrm{Total}[c[t]]/t$ as $t \to \infty$ is
$1/2$. -/
@[category research open, question, AMS 37 68]
theorem centerColumn_frequency_half :
    {t : ℕ | centerColumn t}.HasDensity (1 / 2) := by
  sorry

end Rule30

To prove it: keep every definition of Challenge.lean unchanged and prove Rule30.centerColumn_not_eventually_periodic with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_centerColumn_not_eventually_periodic : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch other-rule30
nosorry submit other-rule30 nosorry/other-rule30/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.