Documentation

ReflectiveSubsystems.EvoAbsorption

Which hosts absorb a debt: the single-witness evolutionary fiber ([Inevitability] §6) #

ErrorBudget prices a debt against a margin over an arbitrary host in the Hamming metric on Mem ι V; SkewFiber builds one deterministic generation of variation and selection over a population Pop P C = Fin P → Fin C, driven by a base coordinate through a skew product. This file asks ErrorBudget's question of SkewFiber's own construction: does the evolutionary fiber's step absorb a damage debt, and by which of ErrorBudget's repairs?

Pop P C = Fin P → Fin C is Mem (Fin P) (Fin C) definitionally, so every statement below is about the fiber at a fixed base state, with the single self-map gaGen (fit x) (vary x) as the host and the base coordinate treated as an external driver. Nothing here gives the base coordinate cells of its own; that is outside what a skew product's fiber can be asked to absorb.

Two negatives, and why a margin is the wrong question for this host #

The evolutionary step is expansive whenever selection actually does anything (not_nonexpansive_of_gaGen_ne): once two populations produce different winners, one single-slot change along a path between them must flip the winner, and a flip changes every one of the P slots at once. So ReflectiveSubsystems.survives_of_margin's hypothesis is unavailable except in the degenerate case where selection is inoperative.

One-step erasure fails too, and not as a technicality: it fails inside the construction's own coverage regime (not_corrects_of_faithful). With variation switched off — ReflectiveSubsystems.surjective_fittestFrame_of_fixed's own setting — the fitness-minimizing codeword's population is a fixed point, one cell off it is inside radius 1, and the fold reads that one changed cell straight back, changing the fitness winner outright. So ReflectiveSubsystems.Corrects.survives's hypothesis is unavailable there too, in the exact regime where the codeword frame's own coverage witness lives.

The headline: coverage and a margin collide #

margin_yields_max shows a margin at a settled point forces that point's codeword to be the strict fitness maximum — from the same single-slot construction. A settled point that is also covered by every candidate codeword is therefore impossible once 2 ≤ C (not_surjective_of_margin): the ω-limit collapses to whichever populations reach the maximizer, and the codeword-valued reading can be constant on it at best.

This does not refute ReflectiveSubsystems.fiber_emergence_pricing's hypothesis outright — that hypothesis is surjectivity over the whole skew-product carrier, not over one fiber at a fixed base state. What it refutes is the only way the population coordinate alone could carry that coverage: freezing the base and ranging over initial populations, exactly ReflectiveSubsystems.surjective_fittestFrame_of_fixed's route. Under a margin, coverage has to be charged to the base coordinate instead — which is what ReflectiveSubsystems.predFrame does.

The positive half: the base-reading frame absorbs a debt at radius P - 1 #

predFrame_margin prices what the fiber can do: at a fixed base state, the basin of populations containing a correctly-predicting member is closed under one generation, the reading — the base's own next state, decoded from the fittest member — is constant on it, and the margin is P - 1, the widest radius under which a perturbation is guaranteed to leave at least one untouched slot. predFrame_survives composes this with ReflectiveSubsystems.survives_of_invariant: the damaged and undamaged readings agree at every step, for any arrival pattern and any total debt, at that radius.

No accumulation argument reaches this: after one step both trajectories are constant populations, so their Hamming distance is 0 or P, and P > P - 1. The margin survives only because survives_of_invariant needs no accumulation bound at all.

Scope #

Everything here is at a fixed base state x, with vary i = id (variation switched off) in every result that names a margin or a fixed point. Whether selection converges under real variation, and from which initial states, is untouched — as in SkewFiber itself. No numbered result is claimed machine-checked by this file; the port from [Inevitability] §6, Proposition 6.1(iii) to this setting is stated in each theorem's own docstring.

A path between two populations, one slot at a time #

(a) Non-expansiveness holds only when selection is inoperative #

theorem ReflectiveSubsystems.not_nonexpansive_of_gaGen_ne {P C : ℕ} [NeZero P] (fit : Fin C → ℕ) (vary : Fin P → Fin C → Fin C) (hP : 2 ≤ P) (h : ∃ (p : Pop P C) (q : Pop P C), gaGen fit vary p ≠ gaGen fit vary q) :

