Documentation

ReflectiveSubsystems.CartesianClosed

Cartesian-closedness of a stand-in for Rep(S) ([Decoupling] §4) #

Provenance: [Decoupling], §4.1 (objects/morphisms of Rep(S)), §4.2 (products), §4.3 (exponentials — "this is where functions become data", the heart), §4.4 (the Rule-30 example), §4.5 (what is / isn't constructed). Built on Mathlib's MonoidalClosed (cartesian-closed = monoidal-closed over the cartesian monoidal structure).

Status: PROVED. This is the CCC/exponential machinery Rep(S) needs, exhibited on a stand-in (Type u) — the CCC conjunct for the eventual full-ReflectiveType assembly.

Stand-in status (read this — Type u is NOT Rep(S)) #

Rep(S)'s objects are finite types ⊆ {0,1}^|s_work| and its morphisms are s_code-implemented computable functions (under program-equivalence). Mathlib's FintypeCat has no MonoidalCategory instance, so a genuinely-finite CCC would be build-from-scratch — out of scope per §4.5. We use Type u, which ships the cartesian-closed structure with the right shape (objects = types, morphisms = functions, exponential = function object), and exhibit the §4.3/§4.5 content — not the content-free bare instance. The Fin m/Fin n instantiation exhibits the finite-types / finitely-many-programs flavor. This file establishes "the CCC/exponential machinery Rep(S) needs, on a stand-in", which is the correct role for the CCC conjunct.

Superseded as the genuine carrier by RepFintype.lean (the finite-set CCC, FV-10) and RealizabilityCCC.lean (the realizability CCC, FV-12); retained as the CCC stand-in that Reflective.lean assembles.

What this DOES establish #

What this does NOT establish (flagged / other steps) #

Hypotheses: paper-stated vs added #

Proposition 4.3 (stand-in): the category of types is Cartesian closed — terminal object, binary products (the cartesian ⊗), and exponentials (ihom). Type u stands in for Rep(S).

§4.3, the exponential's universal property (evaluation + currying as a bijection): maps A ⊗ Y → X correspond to maps Y → (A ⟹ X). The forward direction is currying; its inverse uses evaluation. This is the categorical content of the functions-as-data architecture.

Equations
Instances For

    §4.5, functions as data: morphisms A → B are in bijection with the global elements of the exponential object (A ⟹ B) (maps from the unit 𝟙_, the terminal object). This is exactly "morphisms of Rep(S) are described by elements of a specific object of Rep(S)".

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

      §4.4 (miniature of "[State ⇒ State] has ≈ 2²⁰⁰ elements"): for finite objects the exponential has finitely many global elements — finitely many "programs".