Documentation

ISAR.TensorSemantics

Term model: tensors are ITerms; extensional equality is IRed-joinability (confluence is IRed_confluence). Combinators B/C/W are SKI encodings so dup/swap/comp β-laws are theorems, not axioms.

@[reducible, inline]
Equations
Instances For
    Equations
    Instances For
      theorem ISAR.ExtEq.symm {t u : TensorSpace} :
      ExtEq t uExtEq u t
      theorem ISAR.ExtEq.trans {t u w : TensorSpace} (h1 : ExtEq t u) (h2 : ExtEq u w) :
      ExtEq t w

      C = S (S (K B) S) (K K).

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem ISAR.t_app_congr {t1 t2 u1 u2 : TensorSpace} (ht : ExtEq t1 t2) (hu : ExtEq u1 u2) :
        ExtEq (t_app t1 u1) (t_app t2 u2)
        theorem ISAR.t_app_congr_left {t1 t2 u : TensorSpace} (h : ExtEq t1 t2) :
        ExtEq (t_app t1 u) (t_app t2 u)
        theorem ISAR.t_app_congr_right {t u1 u2 : TensorSpace} (h : ExtEq u1 u2) :
        ExtEq (t_app t u1) (t_app t u2)
        theorem ISAR.t_comp_red (f g x : TensorSpace) :
        IRed (t_app (t_app (t_app t_comp f) g) x) (t_app f (t_app g x))
        theorem ISAR.t_comp_beta (f g x : TensorSpace) :
        ExtEq (t_app (t_app (t_app t_comp f) g) x) (t_app f (t_app g x))
        theorem ISAR.t_dup_red (f x : TensorSpace) :
        IRed (t_app (t_app t_dup f) x) (t_app (t_app f x) x)
        theorem ISAR.t_dup_beta (f x : TensorSpace) :
        ExtEq (t_app (t_app t_dup f) x) (t_app (t_app f x) x)
        theorem ISAR.t_swap_red (f x y : TensorSpace) :
        IRed (t_app (t_app (t_app t_swap f) x) y) (t_app (t_app f y) x)
        theorem ISAR.t_swap_beta (f x y : TensorSpace) :
        ExtEq (t_app (t_app (t_app t_swap f) x) y) (t_app (t_app f y) x)
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem ISAR.t_s_beta (x y z : TensorSpace) :
          ExtEq (t_app (t_app (t_app t_sₛ x) y) z) (t_app (t_app x z) (t_app y z))
          theorem ISAR.denot_sound {t u : ITerm} (h : IStep t u) :
          ExtEq (denot t) (denot u)
          theorem ISAR.denot_sound_red {t u : ITerm} (h : IRed t u) :
          ExtEq (denot t) (denot u)
          noncomputable def ISAR.denot_ext (t : ITerm) :
          Equations
          Instances For

            The final semantic map from Invariant Layer quotient classes into extensional tensors.

            Equations
            Instances For
              inductive ISAR.LEq :
              LTermLTermProp

              Operational equivalence on lambda terms, defined as the equivalence relation generated by LStep.

              Instances For
                @[implicit_reducible]
                Equations

                The operational quotient of lambda terms.

                Equations
                Instances For
                  theorem ISAR.lambda_denot_sound (t u : LTerm) (h : LEq t u) :

                  The semantic map from the operational quotient of lambda terms into extensional tensors.

                  Equations
                  Instances For
                    Equations
                    Instances For
                      theorem ISAR.lapp_congruence_left (t1 t2 u : LTerm) (h : LEq t1 t2) :
                      LEq (t1.app u) (t2.app u)
                      theorem ISAR.lapp_congruence_right (t u1 u2 : LTerm) (h : LEq u1 u2) :
                      LEq (t.app u1) (t.app u2)
                      theorem ISAR.lapp_congruence (t1 t2 u1 u2 : LTerm) (ht : LEq t1 t2) (hu : LEq u1 u2) :
                      LEq (lapp_raw t1 u1) (lapp_raw t2 u2)

                      Application of quotient classes in LambdaQuotient.

                      Equations
                      Instances For
                        noncomputable def ISAR.t_app_ext (t u : ExtTensor) :

                        Lifted application in ExtTensor.

                        Equations
                        Instances For

                          Compilation is a homomorphism for application up to tensor extensional equivalence.

                          theorem ISAR.separation_lemma {A B : TensorSpace} (x y : TensorSpace) (h_neq : ¬ExtEq (t_app (t_app A x) y) (t_app (t_app B x) y)) :
                          theorem ISAR.t_K_beta (x y : TensorSpace) :
                          ExtEq (t_app (t_app t_K x) y) x
                          theorem ISAR.t_K2_beta (x y z : TensorSpace) :
                          ExtEq (t_app (t_app (t_app t_K2 x) y) z) x
                          theorem ISAR.adequacy_norm_konst (M N : LTerm) (hM : LRed M (LTerm.var 0).abs) (hN : LRed N (LTerm.var 1).abs.abs) :
                          theorem ISAR.adequacy_konst_k2 (M N : LTerm) (hM : LRed M (LTerm.var 1).abs.abs) (hN : LRed N (LTerm.var 2).abs.abs.abs) :
                          theorem ISAR.adequacy_norm_k2 (M N : LTerm) (hM : LRed M (LTerm.var 0).abs) (hN : LRed N (LTerm.var 2).abs.abs.abs) :
                          inductive ISAR.Fam3 :
                          Instances For