A selection step is expansive whenever it does anything at all. If two populations produce different winners, some single-slot change along a path between them already flips the winner — and since a generation copies the winner out to every slot, that one flip changes all P of them at once. So ReflectiveSubsystems.HammingNonexpansive is unavailable to gaGen fit vary except when selection is constant on every input.

theorem ReflectiveSubsystems.nonexpansive_of_gaGen_const {P C : ℕ} [NeZero P] (fit : Fin C → ℕ) (vary : Fin P → Fin C → Fin C) (hconst : ∀ (p q : Pop P C), gaGen fit vary p = gaGen fit vary q) :

The converse: with selection switched off, the step is trivially non-expansive. A gaGen that returns the same population from every input separates nothing, so it costs no damage to be non-expansive over. Together with not_nonexpansive_of_gaGen_ne this reads as an equivalence: HammingNonexpansive (gaGen fit vary) for 2 ≤ P exactly when gaGen fit vary is constant.

(b) One-step erasure fails outright in the construction's own coverage regime #

theorem ReflectiveSubsystems.not_corrects_of_faithful {P C : ℕ} [NeZero P] (fit : Fin C → ℕ) (hC : 2 ≤ C) :
¬Corrects (gaGen fit fun (x : Fin P) => id) Set.univ 1

One-step erasure fails at radius 1, for every fitness, once variation is switched off — [Inevitability] §6's own coverage regime, ReflectiveSubsystems.surjective_fittestFrame_of_fixed's setting. The fitness-minimizing codeword's uniform population is a fixed point, so it sits in the ω-limit of the whole space; one cell of it flipped to any other codeword is inside radius 1; and the fold reads that flipped cell straight back as the new winner, since nothing else in the population beats it in fitness. So a single-cell perturbation of an attractor state already changes the next state — ReflectiveSubsystems.Corrects is unavailable here, in exactly the regime the codeword frame's own coverage witness (ReflectiveSubsystems.surjective_fittestFrame_of_fixed) lives in.

(c) The headline: coverage and a margin collide #

theorem ReflectiveSubsystems.margin_yields_max {P C : ℕ} [NeZero P] (fit : Fin C → ℕ) (vary : Fin P → Fin C → Fin C) (hmargin : HasMargin (gaGen fit vary) Set.univ (fittest fit) 1) (a : Fin C) (ha : (fun (x : Fin P) => a) ∈ omegaLimit (gaGen fit vary) Set.univ) (b : Fin C) :
b ≠ a → fit b < fit a

A margin at a constant attractor point forces its codeword to be the strict fitness maximum. Perturbing that one attractor at a single slot to any other codeword b keeps the margin's promise that the reading does not move — but fittest_update_const_eq shows the fold only keeps that promise when b does not beat the attractor's own codeword. Since the perturbed population puts b in the winner's seat unless something beats it, margin plus non-improvement forces the win back to a, and ruling out a non-strict tie is exactly what keeps the codeword unique.

theorem ReflectiveSubsystems.not_surjective_of_margin {P C : ℕ} [NeZero P] (fit : Fin C → ℕ) (vary : Fin P → Fin C → Fin C) (hC : 2 ≤ C) (hmargin : HasMargin (gaGen fit vary) Set.univ (fittest fit) 1) :

A margin and a codeword frame that reaches every candidate cannot coexist, once 2 ≤ C: the coverage witnesses for two distinct codewords a ≠ a' are, by exists_const_of_mem_omegaLimit_gaGen and fittest_const, exactly the constant populations at a and a' themselves — and margin_yields_max applied to both orders forces fit a' < fit a and fit a < fit a' at once.

This is stated over the whole ω-limit's coverage, not the initial-population coverage ReflectiveSubsystems.surjective_fittestFrame_of_fixed supplies — see the module docstring for why it does not refute ReflectiveSubsystems.fiber_emergence_pricing's hypothesis outright.

