Documentation

Linglib.Theories.Semantics.Entailment.Polarity

@[reducible, inline]

IsUpwardEntailing is an abbreviation for Monotone.

A context function f : Set World → Set World is upward entailing if it preserves the ordering: If p ≤ q, then f(p) ≤ f(q).

Equations
Instances For
    @[reducible, inline]

    IsDownwardEntailing is an abbreviation for Antitone.

    A context function f : Set World → Set World is downward entailing if it reverses the ordering: If p ≤ q, then f(q) ≤ f(p).

    Equations
    Instances For

      UE ∘ UE = UE

      DE ∘ DE = UE (double negation).

      UE ∘ DE = DE

      DE ∘ UE = DE

      def Semantics.Entailment.Polarity.isUpwardEntailing (f : Set WorldSet World) [(p : Set World) → [DecidablePred p] → DecidablePred (f p)] (tests : List (Set World × Set World)) :

      Check if f is upward entailing on given test cases (decidable approximation).

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Semantics.Entailment.Polarity.isDownwardEntailing (f : Set WorldSet World) [(p : Set World) → [DecidablePred p] → DecidablePred (f p)] (tests : List (Set World × Set World)) :

        Check if f is downward entailing on given test cases (decidable approximation).

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

          DE contexts reverse scalar strength.

          Material conditional with fixed consequent: "If _, then c"

          Equations
          Instances For

            Conditional consequent is UE.

            A grounded UE polarity carries proof that a context function is monotone.

            Instances For

              A grounded DE polarity carries proof that a context function is antitone.

              Instances For

                A grounded polarity is either UE or DE, with proof.

                Instances For
                  def Semantics.Entailment.Polarity.mkUpward (ctx : Set WorldSet World) (h : Monotone ctx) :
                  Equations
                  Instances For
                    def Semantics.Entailment.Polarity.mkDownward (ctx : Set WorldSet World) (h : Antitone ctx) :
                    Equations
                    Instances For

                      Compose two grounded polarities, with proof that the composition has the right property.

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

                        Grounded polarity composition agrees with ContextPolarity.compose.

                        Double DE gives UE (grounded version).