Documentation

ReflectiveSubsystems.RepFintype

Rep(S) on ONE faithful carrier: the Cartesian-closed category of FINITE sets ([Decoupling] §4, #

§6.1)

Provenance: [Decoupling] §4 (Proposition 4.3 — Rep(S) is "a full subcategory of finite sets, Cartesian closed up to capacity"; the realizability "functions as data" layer) and §6.1 (Definition 6.1 — ONE Rep(S) that is a CCC AND contains the bounded recursor).

What this fixes (two stand-in weaknesses of the earlier formalization) #

Earlier the CCC was certified on the trivial Type stand-in (ReflectiveSubsystems/CartesianClosed.lean, MonoidalClosed Type by inferInstance — true of all types, finiteness unused), while the recursor lived on a separate carrier (ZMod, ReflectiveSubsystems/ParameterizedNNO.lean) — two disjoint stand-ins, not one Rep(S). Here both live on ONE setting: the category of finite sets (objects = finite types, morphisms = functions, realizers-as-values = elements of the exponential object).

Honest boundary (what stays paper-level) #

The realizability / capacity layer of §4.1, §4.3 — objects encoded into s_work, morphisms carrying realizer codes, the "up to capacity" filtration — is NOT modeled: this file certifies the categorical finite-set shape (the genuine CCC of finite sets) and its unification with the recursor, not the s_work encoding. One consequence is that reflective_satisfiable here holds unconditionally too, for every Gödel number: with no budget in the predicate, nothing can fail it. The capacity-indexed counterpart is ReflectiveSubsystems.ReflectiveWithin, over the realizability carrier and FV-14's FitsIn. We certify the CCC operations concretely (as bijections on finite types) rather than via Mathlib's MonoidalClosed FintypeCat instance: the abstract internal hom (ihom X).obj Y does not reduce to the function type X → Y definitionally (a Mathlib Quiver.Hom/ihom defeq obstruction), so the concrete bijections are the faithful, transparent certification of the same content.

The Cartesian-closed structure of finite sets (finiteness load-bearing) #

@[instance_reducible]

Terminal universal property: exactly one morphism Z → 1.

Equations
theorem ReflectiveSubsystems.prod_finite (X Y : Type u) [Finite X] [Finite Y] :
Finite (X × Y)

Binary products of finite objects are finite.

def ReflectiveSubsystems.prodUniversal (Z X Y : Type u) :
(Z → X × Y) ≃ (Z → X) × (Z → Y)

