Documentation

Linglib.Theories.Semantics.Montague.Composition

Access to lexical/terminal content.

  • getTerminal : SOption String

    Get terminal content if this is a leaf node

Instances

    Binary decomposition for Functional Application and Predicate Modification.

    • getBinaryChildren : SOption (S × S)

      Decompose into two children if this is a binary node

    Instances

      Unary decomposition for H&K's Non-Branching Nodes rule.

      • getUnaryChild : SOption S

        Get single child if this is a unary node

      Instances

        Binding sites for λ-abstraction.

        • getBinder : SOption ( × S)

          Get binding index and body if this is a binder

        Instances

          Access to semantic types, parameterized over the type system T.

          • getType : SOption T

            Get the semantic type of this node

          Instances
            Instances For

              TN: lexical lookup.

              Equations
              Instances For
                def Semantics.Montague.Composition.interpFA {m : Model} {σ τ : Ty} (f : m.interpTy (σ τ)) (x : m.interpTy σ) :

                FA: ⟦β⟧(⟦γ⟧)

                Equations
                Instances For

                  Try FA in both orders.

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

                    PM: combine two ⟨e,t⟩ predicates.

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

                      Generic recursive interpretation for any syntax via SemanticStructure.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        Instances For
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Equations
                            Instances For
                              theorem Semantics.Montague.Composition.interpFA_type {m : Model} {σ τ : Ty} (f : m.interpTy (σ τ)) (x : m.interpTy σ) :
                              interpFA f x = f x
                              theorem Semantics.Montague.Composition.tryPM_preserves_type {m : Model} (d1 d2 : TypedDenot m) (h1 : d1.ty = (Ty.e Ty.t)) (h2 : d2.ty = (Ty.e Ty.t)) :
                              ∃ (d : TypedDenot m), tryPM d1 d2 = some d d.ty = (Ty.e Ty.t)
                              theorem Semantics.Montague.Composition.interpBinary_eq {m : Model} (d1 d2 : TypedDenot m) :
                              interpBinary d1 d2 = (tryFA d1 d2).orElse fun (x : Unit) => tryPM d1 d2