Documentation

ECA.PermutiveWidth

The extreme-tap rules: at least half the cap on the forward images, and the exact width #

([RuleSpace] §2 Proposition 2.9, Proposition 2.10 and Proposition 2.11)

The two extreme-tap linear rules on finitely-supported ℤ →₀ ZMod 2 configurations — elementary rules 90 and 150 at radius one, (U s) i = s (i - 1) ± s i ± s (i + 1) — are additive and injective, spread their support by exactly one cell per step at each end, and never stay inside a fixed region past finitely many steps. On the forward images (Nonautonomous.forwardImages) of the full state set of an n-cell start region, the left-edge seeds (those with a 1 in cell 0) form an antichain of size 2 ^ (n - 1) under Reaches, giving a width of at least half Nonautonomous.width_forwardImages_le's cap.

The exact width is a root count: rootSet is the region-supported states with no U-preimage in the region's open interior, and Nonautonomous.width_eq_encard_of_root_set (the generic root-set width lemma) applies since every region-supported state is reached from a root (rootSet_cover) and the roots are pairwise Reaches-incomparable (rootSet_antichain) — neither argument consumes a notion of "component". At rule90/rule150, the root set's own cardinality closes in addition form (rootSet_encard_add / rootSet_encard_add_rule150): the region's 2 ^ n states split exactly into the roots and the images of the interior's 2 ^ (n - 2) - 1 nonzero states. rootSet_cover and rootSet_antichain are generic in the update, consuming exactly the hypotheses width_derived_eq_encard_rootSet and rootSet_encard_add_of_hyps below package.

The endpoint-move generalization replaces the exact spread's shared constant 1 at each end by two independent integers a/b: rule90/rule150 and the four non-additive rules below all still instantiate at (a, b) = (1, 1), while rule170/rule240 instantiate at (1, -1) and (-1, 1). The root COUNT (rootSet_encard_add_of_hyps) holds at every (a, b), (0, 0) included; the exact WIDTH (width_derived_eq_encard_rootSet, hence rootSet_cover) needs (a, b) ≠ (0, 0) — guard_id_rootSet_load_bearing is the witness that separates the two claims, at the identity update.

A local rule f : ZMod 2 → ZMod 2 → ZMod 2 → ZMod 2 with f 0 0 0 = 0 (quiescence) becomes a radius-one rule via LocalRule.finRule; ONE-SIDED PERMUTIVITY of f, in its solved (additive) form, is what a downward or upward induction from beyond the support uses to recover a state from its image — on the finitely-supported configurations of the line, this is a CLASSICAL route to injectivity, not a new argument. Four non-additive elementary rules (rule30, rule210, rule86, rule154) meet the class's hypotheses this way and so share rule90/rule150's exact width, and a guard (rule170) shows quiescence and permutivity alone do not suffice to pin the class-level spread lemmas — rule170's own exact spread is (1, -1), not (1, 1), and its width and count are now proved at that pair rather than left open.

Main results #

Scope #

width_rule90_derived_eq / width_rule150_derived_eq give the width exactly, as a root count, at both rules, and rootSet_encard_add / rootSet_encard_add_rule150 close that count to a numeral at each. rootSet's defining property alone (s ≠ 0 in interiorStates, keeping the zero state its own root) is what every argument above relies on; no other characterisation of the root set — parity-based or otherwise — is used anywhere in this file.

The endpoint-move generalization's two spread constants a/b enter no definition but interiorStates/rootSet (through U, not directly) and no argument but rootSet_cover (which needs 0 < a⁺ + b⁺) and rootSet_antichain (which needs neither hypothesis nor sign case beyond what its own two branches supply); rootSet_encard_add_of_hyps needs no sign hypothesis at all. No claim in this file states or uses which pairs (a, b) are realized by an elementary rule beyond the six checked ((1, 1) at four, (1, -1), (-1, 1)); that classification question is open here.

The four non-additive rules and the guard are instances of a class this file does not name or classify: LocalRule.finRule's one-sided-permutivity facts are stated generically in g/h, and which elementary rules (beyond the six checked here) meet them is not decided in this file. No declaration here claims injectivity, or any other property, off the finitely-supported carrier — the same rules are known to fail injectivity on other carriers, and this file makes no claim there either way.

Shared shift arithmetic #

