Documentation

ReflectiveSubsystems.CapacityLayer

Rep(S) "up to capacity": the finite full subcategory and the honest non-closure (FV-14) #

Provenance: [Decoupling] §4.2–§4.3 — Rep(S) is "a full subcategory of finite sets, Cartesian closed up to capacity", presented as the capacity filtration Rep(S) = colim_d Rep(S)_{≤d}; global closure fails because the exponential [T₁ ⇒ T₂] has |T₂|^{|T₁|} elements, overflowing 2^{|s_work|}.

This file makes "up to capacity" precise on the genuine realizability CCC Asm (FV-12/FV-13):

Honest residual (NOT closed here) #

The cardinality side of "global closure fails" is machine-checked below. The realizer-length side of §4.3 (a generic exponential element needs a realizer of length ~2^{|s_work|}, by the Shannon/Li–Vitányi counting bound) rests on a categorical treatment of Kolmogorov complexity, which does not exist (the paper records this as an open method; cf. KolmogorovComplexity.lean for the non-categorical counting infrastructure). So FV-14 earns the element-count non-closure, not the realizer-length non-closure.

§4.1/§4.3 — the capacity predicate on the realizability CCC Asm ("up to capacity"): the object's carrier is finite and encodes into s work bits (≤ 2^s elements, i.e. ⊆ {0,1}^s).

Equations
Instances For
    theorem ReflectiveSubsystems.FitsIn.mono {A : RealizabilityCCC.Asm} {s s' : ℕ} (h : FitsIn A s) (hss : s ≤ s') :
    FitsIn A s'

    The capacity predicate is monotone in the bit budget: an object that fits in s work bits fits in any larger budget s' ≥ s (Nat.card A ≤ 2^s ≤ 2^{s'}).

    @[reducible, inline]

    §4.2/§4.3 — Rep(S) is the finite full subcategory of the realizability CCC Asm: the objects that fit in the work memory s, with all Asm-morphisms between them. A genuine CategoryTheory.Category (full subcategory), of which the FV-12 CCC Asm is the un-capacitated ambient.

    Equations
    Instances For
      theorem ReflectiveSubsystems.recursorAsm_fitsIn (M s : ℕ) (h : M + 1 ≤ 2 ^ s) :

      §5.4/§6.3 — the bounded-recursor object fits: recursorAsm M (carrier ZMod (M+1)) encodes into s work bits exactly when M + 1 ≤ 2^s — the FV-8 capacity arithmetic (prop_5_4), now on the unified Asm carrier (FV-13). At the degree-2 budget this is the linear 2n capacity.

      theorem ReflectiveSubsystems.prodAsm_fitsIn {A B : RealizabilityCCC.Asm} {sa sb : ℕ} (hA : FitsIn A sa) (hB : FitsIn B sb) :

      §4.2/§4.3 — products stay within the capacity filtration. If A fits in sₐ work bits and B in s_b, then A × B fits in sₐ + s_b (|A × B| = |A|·|B|): the controlled growth that makes Rep(S) = colim_d Rep(S)_{≤d} a genuine filtration rather than a single closed level.

      [Decoupling] §4.2 — coproducts stay within the capacity filtration. If A fits in sₐ work bits and B in s_b, then the tagged-union coproduct A ⊕ B fits in max sₐ s_b + 1 (|A ⊕ B| = |A| + |B| ≤ 2^{sₐ} + 2^{s_b} ≤ 2·2^{max sₐ s_b} = 2^{max sₐ s_b + 1}): the additive companion to prodAsm_fitsIn, keeping Rep(S) = colim_d Rep(S)_{≤d} a genuine filtration under finite coproducts.

      [Decoupling] §4.2 — the terminal object fits in 0 work bits (|𝟙| = 1 ≤ 2^0).

      [Decoupling] §4.2 — comprehension subobjects cost no capacity. The comprehension subobject { a : A | P a } fits in every budget A fits in (|{a | P a}| ≤ |A|, Finite.card_subtype_le): the encoding is inherited from A, so carving out a decidable predicate never grows the object.

      [Decoupling] §4.2 — the subobject classifier Bool = 𝟙 ⊕ 𝟙 fits in exactly one work bit (|Bool| = 2 ≤ 2^1), the tag-bit accounting of coprodAsm_fitsIn at s₁ = s₂ = 0.

      [Decoupling] §4.2 — the power object [T ⇒ Bool] fits in s work bits iff |T| ≤ s. The realizability exponential into the classifier has carrier the trackable functions T → Bool, which — T being a finite object out of which every function is a morphism (AllTrackable) — is all of T → Bool, so |[T ⇒ Bool]| = 2^{|T|}; then 2^{|T|} ≤ 2^s ↔ |T| ≤ s. This is the exact-cardinality higher-order threshold of §4.2: power objects exist within capacity only for objects at most one element per work bit.

      theorem ReflectiveSubsystems.exp_card_overflow (s : ℕ) (hs : 1 ≤ s) :
      ∃ (α : Type) (x : Fintype α), Nat.card α ≤ 2 ^ s ∧ 2 ^ s < Nat.card (α → α)

      §4.3 — global Cartesian closure FAILS on capacity (cardinality) grounds. For every capacity s ≥ 1 there is a fitting object α (|α| = 2^s ≤ 2^s) whose exponential — the function space α → α, with |α → α| = |α|^{|α|} = (2^s)^{2^s} (§4.3's |T₂|^{|T₁|}) — overflows 2^s. So no fixed work memory is closed under the exponential, even though each exponential remains a perfectly good finite set. (This α → α is exactly §4.3's function-space exponential |T₂|^{|T₁|}. For finite assemblies every function is trackable, so the realizability exponential expAsm α α has the same carrier α → α and overflows identically — that coincidence is true but not separately formalized here, so we state the non-closure about the function space, the §4.3 quantity.)