Documentation

ReflectiveSubsystems.RecursorCoproductAlgebra

The recursor's initial algebra on the genuine carrier Asm ([Decoupling] ยง4, ยง5) #

The endofunctor X โ†ฆ ๐Ÿ™ โŠ• X on the realizability category RealizabilityCCC.Asm, built from its finite coproducts (Realizability/RealizabilityCoproduct.lean), and the discriminating initial ๐Ÿ™ โŠ• (ยท)-algebra of ReflectiveSubsystems/RecursorAlgebra.lean lifted onto that carrier: succEndoAsm, SatAlgAsm M, and boundedInitialAlgebraAsmIsInitial, initial only in the saturating subcategory.

FV-18 on the genuine carrier: the endofunctor X โ†ฆ ๐Ÿ™ โŠ• X and its initial algebra #

With coproducts in hand, the endofunctor X โ†ฆ ๐Ÿ™ โŠ• X (๐Ÿ™ = terminalAsm) exists on Asm, so the ReflectiveSubsystems/RecursorAlgebra.lean discriminating initial ๐Ÿ™ โŠ• (ยท)-algebra (FV-18) can be restated on the same carrier as the CCC (RealizabilityCCC.lean) and the ยง6.3 checkers โ€” no longer the Type stand-in. As in FV-18 the initial object lives only in the saturating subcategory (a finite carrier is never a true NNO; no_true_nno), and the successor saturates rather than wraps.

The endofunctor F X = ๐Ÿ™ โŠ• X on Asm (๐Ÿ™ = terminalAsm). Its functorial action on a morphism g is [inl, inr โˆ˜ g] โ€” built from the copairing universal property, so trackability is inherited.

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

    The basepoint z = str (inl โ‹†) of an F-algebra on Asm.

    Equations
    Instances For

      The successor s a = str (inr a) of an F-algebra on Asm.

      Equations
      Instances For

        Saturation on Asm-algebras: the z-orbit reaches an s-fixed point by step M.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[reducible, inline]

          The full subcategory of Asm-algebras satisfying Sat M (honest algebra-hom morphisms โ€” not thin).

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem ReflectiveSubsystems.AssemblyRecursorAlgebra.Sat.iterate_succ (M : โ„•) (alg : CategoryTheory.Endofunctor.Algebra succEndoAsm) (hsat : Sat M alg) (k : Fin (M + 1)) :
            sA alg ((sA alg)^[โ†‘k] (zA alg)) = (sA alg)^[min (โ†‘k + 1) M] (zA alg)

            The successor-square identity from Sat (the Asm analogue of TypeRecursorAlgebra.Sat.iterate_succ).

            A constant-0 code (r ยท n = 0 for all n), the realizer of the algebra basepoint.

            The constant-0 morphism ๐Ÿ™ โŸถ finAsm M (the algebra basepoint as a realized map).

            Equations
            Instances For

              The bounded algebra on Asm. Carrier finAsm M; structure map the copairing of the basepoint ๐Ÿ™ โŸถ finAsm M and the saturating successor finAsm M โŸถ finAsm M โ€” so it lives on the genuine PCA-realizability carrier.

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

                The candidate algebra is orbit-saturating.

                The unique morphism out: the bounded recursor k โ†ฆ sแต z #

                The underlying map of the unique morphism boundedAlgAsm M โŸถ alg: the bounded recursor k โ†ฆ sแต z (the saturating Fin counterpart of cyclicParamNNO).

                Equations
                Instances For

                  The bounded recursor as a realized morphism finAsm M โŸถ alg.a โ€” tracked by finite-domain lookup (trackable_of_fin_dom), so it is a genuine morphism of the realizability category.

                  Equations
                  Instances For

                    The bounded recursor is an algebra homomorphism boundedAlgAsm M โŸถ alg, for every saturating alg (existence half of initiality). The pointwise recursor square uses Sat.iterate_succ at the saturating endpoint.

                    Equations
                    Instances For

                      Uniqueness: a genuine orbit induction (not Subsingleton) #

                      Uniqueness on the orbit (a genuine induction): any algebra hom g : boundedAlgAsm M โŸถ alg has g.f.1 โŸจn, _โŸฉ = sโฟ z. Base: inl-square; step: inr-square at n < M (there the saturating successor is the honest n+1).

                      Consequently g.f = recMor M alg for every algebra hom g (the underlying maps agree on the whole orbit Fin (M+1)), so the mediating morphism is unique.

                      The discriminating initiality on the genuine carrier #

                      FV-18 on the genuine carrier (headline). boundedInitialAlgebraAsm M is a genuine IsInitial object of the saturating full subcategory SatAlgAsm M of Endofunctor.Algebra succEndoAsm, where succEndoAsm is the endofunctor X โ†ฆ ๐Ÿ™ โŠ• X on the realizability category Asm (the same carrier as the CCC of RealizabilityCCC.lean). Discharged via IsInitial.ofUniqueHom: existence is the recursor hom toSatHomAsm, uniqueness is the orbit induction hom_f_eq_rec.

                      Honesty (as in the Type-level FV-18): morphisms here are honest algebra homomorphisms (tracked functions commuting with the structure map), not Props, so uniqueness is a real induction over the orbit; and initiality holds only in the saturating subcategory โ€” the unrestricted initial ๐Ÿ™ โŠ• (ยท)-algebra is the infinite โ„•, and no_true_nno forbids a true NNO on a finite carrier (recorded by boundedAlgAsm_str_not_injective: the structure map is not injective, hence not a Lambek iso).

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

                        Honesty (Lambek does not apply here). The structure map of boundedAlgAsm M is not injective (its domain ๐Ÿ™ โŠ• Fin (M+1) has M+2 elements, its codomain M+1), hence not an isomorphism. So the finite initial object of the saturating subcategory is not a Lambek fixed point โ€” the same finite-capacity obstruction (no_true_nno) as the Type-level FV-18.