Documentation

Linglib.Data.Generalizations.Projectivity

Generalizations.Projectivity — cross-paper data pool #

The Gradient Projection Principle of [TBD18] — content projects to the extent that it is not at-issue — predicts a per-expression projectivity from its at-issueness. This file is the theory-neutral pool against which rival accounts of that relationship are run.

The empirical generalisation (projectivity is gradient and tracks not-at-issueness across triggers) predates any one formal account and spans ≥ 2 papers contributing generated Data.Examples rows ([TBD18]: 9 + 12 English expressions; [SB24]: occasion + psychological verbs in German), with ≥ 2 rival accounts run against the pool in their study files (gppProjection and pottsProjection in Studies/TonhauserBeaverDegen2018).

Main declarations #

Implementation notes #

The means are continuous (proportions in [0, 1]), so an account is run over allData by computation; the kernel-checkable content is each account's systematic error, proved in the study files (string-keyed paperFeatures and comparison do not reduce in the kernel). Papers may store either atIssueness or notAtIssueness in paperFeatures; readAtIssueness normalises both to at-issueness (the accounts' input). Import rule (Core + Data only): accounts and divergence theorems live in the consuming study files.

An observed datum: mean projectivity and at-issueness for one expression, with its originating SourceRef.

Instances For

    Not-at-issueness is the complement of at-issueness — the quantity the GPP equates with projectivity.

    Equations
    Instances For

      LinguisticExample adapter #

      def Generalizations.Projectivity.parsePercent (s : String) :
      Option (Set.Icc 0 1)

      Parse a percent-integer string (e.g. "96") into Set.Icc (0 : ℚ) 1; none if non-numeric or out of range.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Generalizations.Projectivity.readAtIssueness (pf : List (String × String)) :
        Option (Set.Icc 0 1)

        Read at-issueness from paperFeatures: directly from the atIssueness key, or as the complement of notAtIssueness.

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

          Lift a LinguisticExample to a ProjectionDatum via its expression, projectivity, and (atIssueness or notAtIssueness) keys; none if any is missing.

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

            Pool #

            The pooled cross-paper projection data. Each rival account — a map from at-issueness to predicted projectivity on Set.Icc (0 : ℚ) 1 — is run against this list in the study files.

            Equations
            Instances For

              Scoring #

              def Generalizations.Projectivity.predictionError (acc : (Set.Icc 0 1)(Set.Icc 0 1)) (d : ProjectionDatum) :

              An account's absolute error on an observation: the gap between its predicted projectivity (from the observed at-issueness) and the observed projectivity.

              Equations
              Instances For
                def Generalizations.Projectivity.predictsWithin (ε : ) (acc : (Set.Icc 0 1)(Set.Icc 0 1)) (d : ProjectionDatum) :

                An account predicts an observation within tolerance ε.

                Equations
                Instances For
                  @[instance_reducible]
                  instance Generalizations.Projectivity.instDecidablePredictsWithin (ε : ) (acc : (Set.Icc 0 1)(Set.Icc 0 1)) (d : ProjectionDatum) :
                  Decidable (predictsWithin ε acc d)
                  Equations