Documentation

ErgodicTheory.LocalRuleColumns

Columns of a local rule on the line #

A local rule f : Q → Q → Q → Q acts on every configuration ℤ → Q of the line by step f x i = f (x (i - 1)) (x i) (x (i + 1)). The column at a cell i along the orbit of x is t ↦ (step f)^[t] x i. Nothing here asks for quiescence or finite support unless a statement says so; the carrier is a type Q and all configurations.

Main results #

def LocalRuleColumns.step {Q : Type u_1} (f : Q → Q → Q → Q) (x : ℤ → Q) :
ℤ → Q

A local rule on every configuration of the line: the new value at i is f applied to the values at i - 1, i and i + 1.

Equations
Instances For
    def LocalRuleColumns.column {Q : Type u_1} (f : Q → Q → Q → Q) (x : ℤ → Q) (i : ℤ) :
    ℕ → Q

    The column at cell i: the value read at i at stage t along the orbit of x.

    Equations
    Instances For
      def LocalRuleColumns.window {Q : Type u_1} (f : Q → Q → Q → Q) (x : ℤ → Q) (a : ℤ) (n a✝ : ℕ) :
      Fin n → Q

      The width-n window: cells a, a + 1, …, a + n - 1, read all at once along the orbit.

      Equations
      Instances For
        theorem LocalRuleColumns.eventuallyPeriodic_window_iff {Q : Type u_1} [Finite Q] (f : Q → Q → Q → Q) (x : ℤ → Q) (a : ℤ) (m : ℕ) :

        The window form: over a finite carrier, the whole width-(m + 1) window is eventually periodic iff its two boundary columns are. Forward, two projections. Backward, DrivenColumns.eventuallyPeriodic_of_driven on the window itself: the pair of boundary columns, shifted one step ahead, is the driving input, and the window's own recursion matches windowStep exactly.

        theorem LocalRuleColumns.eventuallyPeriodic_column_between {Q : Type u_1} [Finite Q] (f : Q → Q → Q → Q) (x : ℤ → Q) {a b i : ℤ} (ha : DrivenColumns.EventuallyPeriodic (column f x a)) (hb : DrivenColumns.EventuallyPeriodic (column f x b)) (hai : a ≤ i) (hib : i ≤ b) :

        The driven interior, between two settled columns: over a finite carrier, for any rule and any configuration, if the columns at a and b are each eventually periodic, so is the column at every i with a ≤ i ≤ b. i sits inside the width-(b - a + 1) window based at a, whose two boundary columns are exactly the hypotheses, and i's column is one coordinate projection of that window.

        theorem LocalRuleColumns.eventuallyPeriodic_column_between_nonvacuous :
        DrivenColumns.EventuallyPeriodic (column (fun (x b x_1 : Bool) => b) (fun (x : ℤ) => true) (-1)) ∧ DrivenColumns.EventuallyPeriodic (column (fun (x b x_1 : Bool) => b) (fun (x : ℤ) => true) 1) ∧ -1 ≤ 0 ∧ 0 ≤ 1

        The joint-satisfiability witness for eventuallyPeriodic_column_between's four hypotheses: the carrier Bool, the rule that keeps the middle value, the constant configuration, and the cells a = -1, i = 0, b = 1.

        Rule 90: the doubling identity #

        @[reducible, inline]
        abbrev LocalRuleColumns.rule90 :
        ZMod 2 → ZMod 2 → ZMod 2 → ZMod 2

        Rule 90 over ZMod 2: the new value is the sum of the two outer neighbours.

        Equations
        Instances For
          theorem LocalRuleColumns.iterate_two_pow_step90 (j : ℕ) (x : ℤ → ZMod 2) (i : ℤ) :
          (step rule90)^[2 ^ j] x i = x (i - 2 ^ j) + x (i + 2 ^ j)

          2 ^ j steps of rule 90, in one identity: pure ZMod 2 cancellation of the doubled middle term, no binomial coefficient and no Lucas' theorem, and no finiteness of support.

          theorem LocalRuleColumns.iterate_two_pow_step_linear (α β γ : ZMod 2) (j : ℕ) (x : ℤ → ZMod 2) (i : ℤ) :
          (step fun (a b c : ZMod 2) => α * a + β * b + γ * c)^[2 ^ j] x i = α * x (i - 2 ^ j) + β * x i + γ * x (i + 2 ^ j)

          2 ^ j steps of a linear rule, in one identity: the Frobenius identity in characteristic two (Martin, Odlyzko & Wolfram 1984, Eq. (A.4); at rule 90 Wolfram 1983), with no finiteness of support — the combination of the three cells returns as the same combination of the cells 2 ^ j away, the cross terms cancelling. Rule 90 is the case (1, 0, 1) (iterate_two_pow_step90). This is the identity under which rule 60 reproduces every finite pattern (Amoroso & Cooper 1971, Theorem 1).

          Quiescent rules: the light cone #

          theorem LocalRuleColumns.iterate_step_eq_zero_of_gt {Q : Type u_1} [Zero Q] (f : Q → Q → Q → Q) (hq : f 0 0 0 = 0) (x : ℤ → Q) {M : ℤ} (hM : ∀ (k : ℤ), M < k → x k = 0) (t : ℕ) (j : ℤ) :
          M + ↑t < j → (step f)^[t] x j = 0

          The support bound propagates forward, above: under a quiescent rule, if x vanishes past M, every iterate at stage t vanishes past M + t.

          theorem LocalRuleColumns.iterate_step_eq_zero_of_lt {Q : Type u_1} [Zero Q] (f : Q → Q → Q → Q) (hq : f 0 0 0 = 0) (x : ℤ → Q) {M : ℤ} (hM : ∀ k < M, x k = 0) (t : ℕ) (j : ℤ) :
          j < M - ↑t → (step f)^[t] x j = 0

          The support bound propagates forward, below, the mirror.

          Rule 90: the column at cell 1 from the single seed #

          Live at 2 ^ (j + 1) - 1: from the single seed, the column of rule 90 at cell 1 reads 1 at every stage 2 ^ j' - 1 with j' ≥ 1. Route: 2 ^ (j + 1) - 1 = 2 ^ j + (2 ^ j - 1), and the doubling identity at r = 2 ^ j - 1 gives the live edge cell plus a cell beyond the r-step support.

          theorem LocalRuleColumns.column_step90_single_one_dead_between (j r : ℕ) (hr : r < 2 ^ j - 1) :
          (step rule90)^[2 ^ j + r] (Pi.single 0 1) 1 = 0

          Dead strictly between two live stages: at 2 ^ j + r with r < 2 ^ j - 1, the column of rule 90 at cell 1 from the single seed reads 0. Both summands of the doubling identity land beyond the r-step support, above (1 + 2 ^ j) and below (1 - 2 ^ j, exactly where r < 2 ^ j - 1 bites).

          The column of rule 90 at cell 1 is not eventually periodic, from the single seed Pi.single 0 1. Given a period P from N, pick j past N + P + 1; stage 2 ^ j - 1 is live and stage 2 ^ j - 1 + P is dead, contradicting the period.