An admissible semantic kernel (view) over the invariant quotient. It consists of:
- A carrier type.
- A view mapping fragment terms to the carrier.
- An equivalence relation representing observational equivalence in the view.
- Soundness: operational equivalence in the fragment implies equivalence in the view.
- A decoding/reconstruction mapping back to the fragment.
- Coherence axioms:
- decode (view M) ≈ M
- view (decode c) ≈ c
- c1 ≈ c2 implies decode c1 ≈ decode c2
- Carrier : Type
- view_of : ISKSubtype → self.Carrier
- is_equiv : Equivalence self.view_eq
- sound (t u : ISKSubtype) : OperEq t u → self.view_eq (self.view_of t) (self.view_of u)
- decode : self.Carrier → ISKSubtype
- decode_view (t : ISKSubtype) : OperEq (self.decode (self.view_of t)) t
Instances For
The canonical ISAR quotient presentation itself as a Kernel.
Equations
- ISAR.ISAR_Kernel = { Carrier := ISAR.ISKSubtype, view_of := id, view_eq := ISAR.OperEq, is_equiv := ⋯, sound := ⋯, decode := id, decode_view := ⋯, view_eq_decode := ⋯, decode_eq := ⋯ }
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
A structure-preserving morphism between semantic kernels. Must preserve the view mapping and map equivalent carrier elements to equivalent elements.
- hom_view (t : ISKSubtype) : K2.view_eq (self.hom (K1.view_of t)) (K2.view_of t)
Instances For
The canonical structure-preserving morphism from any Kernel K into ISAR_Kernel.
Equations
- ISAR.canonical_hom K = { hom := K.decode, hom_view := ⋯, hom_congr := ⋯ }
Instances For
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
- ISAR.HomEquiv K f g = ∀ (c : K.Carrier), ISAR.OperEq (f.hom c) (g.hom c)
Instances For
Setoid instance for quotienting morphism space modulo observational equivalence.
Equations
- ISAR.homSetoid K = { r := ISAR.HomEquiv K, iseqv := ⋯ }
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.