theorem ReflectiveSubsystems.not_hasMargin_of_faithful {P C : ℕ} [NeZero P] (fit : Fin C → ℕ) (hC : 2 ≤ C) :
¬HasMargin (gaGen fit fun (x : Fin P) => id) Set.univ (fittest fit) 1

With variation switched off, the margin fails outright, with no coverage hypothesis at all. Every constant population is a fixed point of gaGen fit fun _ => id (ReflectiveSubsystems.fittest_const), so margin_yields_max applies to every codeword — forcing every a to be the strict fitness maximum over every a' ≠ a simultaneously, which two distinct codewords already contradict.

The positive half: the base-reading frame absorbs a debt at radius P - 1 #

def ReflectiveSubsystems.predBasin {n₁ P C : ℕ} (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) :
Set (Pop P C)

The basin: populations holding at least one member that correctly predicts the base's next step from x.

Equations
Instances For
    def ReflectiveSubsystems.predReading {n₁ P C : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) :
    Pop P C → Fin n₁

    The reading: the fittest member's own prediction of the base's next state — the fiber half of ReflectiveSubsystems.predFrame, at the base coordinate frozen to x.

    Equations
    Instances For
      theorem ReflectiveSubsystems.mapsTo_predBasin {n₁ P C : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) (p : Pop P C) :
      p ∈ predBasin S dec x → gaGen (predFit S dec x) (fun (x : Fin P) => id) p ∈ predBasin S dec x

      The basin is closed under one generation, and the image lands in the fully-correct constant populations: whatever member of p was correct, fittest_correct_of_mem carries that correctness to the winner, which selection then copies out to every slot.

      theorem ReflectiveSubsystems.predFrame_margin {n₁ P C : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) :
      HasMargin (gaGen (predFit S dec x) fun (x : Fin P) => id) (predBasin S dec x) (predReading S dec x) (P - 1)

      The margin, at radius P - 1 ([Inevitability] §6, Proposition 6.1(iii), the base-reading repair): at a correct constant attractor, any perturbation of at most P - 1 slots leaves an untouched, still-correct slot — fatness — and by fittest_correct_of_mem the reading is S x both before and after — constancy. The radius is exactly P - 1: P slots could all move at once (not_nonexpansive_of_gaGen_ne), so the fatness argument is unavailable past it.

      theorem ReflectiveSubsystems.mem_predBasin_of_correct {n₁ P C : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) {c : Fin C} (hc : dec c x = S x) :
      (fun (x : Fin P) => c) ∈ predBasin S dec x

      Non-vacuity: the basin is inhabited exactly when some codeword already predicts the base correctly at x — required, since the whole construction is about the empty set otherwise.

      theorem ReflectiveSubsystems.predFrame_survives {n₁ P C : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) {c : Fin C} (hc : dec c x = S x) (D : Damage (Fin P) (Fin C)) (hrad : D.radius ≤ P - 1) (t : ℕ) :
      (traj (gaGen (predFit S dec x) fun (x : Fin P) => id) D t fun (x : Fin P) => c) ∈ predBasin S dec x ∧ predReading S dec x (traj (gaGen (predFit S dec x) fun (x : Fin P) => id) D t fun (x : Fin P) => c) = predReading S dec x ((gaGen (predFit S dec x) fun (x : Fin P) => id)^[t] fun (x : Fin P) => c)

      The debt survives, at radius P - 1, for any arrival pattern and any total debt ([Inevitability] §6, Proposition 6.1(iii) composed with the third repair, ReflectiveSubsystems.survives_of_invariant). Starting from the uniform population at a codeword c that already predicts the base correctly at x, the damaged and undamaged trajectories read the same base state at every step, for any damage schedule whose per-event radius stays at most P - 1 — no accumulation bound is needed, because predReading is constant on the whole basin (fittest_correct_of_mem), not merely on a Hamming ball around the attractor.

      No accumulation argument reaches this radius: after one step both trajectories are constant populations, so their Hamming distance is 0 or P, and P > P - 1 (not_nonexpansive_of_gaGen_ne). survives_of_invariant needs no accumulation bound at all, which is exactly why it is the repair that applies here.

      The ten capstones above are #print axioms-clean on the standard triple, and the guards below make that build-enforced.