Documentation

ReflectiveSubsystems.AccretiveDecoupling

Accretive decoupling: the equivalence on a growing code region ([Inevitability] §6) #

[Decoupling] §3 states its equivalence for a fixed code region. A host whose code accretes — written cells never rewritten, fresh cells appended on a frontier — needs the equivalence for a region that grows with time, and needs the heredity claim to hold across the growth: a cell written by time t must stay fixed under every later step, not merely under the step taken at t. This file states that extension and proves it.

The setting is a nonautonomous one. R : ℕ → Set ι is the region written by time t, Ω : ℕ → Set (Mem ι V) the nonautonomous set of states admitted at each time; Nonautonomous.PositivelyInvariant (from Nonautonomous.MergeQuotient) says one update carries the fiber at t into the fiber at t + 1, and Accretes says that at every time the update is read-only on the region written so far. Growth is Monotone R.

The result, and what it costs #

The extension is a corollary of the relativized equivalence ([Decoupling] §3, Proposition 3.4), not an independent development, and the reduction is one construction: fix a time t and pass to fibersFrom Ω t, the states admitted at t or later. That set is update-closed, and on it the update is read-only on the single region R t, because monotonicity carries R t inside every later region — so the fixed-partition machinery applies verbatim and returns heredity from time t. accretive_fixes_iterate is fixes_iterate_on under fibersFrom and nothing else. Monotonicity is used exactly once, at that step; without it R t need not be read-only later and the reduction fails.

What the reduction does not do is make the extension a restatement. The limit region — the union of all the written regions — is in general not read-only, precisely because the frontier is where writing happens, so one cannot recover the accretive statement by applying the fixed-partition lemma to the union and reading off the fibers. not_accretes_tapeLimit exhibits that failure on the running instance below. The time-indexed family is doing work; its proof is a corollary.

Main results #

Scope #

Same shared-memory algebra as [Decoupling] §3 and nothing more: abstract cells and values, no substrate, no description-length pricing, and no claim that any particular host accretes. What the frontier is written with — how a variant is proposed, scored, and committed — is outside this file; accretion is assumed here, not derived. The reflection progression that [Inevitability] §6 builds on a growing host needs, beyond this, the recurrence of the threshold crossing at each enlarged fiber, which is untouched here.

The time-indexed hypotheses #

def ReflectiveSubsystems.Accretes {ι : Type u_1} {V : Type u_2} (U : Mem ι V → Mem ι V) (R : ℕ → Set ι) (Ω : ℕ → Set (Mem ι V)) :

At every time, U is read-only on the region written so far. This is the per-snapshot decoupling condition; on its own it says nothing about later times, which is exactly the gap the results below close.

