Documentation

Linglib.Features.ScopeTypes

Scope Types #

Theory-neutral data types for scope readings and preferences.

A scope reading: an ordering of scope-taking elements.

  • ordering : List String

    Identifiers for scope-taking elements, in scope order (widest first)

Instances For
    def ScopeTheory.instDecidableEqScopeReading.decEq (x✝ x✝¹ : ScopeReading) :
    Decidable (x✝ = x✝¹)
    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def ScopeTheory.ScopeReading.surface (elements : List String) :

        The surface scope reading (linear order = scope order)

        Equations
        Instances For
          def ScopeTheory.ScopeReading.inverse (elements : List String) :

          Reverse (inverse) scope reading

          Equations
          Instances For

            The set of available scope readings for a form.

            • readings : List ScopeReading

              All available scope readings

            • nonempty : self.readings []

              At least one reading must be available

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

                Singleton: only one reading available

                Equations
                Instances For

                  Binary: exactly two readings (surface and inverse)

                  Equations
                  Instances For

                    Check if a specific reading is available

                    Equations
                    Instances For

                      Is the scope ambiguous (more than one reading)?

                      Equations
                      Instances For

                        A ranked preference over scope readings.

                        • ranking : List ScopeReading

                          Readings ranked by preference (most preferred first)

                        • scores : List Float

                          Scores for each reading (higher = more preferred)

                        • aligned : self.ranking.length = self.scores.length

                          Rankings and scores must align

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

                            Specialized interface for binary scope ambiguity.

                            • form : α

                              The form/derivation

                            • scopeTaker1 : String

                              First scope-taker (surface-wide)

                            • scopeTaker2 : String

                              Second scope-taker (surface-narrow)

                            Instances For
                              def ScopeTheory.instReprBinaryScopeForm.repr {α✝ : Type} [Repr α✝] :
                              BinaryScopeForm α✝NatStd.Format
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                @[implicit_reducible]
                                instance ScopeTheory.instReprBinaryScopeForm {α✝ : Type} [Repr α✝] :
                                Repr (BinaryScopeForm α✝)
                                Equations

                                Binary scope availability: surface only, inverse only, or both.

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