Rule 90 #

Elementary rule 90, radius one: (rule90 s) i = s (i - 1) + s (i + 1), the XOR of the two neighbours.

Equations
Instances For
    theorem ECA.rule90_apply (s : FiniteConfiguration) (i : ℤ) :
    (rule90 s) i = s (i - 1) + s (i + 1)
    theorem ECA.rule90_add (s s' : FiniteConfiguration) :
    rule90 (s + s') = rule90 s + rule90 s'

    Additive: Finsupp.mapDomain distributes over +, so rule90 does too.

    Trivial kernel: at a nonzero s, evaluating rule90 s one cell below the leftmost support index returns exactly the leftmost value — the cell two below vanishes because it undershoots the support, so nothing else can cancel it.

    Injective: additivity plus trivial kernel.

    At rule 90 two states merge only when equal: rule90 is injective, so Nonautonomous.merges_iff_eq_of_injective applies, and the merge quotient of rule 90 is the rule itself read by a bijection (Nonautonomous.mergeMk_bijective_of_injective).

    The exact spread, leftmost: the leftmost support cell moves left by exactly one.

    The exact spread, rightmost: the rightmost support cell moves right by exactly one.

    theorem ECA.rule90_region_exit {s : FiniteConfiguration} (hs : s ≠ 0) (R : Finset ℤ) :
    ∃ (t : ℕ), ¬(rule90^[t] s).support ⊆ R

    Region exit ([RuleSpace] §2 Proposition 2.11(i)): a nonzero state's orbit under rule90 eventually leaves any fixed finite region — the leftmost support index walks left by exactly one cell per step, so past finitely many steps it falls below every element R names.

    Rule 150 #

    Elementary rule 150, radius one: (rule150 s) i = s (i - 1) + s i + s (i + 1).

    Equations
    Instances For
      theorem ECA.rule150_apply (s : FiniteConfiguration) (i : ℤ) :
      (rule150 s) i = s (i - 1) + s i + s (i + 1)

      Trivial kernel, as rule90_eq_zero_iff: the leftmost support cell forces a nonzero value one cell further left, the two cells that could cancel it — m - 1 and m - 2 — both undershooting the support.

      theorem ECA.rule150_region_exit {s : FiniteConfiguration} (hs : s ≠ 0) (R : Finset ℤ) :
      ∃ (t : ℕ), ¬(rule150^[t] s).support ⊆ R

      The n-cell region, its left-edge antichain, and the two capstones #

      The states supported on an n-cell region {0, …, n - 1}.

      Equations
      Instances For

        The lower-bound capstone for rule90 ([RuleSpace] §2 Proposition 2.11(i)): on the forward images of the full state set of an n-cell start region, the width is at least 2 ^ (n - 1) — at least half Nonautonomous.width_forwardImages_le's cap 2 ^ n.

        Route: the left-edge seeds (leftEdgeMember n's image) form an antichain of Reaches — a witness (mergeLaw rule90)^[j] (mergeMk rule90 s) = mergeMk rule90 s' converts, through Nonautonomous.mergeLaw_iterate_mergeMk and Nonautonomous.mergeMk_injective_of_injective, to rule90^[j] s = s'; at j = 0 this forces s = s', excluded by the antichain's own distinctness hypothesis, and at j ≥ 1 the iterated spread puts a negative index (-j) in the left support while s' is region-supported, so s' ≠ rule90^[j] s. The antichain's cardinality — an injection of the 2 ^ (n - 1) free left-edge configurations, since mergeMk rule90 is globally injective — transports to the width by le_sSup.

        The lower-bound capstone for rule150 — identical route to width_rule90_derived_ge.

        The exact width at both rules #

        The left-edge bound above is half the cap; this section computes the width exactly, as a root count, generic in U and, since the endpoint-move generalization, in the update's own two spread constants a b : ℤ ([RuleSpace] §2 Proposition 2.10): the leftmost support cell moves by a, the rightmost by b, rather than by exactly one cell each. Writing x⁺ for max x 0, rule90/rule150 and the four non-additive rules below all instantiate at (a, b) = (1, 1); rule170/rule240 later in this file instantiate at (1, -1) and (-1, 1). The root COUNT holds at every (a, b), (0, 0) included; the exact WIDTH (width_derived_eq_encard_rootSet, hence rootSet_cover) needs (a, b) ≠ (0, 0) — the identity update at the end of this section is the witness that separates the two claims.

        The interior of the region: nonzero states supported inside the region whose U-image is also region-supported. Under hUmin'/hUmax''s exact spread and the trivial kernel this is exactly the window [a⁺, n - 1 - b⁺] (interiorStates_eq_window) — at (a, b) = (1, 1) the old [1, n - 2] window this definition replaces. The two spread constants a/b enter no other definition in this file: every other declaration below is stated purely in terms of U.

        Equations
        Instances For

          The root set: the region-supported states with no U-preimage inside the interior. The s ≠ 0 qualifier in interiorStates is load-bearing: it keeps the zero state a root — U 0 = 0 but 0 ∉ interiorStates U n — so rootSet carries the zero class as its own separate component, exactly the + 1 in the closed count rootSet_encard_add.

          Equations
          Instances For

            Generic infrastructure for the endpoint-move generalization #

            Finset.min'/Finset.max' carry a Finset.Nonempty witness as an explicit argument, so two calls at the SAME finset but different witnesses are already defeq by Prop's proof irrelevance; min'_congr/max'_congr below are for the one case that needs more — two calls at PROPOSITIONALLY (not syntactically) equal finsets, the shape Function.iterate_succ_apply' produces and which a bare rw cannot be carried under (the trap rule90_leftWitness_step's docstring records).

            theorem ECA.hUspread_sign_nonneg {U : FiniteConfiguration → FiniteConfiguration} {a b : ℤ} (hUeqZero : ∀ {s : FiniteConfiguration}, U s = 0 ↔ s = 0) (hUmin' : ∀ {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (U s).support.Nonempty), (U s).support.min' hne' = s.support.min' hne - a) (hUmax' : ∀ {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (U s).support.Nonempty), (U s).support.max' hne' = s.support.max' hne + b) :
            0 ≤ a + b

            The sign law: the two spread constants always sum to something non-negative. Route: at ANY nonzero s, the support diameter (U^[k] s).support.max' - (U^[k] s).support.min' is non-negative for every k (Finset.min'_le_max') and, by the two iterated spreads above, equals (s.support.max' - s.support.min') + k * (a + b) — so a + b < 0 is refuted by any k beyond the starting diameter. Never applied inside this file (rootSet_cover/rootSet_antichain case on the SIGN of a/b directly, which is what their own inductions need): a standalone fact about what the two exact-spread hypotheses already force, corollary max a 0 + max b 0 > 0 ↔ (a, b) ≠ (0, 0) the form the identity guard below witnesses one direction of.

            theorem ECA.interiorStates_eq_window {U : FiniteConfiguration → FiniteConfiguration} {a b : ℤ} (hUeqZero : ∀ {s : FiniteConfiguration}, U s = 0 ↔ s = 0) (hUmin' : ∀ {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (U s).support.Nonempty), (U s).support.min' hne' = s.support.min' hne - a) (hUmax' : ∀ {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (U s).support.Nonempty), (U s).support.max' hne' = s.support.max' hne + b) (n : ℕ) :
            interiorStates U n = {s : FiniteConfiguration | s ≠ 0 ∧ ∀ i ∈ s.support, max a 0 ≤ i ∧ i ≤ ↑n - 1 - max b 0}

            The window characterization: under the trivial kernel and the two exact spread identities, interiorStates U n is exactly the nonzero states supported in [a⁺, n - 1 - b⁺] — at (a, b) = (1, 1) the old [1, n - 2] window. Route: s's own region membership gives 0 ≤ s.min'/s.max' < n directly; U s's region membership, combined with the spread identities, gives s.min' ≥ a / s.max' ≤ n - 1 - b; the two combine to s.min' ≥ a⁺ / s.max' ≤ n - 1 - b⁺ since a⁺ ≥ a/a⁺ ≥ 0 (and the b mirror) always — no case split on the sign of a/b is needed here, unlike in rootSet_cover/rootSet_antichain below.

            theorem ECA.width_derived_eq_encard_rootSet {U : FiniteConfiguration → FiniteConfiguration} {a b : ℤ} (hUzero : U 0 = 0) (hUeqZero : ∀ {s : FiniteConfiguration}, U s = 0 ↔ s = 0) (hUinj : Function.Injective U) (hUmin' : ∀ {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (U s).support.Nonempty), (U s).support.min' hne' = s.support.min' hne - a) (hUmax' : ∀ {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (U s).support.Nonempty), (U s).support.max' hne' = s.support.max' hne + b) (hab : 0 < max a 0 + max b 0) (n : ℕ) :

            The exact width, generic in the update AND in the two spread constants: the same route as width_rule90_derived_eq and width_rule150_derived_eq below, with the rule replaced by a free U and the rule-specific facts by exactly the hypotheses rootSet_cover/rootSet_antichain themselves consume. The added hab : 0 < max a 0 + max b 0 is rootSet_cover's own hypothesis, not rootSet_antichain's — the identity guard below ((a, b) = (0, 0)) is exactly the boundary this draws. Route: the two supply Nonautonomous.width_eq_encard_of_root_set's two hypotheses at time 0, where the forward images' own fiber is regionStates n (Function.iterate_zero, Set.image_id); the image collapses to the root set's own cardinality by U's injectivity.

            The exact count, at rule90 #

            A window-indexed family, generic in its integer offset a and its width w, embeds Fin w → ZMod 2 bijectively onto the states supported on [a, a + w) — the same construction as leftEdgeMember above, minus its pinned cell, instantiated at [0, n) for regionStates and at [1, n - 2] for interiorStates.

            theorem ECA.rootSet_encard_add_of_hyps {U : FiniteConfiguration → FiniteConfiguration} {a b : ℤ} (hUeqZero : ∀ {s : FiniteConfiguration}, U s = 0 ↔ s = 0) (hUinj : Function.Injective U) (hUmin' : ∀ {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (U s).support.Nonempty), (U s).support.min' hne' = s.support.min' hne - a) (hUmax' : ∀ {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (U s).support.Nonempty), (U s).support.max' hne' = s.support.max' hne + b) {n m : ℕ} (hm : ↑m = max a 0 + max b 0) (hn : m ≤ n) :
            (rootSet U n).encard + 2 ^ (n - m) = 2 ^ n + 1

            The count, generic in the update and the two spread constants: the region's 2 ^ n states split exactly into the roots and the images of the interior's 2 ^ (n - m) - 1 nonzero states, U injective on the split, in addition form (ℕ∞ subtraction is truncated) — at (a, b) = (1, 1), m = 2, the paper's closed form 2 ^ n - 2 ^ (n - 2) + 1 this equation restates. NO sign hypothesis on a/b: unlike rootSet_cover/width_derived_eq_encard_rootSet, this holds at every (a, b), (0, 0) included (guard_id_rootSet_load_bearing below checks it there directly). The route no longer needs the min'/max' spread identities for himg — the intrinsic interiorStates already carries U s ∈ regionStates n as its own third conjunct.

            theorem ECA.rootSet_encard_add {n : ℕ} (hn : 2 ≤ n) :
            (rootSet rule90 n).encard + 2 ^ (n - 2) = 2 ^ n + 1

            The count for rule90 — rootSet_encard_add_of_hyps at rule90's own facts, (a, b) = (1, 1), m = 2.

            theorem ECA.rootSet_encard_add_rule150 {n : ℕ} (hn : 2 ≤ n) :
            (rootSet rule150 n).encard + 2 ^ (n - 2) = 2 ^ n + 1

            The count for rule150: the rule-150 twin rootSet_encard_add left paper- level — rootSet_encard_add_of_hyps at rule150's own facts, free once the generic form exists.

            The identity guard, and it is load-bearing rather than decorative: id meets all four non-spread hypotheses at (a, b) = (0, 0) — id 0 = 0, the trivial kernel, injectivity, and both spread identities at the constant 0 — yet the represented classes are the WHOLE region rather than a size-one root count: id never merges anything (Reaches id q q' ↔ q = q', since mergeLaw id fixes every merge class), so the represented classes are their own antichain (Nonautonomous.width_eq_encard_of_isAntichain) of size 2 ^ n, while rootSet id n = {0} has a single element — matching rootSet_encard_add_of_hyps at m = 0 (1 + 2 ^ n = 2 ^ n + 1) but NOT width_derived_eq_encard_rootSet, whose hab hypothesis fails exactly here (hUspread_sign_nonneg's boundary). The two sides of that would-be equation disagree outright, 2 ^ n against 1, rather than merely lacking a proof.

            The permutive class at radius one #

            rule90 and rule150 are built as Finsupp.mapDomain shift sums, available only because both are additive; a non-additive elementary rule (rule 30 among them) needs the general construction. A local rule f : ZMod 2 → ZMod 2 → ZMod 2 → ZMod 2 with f 0 0 0 = 0 (quiescence, keeping the image finitely supported) becomes a radius-one rule via Finsupp.onFinset; ONE-SIDED PERMUTIVITY, in its solved (additive) form — f a b c = a + g b c on the left, f a b c = c + h a b on the right, for some g/h — is exactly what a downward (resp. upward) induction from beyond the support consumes to recover s from its image.

            That a one-sided permutive quiescent local rule is injective on the finitely-supported configurations of the line is CLASSICAL, not a new result of this module: the induction below is proof economy, one route to that fact, over the carrier this development already works in.

            noncomputable def ECA.LocalRule.finRule (f : LocalRule) (hq : f 0 0 0 = 0) (s : FiniteConfiguration) :

            A local rule as a radius-one rule, given quiescence — the global map restricted to the finitely supported configurations, beside LocalRule.lineRule, the global map on all configurations of the line: Finsupp.onFinset with the support bound s.support widened by one at each end — if none of the three cells feeding i are in s.support, quiescence forces the value at i to vanish too.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem ECA.LocalRule.finRule_apply (f : LocalRule) (hq : f 0 0 0 = 0) (s : FiniteConfiguration) (i : ℤ) :
              (f.finRule hq s) i = f (s (i - 1)) (s i) (s (i + 1))
              theorem ECA.LocalRule.finRule_injective_of_leftPermutive {f : LocalRule} (hq : f 0 0 0 = 0) {g : ZMod 2 → ZMod 2 → ZMod 2} (hg : ∀ (a b c : ZMod 2), f a b c = a + g b c) :

              Injective, left-permutive, on the finitely-supported configurations of the line: a downward induction from beyond both supports, tracking two consecutive cells at once — knowing s i and s (i + 1) and the shared value (U s) i, the solved form s (i - 1) = (U s) i + g (s i) (s (i + 1)) determines s (i - 1), so U s = U s' forces the two states equal cell by cell, all the way down. No particular value of g is used — only that it is a well-defined function — so this holds at every left-permutive quiescent rule, not merely the four instantiated below.

              theorem ECA.LocalRule.finRule_injective_of_rightPermutive {f : LocalRule} (hq : f 0 0 0 = 0) {h : ZMod 2 → ZMod 2 → ZMod 2} (hh : ∀ (a b c : ZMod 2), f a b c = c + h a b) :

              Injective, right-permutive — the mirror of LocalRule.finRule_injective_of_leftPermutive: an upward induction from beyond both supports, using s (i + 1) = (U s) i + h (s (i - 1)) (s i).

              theorem ECA.LocalRule.leftPermutive_support_max'_spread {f : LocalRule} (hq : f 0 0 0 = 0) {g : ZMod 2 → ZMod 2 → ZMod 2} (hg : ∀ (a b c : ZMod 2), f a b c = a + g b c) {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (f.finRule hq s).support.Nonempty) :
              (f.finRule hq s).support.max' hne' = s.support.max' hne + 1

              Left-permutive, exact right spread — free from quiescence alone: f 1 0 0 = 1 + g 0 0 = 1 is the same condition as hq's own g 0 0 = 0, so no further hypothesis on g is needed.

              theorem ECA.LocalRule.leftPermutive_support_min'_spread {f : LocalRule} (hq : f 0 0 0 = 0) {g : ZMod 2 → ZMod 2 → ZMod 2} (hg : ∀ (a b c : ZMod 2), f a b c = a + g b c) (hg01 : g 0 1 = 1) {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (f.finRule hq s).support.Nonempty) :
              (f.finRule hq s).support.min' hne' = s.support.min' hne - 1

              Left-permutive, exact left spread — the one further bit beyond quiescence: f 0 0 1 = g 0 1 must be 1 (rule 30/90/150/210 all meet it; the class this hypothesis excludes is exactly what the guard at the end of this section exhibits).

              theorem ECA.LocalRule.rightPermutive_support_min'_spread {f : LocalRule} (hq : f 0 0 0 = 0) {h : ZMod 2 → ZMod 2 → ZMod 2} (hh : ∀ (a b c : ZMod 2), f a b c = c + h a b) {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (f.finRule hq s).support.Nonempty) :
              (f.finRule hq s).support.min' hne' = s.support.min' hne - 1

              Right-permutive, exact left spread — free from quiescence alone, the mirror of LocalRule.leftPermutive_support_max'_spread.

              theorem ECA.LocalRule.rightPermutive_support_max'_spread {f : LocalRule} (hq : f 0 0 0 = 0) {h : ZMod 2 → ZMod 2 → ZMod 2} (hh : ∀ (a b c : ZMod 2), f a b c = c + h a b) (hh10 : h 1 0 = 1) {s : FiniteConfiguration} (hne : s.support.Nonempty) (hne' : (f.finRule hq s).support.Nonempty) :
              (f.finRule hq s).support.max' hne' = s.support.max' hne + 1

              Right-permutive, exact right spread — the one further bit beyond quiescence: f 1 0 0 = h 1 0 must be 1 (rules 86/154 meet it; rule 170's guard at the end of this section is exactly this bit failing). The mirror of LocalRule.leftPermutive_support_min'_spread.

              Four non-additive elementary rules, at radius one #

              rule30/rule210 (left-permutive) and rule86/rule154 (right-permutive), each with its local rule given explicitly and checked against the standard elementary-CA numbering (bit 4a + 2b + c of the rule number) by direct computation. Each g/h is read straight off the row: no decide over the rule space is needed to instantiate the class capstone.

              Rule 30, f a b c = a + b + c + b·c: left-permutive, g b c = b + c + b·c, non-additive.

              Equations
              Instances For
                theorem ECA.hq30 :
                f30 0 0 0 = 0

                f30 0 0 0 = 0.

                Elementary rule 30, radius one, as a LocalRule.finRule.

                Equations
                Instances For
                  theorem ECA.rootSet_encard_add_rule30 {n : ℕ} (hn : 2 ≤ n) :
                  (rootSet rule30 n).encard + 2 ^ (n - 2) = 2 ^ n + 1

                  The count for rule30.

                  The headline: rule 30's width on the forward images of an n-cell region is exactly rule 90's, at 2 ≤ n — both root sets satisfy the same additive equation.

                  Rule 210, f a b c = a + c + b·c: left-permutive, g b c = c + b·c, non-additive.

                  Equations
                  Instances For
                    theorem ECA.hq210 :
                    f210 0 0 0 = 0

                    f210 0 0 0 = 0.

                    Elementary rule 210, radius one, as a LocalRule.finRule.

                    Equations
                    Instances For
                      theorem ECA.rootSet_encard_add_rule210 {n : ℕ} (hn : 2 ≤ n) :
                      (rootSet rule210 n).encard + 2 ^ (n - 2) = 2 ^ n + 1

                      The count for rule210.

                      Rule 86, f a b c = a + b + c + a·b: right-permutive, h a b = a + b + a·b, non-additive.

                      Equations
                      Instances For
                        theorem ECA.hq86 :
                        f86 0 0 0 = 0

                        f86 0 0 0 = 0.

                        Elementary rule 86, radius one, as a LocalRule.finRule.

                        Equations
                        Instances For
                          theorem ECA.rootSet_encard_add_rule86 {n : ℕ} (hn : 2 ≤ n) :
                          (rootSet rule86 n).encard + 2 ^ (n - 2) = 2 ^ n + 1

                          The count for rule86.

                          Rule 154, f a b c = a + c + a·b: right-permutive, h a b = a + a·b, non-additive.

                          Equations
                          Instances For
                            theorem ECA.hq154 :
                            f154 0 0 0 = 0

                            f154 0 0 0 = 0.

                            Elementary rule 154, radius one, as a LocalRule.finRule.

                            Equations
                            Instances For
                              theorem ECA.rootSet_encard_add_rule154 {n : ℕ} (hn : 2 ≤ n) :
                              (rootSet rule154 n).encard + 2 ^ (n - 2) = 2 ^ n + 1

                              The count for rule154.

                              The shift guard: quiescent and permutive is not enough #

                              Rule 170, f a b c = c, is the pure right shift: right-permutive trivially (h ≡ 0) and quiescent, exactly like rule86/rule154 above, but its spread is one-sided — f 1 0 0 = 0, so LocalRule.rightPermutive_support_max'_spread's extra bit (h 1 0 = 1) fails, and the right-hand end does not move out, it retreats. Exact spread controls the VALUE the count closes to, not merely whether the machinery applies: the shift is permutive and quiescent and still gets a different root count (2 ^ (n - 1) + 1, proved below at the endpoint-move generalization's own (a, b) = (1, -1), not via the class-level lemma this guard shows insufficient) from the six rules above.

                              Rule 170, f a b c = c: the pure right shift, (rule170 s) i = s (i + 1), right-permutive trivially (h ≡ 0).

                              Equations
                              Instances For
                                theorem ECA.hq170 :
                                f170 0 0 0 = 0

                                f170 0 0 0 = 0.

                                The pure shift, as a local rule: (rule170 s) i = s (i + 1).

                                Equations
                                Instances For
                                  theorem ECA.rule170_apply (s : FiniteConfiguration) (i : ℤ) :
                                  (rule170 s) i = s (i + 1)

                                  Guard: the exact right-spread hypothesis is not implied by quiescence and (right-) permutivity alone. Witness Finsupp.single 0 1: its rule170-image is supported only at -1, one BELOW its own support max 0, not one above.

                                  The two shifts, at the endpoint-move generalization #

                                  The guard above shows rule170's exact right spread is -1, not +1 — outside the class-level lemmas' reach, but squarely inside width_derived_eq_encard_rootSet/rootSet_encard_add_of_hyps at (a, b) = (1, -1). Its mirror, rule240 (f a _b _c = a, the pure LEFT shift), is new to this file: left-permutive with g ≡ 0 gives injectivity and the free max' spread (b = 1) for nothing, but its own exact LEFT spread is -1 (a = -1) rather than LocalRule.leftPermutive_support_min'_spread's +1 — rule240 is the ONLY instantiation in this file exercising rootSet_cover/ rootSet_antichain's negative-a branch; without it that branch is untested code.

                                  The exact left spread, free from quiescence alone (LocalRule.rightPermutive_support_min'_spread would give this too; proved directly off rule170_apply to match rule170_support_max'_spread's style below).

                                  The exact right spread, the guard's own witness turned into the true value: -1, not +1 — the support moves left by one, matching rule170_apply's own s (i + 1) term.

                                  theorem ECA.rootSet_encard_add_rule170 {n : ℕ} (hn : 1 ≤ n) :
                                  (rootSet rule170 n).encard + 2 ^ (n - 1) = 2 ^ n + 1

                                  The count for rule170, m = 1: the shift's own root count ([RuleSpace] §2 Proposition 2.11(iii)).

                                  Rule 240, f a _b _c = a: the pure LEFT shift, (rule240 s) i = s (i - 1), left-permutive trivially (g ≡ 0).

                                  Equations
                                  Instances For
                                    theorem ECA.hq240 :
                                    f240 0 0 0 = 0

                                    f240 0 0 0 = 0.

                                    Elementary rule 240, radius one, as a LocalRule.finRule.

                                    Equations
                                    Instances For
                                      theorem ECA.rule240_apply (s : FiniteConfiguration) (i : ℤ) :
                                      (rule240 s) i = s (i - 1)

                                      The exact right spread, free from quiescence alone (LocalRule.leftPermutive_support_max'_spread).

                                      The exact left spread: +1, not -1 — g ≡ 0 fails LocalRule.leftPermutive_support_min'_spread's own extra bit (g 0 1 = 1), since g240 0 1 = 0, so this is proved directly off rule240_apply rather than through that lemma. The negative-a instance rootSet_cover/rootSet_antichain's own docstrings point at.

                                      theorem ECA.rootSet_encard_add_rule240 {n : ℕ} (hn : 1 ≤ n) :
                                      (rootSet rule240 n).encard + 2 ^ (n - 1) = 2 ^ n + 1

                                      The count for rule240, m = 1.

                                      Axiom audit #

                                      Every capstone above is #print axioms-clean on the standard triple, and the guards below make that build-enforced.