{
  "id": "7190",
  "ident": "NS.07190",
  "slug": "other-rule30",
  "title": "The Rule 30 Prize Problems",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Rule 30 Prize, Problem 1 (non-periodicity).** The center column of Rule 30 is not\neventually periodic: there is no positive period $p$ and threshold $N$ past which the column\nrepeats with period $p$.",
  "subjects": [
    "math.DS",
    "math.CO",
    "msc:37",
    "msc:68"
  ],
  "tags": [
    "question"
  ],
  "collection": "other",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Rule30.centerColumn_not_eventually_periodic",
  "statement_lean": "theorem centerColumn_not_eventually_periodic :\n    ¬ ∃ p : ℕ, 0 < p ∧ ∃ N : ℕ, ∀ t : ℕ, N ≤ t → centerColumn (t + p) = centerColumn t",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# The Rule 30 Prize Problems\n\n**Rule 30** is the elementary cellular automaton with local update $c' = l \\oplus (c \\lor r)$,\nthe Boolean rule numbered $30$ by Wolfram. Started from a single black cell on a bi-infinite row,\nits **center column** `t ↦ (state t) 0` looks random — it was long *Mathematica*'s default\npseudorandom generator — yet nothing about that randomness is proven. In 2019 Wolfram offered\nthe **Rule 30 Prizes** for three questions about it; we formalize the first two.\n\n* **Problem 1.** Is the center column non-periodic (never eventually periodic)?\n* **Problem 2.** Does each color occur on average equally often, i.e. does the running average\n  of the values converge to $1/2$?\n\nProblem 3 — whether computing the $n$-th cell requires at least $O(n)$ work — is omitted. It is\nmodel-relative and has no canonical model-independent phrasing. All three are open.\n\n*References:*\n- [Announcing the Rule 30 Prizes](https://writings.stephenwolfram.com/2019/10/announcing-the-rule-30-prizes/),\n  Stephen Wolfram, 2019.\n- [Rule 30 Prizes](https://rule30prize.org/).\n- [Wikipedia: Rule 30](https://en.wikipedia.org/wiki/Rule_30).\n-/\n\n@[expose] public section\n\nnamespace Rule30\n\n/-- The Rule 30 local update on a bi-infinite row `row : ℤ → Bool`.\nThe new value at position $i$ is `row (i-1) ⊕ (row i ∨ row (i+1))`, i.e. Wolfram's rule $30$. -/\ndef step (row : ℤ → Bool) : ℤ → Bool :=\n  fun i => xor (row (i - 1)) (row i || row (i + 1))\n\n/-- The Rule 30 evolution from the single-black-cell initial condition: `state 0` is black\nexactly at position $0$, and each subsequent row is obtained by applying `step`. -/\ndef state : ℕ → ℤ → Bool\n  | 0     => fun i => decide (i = 0)\n  | t + 1 => step (state t)\n\n@[simp, category API, AMS 37 68]\ntheorem state_zero (i : ℤ) : state 0 i = decide (i = 0) := rfl\n\n@[simp, category API, AMS 37 68]\ntheorem state_succ (t : ℕ) : state (t + 1) = step (state t) := rfl\n\n/-- The **center column** of Rule 30: the value of the single central cell (position $0$)\nat time $t$. -/\ndef centerColumn (t : ℕ) : Bool := state t 0\n\n/-- Sanity check: the first center-column values reproduce the known Rule 30 center column\n([OEIS A051023](https://oeis.org/A051023)). Unlike `state_zero`/`state_succ`, this exercises the\ncomposed evolution, guarding against a wrong seed, a swapped `xor`/`||`, or an off-by-one\nneighbour index. -/\n@[category test, AMS 37 68]\ntheorem centerColumn_prefix :\n    (List.range 8).map centerColumn = [true, true, false, true, true, true, false, false] := by\n  decide\n\n/-- **Rule 30 Prize, Problem 1 (non-periodicity).** The center column of Rule 30 is not\neventually periodic: there is no positive period $p$ and threshold $N$ past which the column\nrepeats with period $p$. -/\n@[category research open, question, AMS 37 68]\ntheorem centerColumn_not_eventually_periodic :\n    ¬ ∃ p : ℕ, 0 < p ∧ ∃ N : ℕ, ∀ t : ℕ, N ≤ t → centerColumn (t + p) = centerColumn t := by\n  sorry\n\n/-- **Rule 30 Prize, Problem 2 (equal frequency).** Each color occurs on average equally often\nin the center column: the set of times at which it is black has natural density $1/2$. This is\nWolfram's phrasing that the discrete limit of $\\mathrm{Total}[c[t]]/t$ as $t \\to \\infty$ is\n$1/2$. -/\n@[category research open, question, AMS 37 68]\ntheorem centerColumn_frequency_half :\n    {t : ℕ | centerColumn t}.HasDensity (1 / 2) := by\n  sorry\n\nend Rule30\n",
  "statement_hash": "65c660e933cf787aa3a972249209d1be32a182a57d3d399a0df801794fedd205",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}