Documentation

ReflectiveSubsystems.CounterLearner

A second concrete learner → CCC/NNO instance: the modular counter #

Provenance: [Decoupling], §4 (Rep(S) as a CCC), §4.4 (the Rule-30 cellular-automaton worked example), §4.5 / Conjecture 4.4 (the general functor DecoupledLearner → CCC_NNO is OPEN). This file is a supporting win toward it: a SECOND concrete decoupled-learner instance beyond Rule-30 — the modular counter (state ZMod (n+1), update = successor) — exhibiting its rules-as-data object, its iteration, its finiteness, and the fact that its iterated-successor dynamics realize the cyclic parameterized NNO already built in ReflectiveSubsystems/ParameterizedNNO.lean.

Status: PROVED as concrete ZMod arithmetic. A supporting instance, not the functor.

What this DOES establish #

What this does NOT establish (flagged) #

Hypotheses: paper-stated vs added #

@[reducible, inline]

A concrete decoupled learner (second instance, distinct from the Rule-30 CA): state = ZMod (n+1), one-step update = successor (a modular counter).

Equations
Instances For

    The one-step update: advance the counter by one.

    Equations
    Instances For
      @[reducible, inline]

      The functions-as-data object: this learner's one-step update rules ([Decoupling] §4.5). This is the Type-level exponential State n ⇒ State n of the Type CCC stand-in.

      Equations
      Instances For

        Applying a rule-as-data to a state.

        Equations
        Instances For

          The learner applies its own rule-as-data (functions-as-data, §4.5).

          theorem ReflectiveSubsystems.ModularCounter.step_iterate (n k : ℕ) (s : State n) :
          (step n)^[k] s = s + ↑k

          Multi-step prediction by iterating the rule-as-data: k steps advance the counter by k.

          @[instance_reducible]

          The functions-as-data object is finite ([Decoupling] §4.4 exp_finite_type, concretely).

          Equations

          Its cardinality: (n+1)^(n+1) one-step rules over a state space of n+1 configurations.

          NNO tie (the centerpiece): the counter's successor step IS the successor map of cyclicParamNNO n on ZMod (n+1).

          The counter's iterated-successor dynamics realize the parameterized NNO's orbit: the k-th iterate of succ from zero is k. (Depth (cyclicParamNNO n).depth = n, so the orbit zero, …, succ^n zero is the full (n+1)-cycle of State n.)