Product universal property as a bijection: Hom(Z, X×Y) ≃ Hom(Z,X) × Hom(Z,Y).

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem ReflectiveSubsystems.exp_finite (X Y : Type u) [Finite X] [Finite Y] :
    Finite (X → Y)

    Exponentials of finite objects are finite — the crux of the finite-set CCC that the Type stand-in could not express (finite sets are closed under function spaces).

    def ReflectiveSubsystems.expCurryingType (Z X Y : Type u) :
    (Z × X → Y) ≃ (Z → X → Y)

    Exponential universal property (currying): Hom(Z×X, Y) ≃ Hom(Z, Yˣ).

    Equations
    Instances For
      def ReflectiveSubsystems.eval (X Y : Type u) :
      (X → Y) × X → Y

      Evaluation morphism eval : Yˣ × X → Y.

      Equations
      Instances For
        def ReflectiveSubsystems.functionsAsData (X Y : Type u) :
        (PUnit.{u + 1} → X → Y) ≃ (X → Y)

        "Functions as data" (§4.1, §4.3): a morphism X → Y is exactly a point (global element 1 → Yˣ) of the exponential object — morphisms of Rep(S) are values of an object of Rep(S).

        Equations
        Instances For

          The bounded recursor as a finite object of the SAME category #

          @[reducible, inline]

          The recursor object N_M is the finite object ZMod (M+1) of the finite-set category.

          Equations
          Instances For

            Definition 6.1, faithful & unified (CCC of finite sets ∧ recursor object) #

            Definition 6.1, unified on one carrier. A subsystem with internal-theory Gödel number gTS is reflective when the ambient category of finite sets is genuinely Cartesian closed (recorded by exponential closure of finite objects — the non-trivial finite-CCC fact) AND it contains a bounded recursor object of depth > gTS. Both conjuncts live on finite sets — one carrier, not two disjoint stand-ins.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              The unified Definition 6.1 is satisfiable for every gTS (non-vacuity), on ONE carrier: the finite-set CCC (exponential closure) together with cyclicParamNNO (gTS+1) of depth gTS+1 > gTS on the finite object ZMod (gTS+2). Unlike the earlier Type stand-in, the CCC conjunct genuinely uses finiteness, and the recursor is an object of the same category.

              The bounded recursor as an INITIAL object (relativized universal property, [Decoupling] §5) #

              We upgrade the orbit-form bounded recursor (ReflectiveSubsystems.ParamNNO.bounded_recursor) to a genuine categorical universal property, reusing Mathlib's CategoryTheory.Limits.IsInitial.

              Honesty constraint (ReflectiveSubsystems.no_true_nno). ReflectiveSubsystems.no_true_nno proves that no finite state space W carries a true natural-numbers object — the orbit n ↦ succ^[n] zero must cycle. So N_M is not an initial 𝟙 ⊕ (·)-algebra (that object is ℕ), and we deliberately do not state initiality of an Endofunctor.Algebra. Instead we state initiality in the category of depth-≤ M recursion cones: objects are maps h : W → A satisfying the depth-M recursion, morphisms are "agree on the orbit N_M". This is a relativized universal property — canonical up to depth M, exactly the strength ReflectiveSubsystems.no_true_nno permits — and there the paper recursor is the initial object.

              structure ReflectiveSubsystems.ParamNNO.RecCone {W : Type u_1} [Fintype W] (P : ParamNNO W) {A : Type u_2} (a : A) (f : A → A) :
              Type (max u_1 u_2)

              A recursion cone over (A, a, f) for a depth-M parameterized NNO P: a map h : W → A together with a proof P.Recurses a f h that it satisfies the depth-M recursion. These are the objects of the relativized universal property (see the module note and no_true_nno).

              • h : W → A

                The underlying recursor map W → A.

              • recurses : P.Recurses a f self.h

                Proof that h satisfies the depth-M recursion P.Recurses a f h.

              Instances For
                @[instance_reducible]
                instance ReflectiveSubsystems.ParamNNO.instPreorderRecCone {W : Type u_1} [Fintype W] {P : ParamNNO W} {A : Type u_2} {a : A} {f : A → A} :

                The thin preorder on recursion cones: c ≤ c' iff the two cones agree on the whole orbit N_M (h (succ^[k] zero) for every k ≤ M). Reflexivity/transitivity are just equality on each orbit point, so this is a Preorder; via Mathlib's Preorder.smallCategory it makes RecCone P a f a (thin) category whose morphisms encode exactly the depth-M agreement of bounded_recursor.

                Equations
                • One or more equations did not get rendered due to their size.
                noncomputable def ReflectiveSubsystems.ParamNNO.recursorCone {W : Type u_1} [Fintype W] (P : ParamNNO W) {A : Type u_2} (a : A) (f : A → A) :
                P.RecCone a f

                The paper's bounded recursor (the witness of bounded_recursor's existence half) packaged as a cone object of RecCone P a f.

                Equations
                Instances For
                  noncomputable def ReflectiveSubsystems.ParamNNO.recursorConeIsInitial {W : Type u_1} [Fintype W] (P : ParamNNO W) {A : Type u_2} (a : A) (f : A → A) :

                  Headline. The paper recursor is an initial object of the category of depth-≤ M recursion cones: for every cone c there is a (unique) morphism recursorCone ⟶ c, namely the depth-M agreement supplied by bounded_recursor's uniqueness half; uniqueness is automatic because the category is thin (hom-types are Props). This makes the recursor a canonical object, not merely an orbit, while respecting no_true_nno: the property is relativized to depth ≤ M, not initiality among ℕ-algebras (no finite W carries a true NNO).

                  Equations
                  Instances For
                    theorem ReflectiveSubsystems.ParamNNO.recursorCone_canonical {W : Type u_1} [Fintype W] (P : ParamNNO W) {A : Type u_2} (a : A) (f : A → A) (c : P.RecCone a f) (hc : Nonempty (CategoryTheory.Limits.IsInitial c)) (k : ℕ) :
                    k ≤ P.depth → c.h (P.succ^[k] P.zero) = (P.recursorCone a f).h (P.succ^[k] P.zero)

                    Canonicity ("not merely an orbit"). Any other initial cone c agrees with the paper recursor on the whole orbit N_M: initiality of c gives a morphism c ⟶ recursorCone, which is (leOfHom) exactly the depth-M agreement. So the recursor is determined by the relativized universal property, up to the thin category's unique isomorphism.

                    theorem ReflectiveSubsystems.ParamNNO.bounded_recursor_of_isInitial {W : Type u_1} [Fintype W] (P : ParamNNO W) {A : Type u_2} (a : A) (f : A → A) :
                    (∃ (h : W → A), P.Recurses a f h) ∧ ∀ (h₁ h₂ : W → A), P.Recurses a f h₁ → P.Recurses a f h₂ → ∀ k ≤ P.depth, h₁ (P.succ^[k] P.zero) = h₂ (P.succ^[k] P.zero)

                    The old orbit-form bounded_recursor is re-derivable from the categorical formulation, so the two are inter-derivable: existence is the recursorCone object, and uniqueness-on-N_M is initiality (each recursor becomes a cone, and the unique maps out of recursorCone force agreement).