Documentation

ISAR.KernelCategory

structure ISAR.Kernel :

An admissible semantic kernel (view) over the invariant quotient. It consists of:

  1. A carrier type.
  2. A view mapping fragment terms to the carrier.
  3. An equivalence relation representing observational equivalence in the view.
  4. Soundness: operational equivalence in the fragment implies equivalence in the view.
  5. A decoding/reconstruction mapping back to the fragment.
  6. Coherence axioms:
    • decode (view M) ≈ M
    • view (decode c) ≈ c
    • c1 ≈ c2 implies decode c1 ≈ decode c2
Instances For

    Observational equivalence setoid on the carrier of a Kernel.

    Equations
    Instances For
      @[reducible, inline]

      The canonical ISAR quotient presentation itself as a Kernel.

      Equations
      Instances For

        The computable ISAR kernel parametrized by normalization fuel.

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

          The optimal computable ISAR kernel for linearly-typed terms.

          Equations
          Instances For
            structure ISAR.KernelHom (K1 K2 : Kernel) :

            A structure-preserving morphism between semantic kernels. Must preserve the view mapping and map equivalent carrier elements to equivalent elements.

            Instances For

              The canonical structure-preserving morphism from any Kernel K into ISAR_Kernel.

              Equations
              Instances For
                theorem ISAR.morphism_uniqueness (K : Kernel) (f : KernelHom K ISAR_Kernel) (c : K.Carrier) :
                OperEq (f.hom c) (K.decode c)

                Uniqueness (Terminality) Theorem: Every structure-preserving morphism f : K → ISAR_Kernel from any admissible semantic kernel K into the canonical ISAR presentation is observationally equivalent to the canonical decoding morphism.

                Observational equivalence between morphisms K → ISAR_Kernel.

                Equations
                Instances For
                  @[implicit_reducible]

                  Setoid instance for quotienting morphism space modulo observational equivalence.

                  Equations

                  ISAR Kernel Terminality.

                  The quotient of the morphism space KernelHom K ISAR_Kernel modulo observational equivalence is a singleton (unique existence holds).

                  Proof: Existence follows constructively from canonical_hom K. Uniqueness follows by applying morphism_uniqueness to show that any structure-preserving morphism is observationally equivalent to canonical_hom K (the canonical decoding).

                  False-variant: junk on the carrier, not a disproof of terminality #

                  view_eq := True cannot inhabit Kernel: decode_eq + decode_view would force all terms OperEq-related, contradicting distinct atom NFs.

                  DegenerateKernel still inhabits Kernel by ignoring a Bool tag in view_eq. Terminality holds; observations do not see the tag. This is a regression that the interface does not force view_eq to be equality on Carrier. It is not a disproof of ISAR_Kernel_terminal.

                  theorem ISAR.no_indiscrete_Kernel (K : Kernel) (h : ∀ (c1 c2 : K.Carrier), K.view_eq c1 c2) :

                  An indiscrete view_eq would collapse OperEq; hence no such Kernel.

                  Carrier is ISKSubtype × Bool; view_eq ignores the tag.

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