Equations
Instances For
    def ReflectiveSubsystems.fibersFrom {ι : Type u_1} {V : Type u_2} (Ω : ℕ → Set (Mem ι V)) (t : ℕ) :
    Set (Mem ι V)

    The states admitted at time t or later. Passing to this set is the whole reduction of the accretive statement to the fixed-partition one: it is update-closed, and R t sits inside every region it can meet.

    Equations
    Instances For

      Heredity, and the equivalence #

      theorem ReflectiveSubsystems.accretive_fixes_iterate {ι : Type u_1} {V : Type u_2} {U : Mem ι V → Mem ι V} {R : ℕ → Set ι} {Ω : ℕ → Set (Mem ι V)} (hR : Monotone R) (hadv : Nonautonomous.PositivelyInvariant U Ω) (hacc : Accretes U R Ω) (t k : ℕ) (s : Mem ι V) :
      s ∈ Ω t → ∀ (a : ι), a ∈ R t → U^[k] s a = s a

      Heredity as the code accretes ([Inevitability] §6): a cell in the region written by time t keeps its value under every iterate, from every state in the fiber at t — not merely under the single step taken at t.

      Proof: Proposition 3.4's mechanism (fixes_iterate_on) on the update-closed set fibersFrom Ω t with the fixed region R t.

      theorem ReflectiveSubsystems.accretive_persists {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : ℕ → Set ι} {Ω : ℕ → Set (Mem ι V)} {decode : ℕ → Mem ι V → M} (hR : Monotone R) (hadv : Nonautonomous.PositivelyInvariant U Ω) (hacc : Accretes U R Ω) (hdep : ∀ (t : ℕ), DependsOn (decode t) (R t)) (t k : ℕ) (s : Mem ι V) :
      s ∈ Ω t → decode t (U^[k] s) = decode t s

      Sufficiency, per time: a model read off the region written by time t survives every later step. The persistence half of the growing-host claim.

      theorem ReflectiveSubsystems.accretes_of_persists {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : ℕ → Set ι} {Ω : ℕ → Set (Mem ι V)} {decode : ℕ → Mem ι V → M} (hf : ∀ (t : ℕ), Faithful (decode t) (R t)) (hpers : ∀ (t : ℕ) (s : Mem ι V), s ∈ Ω t → decode t (U s) = decode t s) :
      Accretes U R Ω

      Necessity, per time (mirroring fixes_of_persists): if the faithful reading at each time is preserved by one step from every state in the fiber at that time, then the update accretes. Neither growth nor Nonautonomous.PositivelyInvariant is needed — one step is read at the time it starts.

      theorem ReflectiveSubsystems.accretive_decoupling_iff {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : ℕ → Set ι} {Ω : ℕ → Set (Mem ι V)} {decode : ℕ → Mem ι V → M} (hR : Monotone R) (hadv : Nonautonomous.PositivelyInvariant U Ω) (hf : ∀ (t : ℕ), Faithful (decode t) (R t)) :
      Accretes U R Ω ↔ ∀ (t : ℕ) (s : Mem ι V), s ∈ Ω t → ∀ (k : ℕ), decode t (U^[k] s) = decode t s

      The Decoupling equivalence on a growing code region ([Inevitability] §6, the accretive extension). For a faithful reading at each time of a monotonically growing region, under an update for which Ω is positively invariant: the update accretes — is read-only, at every time, on everything written so far — iff the model at each time persists across every iteration along the orbits from its fiber.

      Forward is accretive_persists; backward is accretes_of_persists, reading persistence at k = 1. [Decoupling] §3, Proposition 3.4 is the constant-family case, which accretive_iff_persists_on_const derives from this statement.

      theorem ReflectiveSubsystems.accretive_iff_persists_on_const {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : Set ι} {Ω : Set (Mem ι V)} {decode : Mem ι V → M} (hf : Faithful decode R) (hΩ : ∀ (s : Mem ι V), s ∈ Ω → U s ∈ Ω) :
      (∀ (s : Mem ι V), s ∈ Ω → ∀ (a : ι), a ∈ R → U s a = s a) ↔ ∀ (s : Mem ι V), s ∈ Ω → ∀ (k : ℕ), decode (U^[k] s) = decode s

      Coherence: the fixed-partition lemma is the degenerate case. Instantiating accretive_decoupling_iff at the constant family (R t = R, Ω t = Ω) reproduces [Decoupling] §3, Proposition 3.4 exactly — the time index becomes vacuous and Nonautonomous.PositivelyInvariant becomes update-closure. [Inevitability] §6 asserts this; here it is a theorem.

      A strictly growing instance #

      Everything above is satisfied by the constant family, under which it collapses to the fixed-partition lemma. The instance below is what makes the extension say something new: an append-only tape.

      Cell 0 holds the time counter; cells 1, 2, … are the code. One update bumps the counter and writes the single fresh cell just past the written region. So the region written by time t is {1, …, t}, it grows strictly at every time, the admitted states {s | s 0 = t} are pairwise disjoint across times, and the update is read-only on everything already written — while the limit region {a | 1 ≤ a} is not read-only at any time, since that is where the writing goes.

      The append-only update: bump the time counter in cell 0, and write the one fresh cell just past the written region.

      Equations
      Instances For

        The code written by time t: cells 1, …, t.

        Equations
        Instances For

          The fiber at time t: the states whose counter reads t.

          Equations
          Instances For

            Reading the code written by time t: the written cells, and a canonical value elsewhere.

            Equations
            Instances For

              The limit region: every cell the tape will ever write.

              Equations
              Instances For

                The code region grows strictly: time t + 1 writes cell t + 1, which time t had not. Without this the instance would be the constant family in disguise.

                The fibers are genuinely distinct: no state lies in the fibers at two consecutive times.

                The update carries the fiber at t into the fiber at t + 1: writing bumps the counter.

                The update accretes: at time t it touches only the counter and the fresh cell t + 1, both outside the written region {1, …, t}.

                The reading at each time is faithful on that time's region: it separates exactly the written cells.

                The union of the regions is not read-only. So the accretive statement is not recoverable by applying the fixed-partition lemma once to the limit region: the frontier is where the writing happens, and it belongs to the limit. The time-indexed family is doing real work — even though its proof reduces, time by time, to the fixed-partition machinery.

                theorem ReflectiveSubsystems.exists_strictly_accretive_decoupling :
                ∃ (ι : Type), ∃ (V : Type), ∃ (M : Type), ∃ (U : Mem ι V → Mem ι V), ∃ (R : ℕ → Set ι), ∃ (Ω : ℕ → Set (Mem ι V)), ∃ (decode : ℕ → Mem ι V → M), Monotone R ∧ (∀ (t : ℕ), R t ⊂ R (t + 1)) ∧ (∀ (t : ℕ) (s : Mem ι V), s ∈ Ω t → ¬s ∈ Ω (t + 1)) ∧ Nonautonomous.PositivelyInvariant U Ω ∧ Accretes U R Ω ∧ (∀ (t : ℕ), Faithful (decode t) (R t)) ∧ ¬Accretes U (fun (x : ℕ) => {a : ι | ∃ (u : ℕ), a ∈ R u}) Ω

                The accretive extension is non-degenerate: there is a growing host on which every hypothesis holds, the region grows strictly at every time, the fibers are pairwise distinct, the time-indexed reading is faithful — and the limit region is not read-only, so no single fixed partition reproduces the conclusion.

                An arbitrary committed stream #

                tapeWrite commits a single fixed symbol, 1, at each time. seqWriteNat generalizes it to commit an arbitrary stream c : ℕ → ℕ, one entry per time step — [Inevitability] §6, Proposition 6.2's first theorem consumer. tapeRegion, tapeFiber and tapeDecode never mention what was written, only where, so they are reused verbatim; only the write itself changes. What survives is exactly what Proposition 6.2 gives: every committed cell held under every later step, at a footprint equal to the stream's own prefix length. What the stream's entries are — successive law-codes, or how they are chosen — is paper-side, not claimed here.

                Commit stream c, one entry per time step: bump the counter in cell 0, write c's s 0-th entry at the fresh cell just past the written region, and leave every other cell alone. Reduces to tapeWrite at the constant stream fun _ => 1.

                Equations
                Instances For

                  The blank state before any commitment: counter 0, every cell 0.

                  Equations
                  Instances For

                    seqWriteNat c carries each fiber into the next exactly as tapeWrite does: the counter bump does not depend on what is written.

                    seqWriteNat c accretes on the same region as tapeWrite, by the same argument: at time t it touches only the counter and the fresh cell t + 1, both outside {1, …, t}.

                    theorem ReflectiveSubsystems.seqWriteNat_iterate_seqStart (c : ℕ → ℕ) (t : ℕ) :
                    (seqWriteNat c)^[t] seqStart = fun (a : ℕ) => if a = 0 then t else if 1 ≤ a ∧ a ≤ t then c (a - 1) else 0

                    The canonical run from the blank state: after t commitments the counter reads t, and cell a holds the (a - 1)-th entry of c for every written cell 1 ≤ a ≤ t, 0 elsewhere.

                    The canonical run lies in the fiber at time t, so accretive_persists applies to it.

                    theorem ReflectiveSubsystems.seqDecode_hereditary (c : ℕ → ℕ) (t k : ℕ) :
                    tapeDecode t ((seqWriteNat c)^[t + k] seqStart) = fun (a : ℕ) => if 1 ≤ a ∧ a ≤ t then c (a - 1) else 0

                    The committing substrate ([Inevitability] §6, Proposition 6.2's first theorem consumer): every symbol seqWriteNat commits is held under every later commitment, forever. For every time t and every later step k, the reading of the code region written by time t is exactly the stream's own prefix — cell a holds c (a - 1) for 1 ≤ a ≤ t, 0 elsewhere — no matter how many further commitments have since been made.

                    Proof: accretive_persists at the canonical run, (seqWriteNat c)^[t] seqStart, which mem_tapeFiber_seqWriteNat_iterate places in the fiber at time t; the run identification then evaluates both sides. This is the accretive equivalence consumed, not reproved — everything about what the stream commits, or how, stays outside this file.

                    The committed footprint is exactly the prefix length: the region held permanently after t commitments is in bijection with Fin t — t cells, with no slack.