Documentation

ReflectiveSubsystems.Decoupling

The Decoupling Lemma: structural core + necessity ([Decoupling] §3 Lemma 3.1) #

Provenance: [Decoupling], §3 (Lemma 3.1, the Decoupling Lemma: D1 persistence — a faithfully-encoded model survives multi-step iteration iff its code region is read-only under the update).

Modeling. A subsystem is ONE shared memory Mem ι V := ι → V with ONE update U : Mem → Mem. "Code vs work" is EARNED, not assumed: which cells U writes is what distinguishes them. A model is read out by decode : Mem → M over a region R (the candidate code region). The result — decoupling (U read-only on R) ⟺ a faithfully-encoded model survives all k iterations — so decoupling is DERIVED in both directions, not posited. This captures "applying the model on shared degrees of freedom overwrites it unless the code cells are read-only".

Status: PROVED as the information-theoretic core (pure shared-memory algebra), both directions.

What this DOES establish #

What this does NOT establish (flagged) #

Hypotheses: paper-stated vs added #

@[reducible, inline]
abbrev ReflectiveSubsystems.Mem (ι : Type u_4) (V : Type u_5) :
Type (max u_4 u_5)

A subsystem's memory: a single shared field of cells ι holding values V.

Equations
Instances For
    def ReflectiveSubsystems.Fixes {ι : Type u_1} {V : Type u_2} (U : Mem ι V → Mem ι V) (R : Set ι) :

    U is read-only on region R: it never writes cells in R (the candidate code region).

    Equations
    Instances For
      def ReflectiveSubsystems.DependsOn {ι : Type u_1} {V : Type u_2} {M : Type u_3} (decode : Mem ι V → M) (R : Set ι) :

      decode depends only on region R (the model is read from R).

      Equations
      Instances For
        def ReflectiveSubsystems.Faithful {ι : Type u_1} {V : Type u_2} {M : Type u_3} (decode : Mem ι V → M) (R : Set ι) :

        decode faithfully encodes R: equal decode ⟺ agreement on R (it both depends only on R and separates every R-difference). Models "the model is exactly the code-region cells".

        Equations
        Instances For
          theorem ReflectiveSubsystems.Faithful.dependsOn {ι : Type u_1} {V : Type u_2} {M : Type u_3} {decode : Mem ι V → M} {R : Set ι} (hf : Faithful decode R) :
          DependsOn decode R

          A faithful model depends only on its region.

          theorem ReflectiveSubsystems.Fixes.iterate {ι : Type u_1} {V : Type u_2} {U : Mem ι V → Mem ι V} {R : Set ι} (h : Fixes U R) (k : ℕ) (s : Mem ι V) (a : ι) :
          a ∈ R → U^[k] s a = s a

          D1 mechanism: cells the update never writes stay fixed across ALL k iterations.

          theorem ReflectiveSubsystems.model_persists {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : Set ι} {decode : Mem ι V → M} (hU : Fixes U R) (hd : DependsOn decode R) (k : ℕ) (s : Mem ι V) :
          decode (U^[k] s) = decode s

          Sufficiency (D1): a model read from a read-only region survives every iteration.

          theorem ReflectiveSubsystems.model_destroyed_by_write {ι : Type u_1} {V : Type u_2} {U : Mem ι V → Mem ι V} (s : Mem ι V) (a : ι) (h : U s a ≠ s a) :
          (fun (m : Mem ι V) => m a) (U s) ≠ (fun (m : Mem ι V) => m a) s

          The concrete no-go ("applying destroys it"): if the update writes the cell the model is read from, one application changes the model.

          theorem ReflectiveSubsystems.fixes_of_persists {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : Set ι} {decode : Mem ι V → M} (hf : Faithful decode R) (hpers : ∀ (s : Mem ι V), decode (U s) = decode s) :
          Fixes U R

          NECESSITY (the deeper direction): if a faithful model is preserved by U on every state, then U must be read-only on R — decoupling is FORCED. (A degenerate model needs no decoupling; faithfulness is exactly "there is a real model".)

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

          THE EQUIVALENCE (Lemma 3.1 core, multi-step): for a faithfully-encoded model, decoupling (read-only code region) holds IFF the model persists across all k prediction steps.

          theorem ReflectiveSubsystems.total_overwrite_exclusion {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} (hall : ∀ (a : ι), ∃ (s : Mem ι V), U s a ≠ s a) {decode : Mem ι V → M} {R : Set ι} (hne : R.Nonempty) (hf : Faithful decode R) :
          ¬∀ (k : ℕ) (s : Mem ι V), decode (U^[k] s) = decode s

          [Decoupling] §3, Corollary 3.2 (Total-Overwrite Exclusion): if the update rewrites every cell somewhere (no cell is read-only under U), then no faithful model on a non-empty region persists across iterations. The packaged contrapositive of fixes_of_persists: persistence would force U read-only on R, but with R non-empty that contradicts total overwrite at any a ∈ R.

          theorem ReflectiveSubsystems.necessity_needs_faithful :
          ∃ (ι : Type), ∃ (V : Type), ∃ (M : Type), ∃ (decode : Mem ι V → M), ∃ (U : Mem ι V → Mem ι V), ∃ (R : Set ι), DependsOn decode R ∧ (∀ (s : Mem ι V), decode (U s) = decode s) ∧ ¬Fixes U R

          The faithfulness (injectivity) hypothesis is load-bearing for necessity. The necessity direction (fixes_of_persists) needs the full Faithful biconditional, not merely DependsOn (the model depends only on R). This exhibits a lossy decoder where DependsOn and persistence both hold yet U rewrites a cell of R — so without faithfulness, persistence does not force a read-only code region. Witness: two Boolean cells, a decoder reading only cell false (so cell true ∈ R is redundant), and the update that flips cell true. The model persists (it never reads the flipped cell) while R is rewritten. This is the "no redundancy in the code encoding" content of Definition 2.1(D2): a code region with cells the decoder ignores breaks necessity.

          The decoupling dichotomy ([Decoupling] §3, Corollary 3.3) #

          The maximality statement, in two halves and packaged. Persistence of a faithful model forces a read-only cell (exists_fixed_cell_of_persists / subset_fixed_of_persists, the ⇒ direction), and conversely a single read-only cell already supports a faithful, non-constant, persisting model (persists_of_fixed_cell, the ⇐ direction). Over the value type these combine into the biconditional decoupling_dichotomy.

          theorem ReflectiveSubsystems.exists_fixed_cell_of_persists {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : Set ι} {decode : Mem ι V → M} (hne : R.Nonempty) (hf : Faithful decode R) (hpers : ∀ (k : ℕ) (s : Mem ι V), decode (U^[k] s) = decode s) :
          ∃ (a : ι), ∀ (s : Mem ι V), U s a = s a

          [Decoupling] §3, Corollary 3.3 (⇒, maximality). If a faithful model on a non-empty region persists across every iteration, then the update has a genuinely read-only cell: some a fixed by U on every state. One step off fixes_of_persists (persistence read at k = 1).

          theorem ReflectiveSubsystems.subset_fixed_of_persists {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : Set ι} {decode : Mem ι V → M} (hf : Faithful decode R) (hpers : ∀ (k : ℕ) (s : Mem ι V), decode (U^[k] s) = decode s) :
          R ⊆ {a : ι | ∀ (s : Mem ι V), U s a = s a}

          [Decoupling] §3, Corollary 3.3 (⇒, set form). The whole code region is read-only: every cell of R is fixed by U on every state. Same content as exists_fixed_cell_of_persists, which additionally uses R non-empty to name one witness.

          theorem ReflectiveSubsystems.persists_of_fixed_cell {ι : Type u_1} {V : Type u_2} [Nontrivial V] {U : Mem ι V → Mem ι V} (a₀ : ι) (h : ∀ (s : Mem ι V), U s a₀ = s a₀) :
          ∃ (R : Set ι), ∃ (decode : Mem ι V → V), R.Nonempty ∧ Faithful decode R ∧ (∃ (s : Mem ι V), ∃ (t : Mem ι V), decode s ≠ decode t) ∧ ∀ (k : ℕ) (s : Mem ι V), decode (U^[k] s) = decode s

          [Decoupling] §3, Corollary 3.3 (⇐, witness). A single read-only cell already carries a faithful, non-constant model that persists across every iteration. Witness: the singleton region {a₀} with the one-cell decoder s ↦ s a₀ — faithfulness is definitional, non-constancy comes from two constant states at distinct values (Nontrivial V), and persistence is model_persists.

          theorem ReflectiveSubsystems.decoupling_dichotomy {ι : Type u_1} {V : Type u_2} [Nontrivial V] {U : Mem ι V → Mem ι V} :
          (∃ (R : Set ι), ∃ (decode : Mem ι V → V), R.Nonempty ∧ Faithful decode R ∧ (∃ (s : Mem ι V), ∃ (t : Mem ι V), decode s ≠ decode t) ∧ ∀ (k : ℕ) (s : Mem ι V), decode (U^[k] s) = decode s) ↔ ∃ (a : ι), ∀ (s : Mem ι V), U s a = s a

          [Decoupling] §3, Corollary 3.3 (the decoupling dichotomy). Over the value type V, existence of a faithful, non-constant model that persists across all prediction steps is equivalent to the update having a read-only cell. Forward is the maximality half exists_fixed_cell_of_persists (its non-constancy hypothesis is unused); backward is the witness persists_of_fixed_cell.

          The relativized Decoupling Lemma ([Decoupling] §3, Proposition 3.4) #

          The equivalence relativized to an update-closed set of states Ω (∀ s ∈ Ω, U s ∈ Ω): decoupling need only hold on Ω, and persistence is then read only along Ω-orbits. Recovers the global decoupling_iff_persists_all at Ω = Set.univ.

          theorem ReflectiveSubsystems.fixes_iterate_on {ι : Type u_1} {V : Type u_2} {U : Mem ι V → Mem ι V} {R : Set ι} {Ω : Set (Mem ι V)} (hΩ : ∀ (s : Mem ι V), s ∈ Ω → U s ∈ Ω) (hfix : ∀ (s : Mem ι V), s ∈ Ω → ∀ (a : ι), a ∈ R → U s a = s a) (k : ℕ) (s : Mem ι V) :
          s ∈ Ω → ∀ (a : ι), a ∈ R → U^[k] s a = s a

          [Decoupling] §3, Proposition 3.4 (mechanism, relativized). On an update-closed set Ω, cells the update fixes throughout Ω stay fixed across every iteration of any Ω-orbit. The Fixes.iterate induction, with Ω-membership threaded through the closure hypothesis hΩ.

          theorem ReflectiveSubsystems.decoupling_iff_persists_on {ι : Type u_1} {V : Type u_2} {M : Type u_3} {U : Mem ι V → Mem ι V} {R : Set ι} {decode : Mem ι V → M} {Ω : Set (Mem ι V)} (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

          [Decoupling] §3, Proposition 3.4 (the relativized equivalence). For a faithful model and an update-closed set of states Ω, decoupling on Ω (the update is read-only on R at every state of Ω) holds iff the model persists across every iteration along Ω-orbits. The mirror of decoupling_iff_persists_all; the ⇐ direction uses persistence at k = 1 only.