Documentation

Linglib.Semantics.TypeTheoretic.WitnessQuantification

Witness-set quantification #

[Coo23] [BC81]

Witness-set semantics for natural-language quantifiers: a quantifier q(P, Q) is witnessed by a finite set X of P-individuals satisfying a quantifier-specific cardinality condition, together with evidence that each member of X (or alternatively each member outside X) bears Q. The architecture descends from [BC81]'s notion of witness sets, formulated as type-theoretic predicates in [Coo23] Ch. 7.

This file extracts the framework as reusable substrate. It is consumed by Studies.Cooper2023.Ch7 (Cooper's own deployment) and Studies.LuckingGinzburg2022 (the Referential Transparency Theory of quantification, which uses witness sets as a comparator for its refset/compset/maxset framework).

Main definitions #

Main statements #

Implementation notes #

Extension of a predicate as a Finset #

def Semantics.TypeTheoretic.fullExtFinset {E : Type} [Fintype E] (P : EProp) [DecidablePred P] :
Finset E

The extension [↓P] of a predicate P as a Finset.

Equations
Instances For

    Witness-set predicates #

    structure Semantics.TypeTheoretic.WitnessSet {E : Type} (P : EProp) (X : Finset E) :

    Base witness-set condition ([BC81]): a witness set for P is a subset of [↓P]. Every quantifier-specific witness type extends this condition.

    • subset (a : E) : a XP a
    Instances For
      structure Semantics.TypeTheoretic.IsExistW {E : Type} (P : EProp) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

      existʷ(P): a singleton witness set.

      • subset (a : E) : a XP a
      • card_eq : X.card = 1
      Instances For
        structure Semantics.TypeTheoretic.IsExistPlW {E : Type} (P : EProp) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

        exist_plʷ(P): a plural-some witness set, |X| ≥ 2.

        • subset (a : E) : a XP a
        • card_ge : X.card 2
        Instances For
          def Semantics.TypeTheoretic.IsNoW {E : Type} (_P : EProp) (X : Finset E) :

          noʷ(P): the empty witness set.

          Equations
          Instances For
            def Semantics.TypeTheoretic.IsEveryW {E : Type} [Fintype E] (P : EProp) [DecidablePred P] (X : Finset E) :

            everyʷ(P): the full extension.

            Equations
            Instances For
              structure Semantics.TypeTheoretic.IsMostW {E : Type} [Fintype E] (P : EProp) [DecidablePred P] (θ_num θ_denom : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

              mostʷ(P): proportional, |X| / |[↓P]| ≥ θ_num / θ_denom. Stated as cross-multiplication.

              Instances For
                structure Semantics.TypeTheoretic.IsManyAbsW {E : Type} (P : EProp) (θ : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

                many_aʷ(P): absolute threshold, |X| ≥ θ.

                • subset (a : E) : a XP a
                • card_ge : X.card θ
                Instances For
                  structure Semantics.TypeTheoretic.IsManyPropW {E : Type} [Fintype E] (P : EProp) [DecidablePred P] (θ_num θ_denom : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

                  many_pʷ(P): proportional threshold.

                  Instances For
                    structure Semantics.TypeTheoretic.IsFewAbsW {E : Type} (P : EProp) (θ : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

                    few_aʷ(P): absolute upper bound, |X| ≤ θ.

                    • subset (a : E) : a XP a
                    • card_le : X.card θ
                    Instances For
                      structure Semantics.TypeTheoretic.IsFewPropW {E : Type} [Fintype E] (P : EProp) [DecidablePred P] (θ_num θ_denom : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

                      few_pʷ(P): proportional upper bound.

                      Instances For
                        structure Semantics.TypeTheoretic.IsAFewAbsW {E : Type} (P : EProp) (θ : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

                        a_few_aʷ(P): absolute lower bound (same threshold as few_a, reversed direction).

                        • subset (a : E) : a XP a
                        • card_ge : X.card θ
                        Instances For
                          structure Semantics.TypeTheoretic.IsAFewPropW {E : Type} [Fintype E] (P : EProp) [DecidablePred P] (θ_num θ_denom : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

                          a_few_pʷ(P): proportional lower bound.

                          Instances For
                            structure Semantics.TypeTheoretic.IsCompFewAbsW {E : Type} [Fintype E] (P : EProp) [DecidablePred P] (θ : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

                            Complement witness set for few (absolute): X̄ : few̄ʷ_a(P) iff |X| ≥ |[↓P]| − θ. Predicts COMPSET anaphora.

                            Instances For
                              structure Semantics.TypeTheoretic.IsCompFewPropW {E : Type} [Fintype E] (P : EProp) [DecidablePred P] (θ_num θ_denom : ) (X : Finset E) extends Semantics.TypeTheoretic.WitnessSet P X :

                              Complement witness set for few (proportional).

                              Instances For
                                theorem Semantics.TypeTheoretic.isNoW_iff_empty {E : Type} (P : EProp) (X : Finset E) :
                                IsNoW P X X =

                                noʷ has exactly one witness set: .

                                theorem Semantics.TypeTheoretic.isEveryW_iff {E : Type} [DecidableEq E] [Fintype E] (P : EProp) [DecidablePred P] (X : Finset E) :
                                IsEveryW P X X = fullExtFinset P

                                everyʷ has exactly one witness set: the full extension.

                                General and particular witness conditions #

                                structure Semantics.TypeTheoretic.GeneralWC_Incr {E : Type} (P Q : Ppty E) (isWS : Finset EProp) [DecidableEq E] :

                                General witness condition for monotone-increasing quantifiers ([Coo23] §7.4): a witness set X plus a per-element mapping into Q-evidence.

                                • X : Finset E
                                • witnessOK : isWS self.X
                                • f (a : E) : a self.XQ a
                                Instances For
                                  structure Semantics.TypeTheoretic.GeneralWC_Decr {E : Type} (P Q : Ppty E) (isWS : Finset EProp) [DecidableEq E] :

                                  General witness condition for monotone-decreasing quantifiers: a witness set X plus universal containment of P ∩ Q-entities in X.

                                  • X : Finset E
                                  • witnessOK : isWS self.X
                                  • f (a : E) : Nonempty (P a)Nonempty (Q a)a self.X
                                  Instances For

                                    Particular witness condition for exist(P, Q): a specific individual x witnessing both P and Q. The x-field enables REFSET (singular) anaphora ("A dog barked. It heard an intruder.").

                                    • x : E
                                    • pWit : P self.x
                                    • qWit : Q self.x
                                    Instances For

                                      Particular witness condition for no(P, Q): every P-entity fails to bear Q. With everyʷ(P) as the witness set, predicts MAXSET anaphora ("No dog barked. They were all asleep.").

                                      • f (a : E) : ∀ (a✝ : P a), IsEmpty (Q a)
                                      Instances For
                                        structure Semantics.TypeTheoretic.ParticularWC_FewComp {E : Type} (P Q : Ppty E) [DecidableEq E] :

                                        Particular witness condition for few with complement: a set of P-entities all lacking Q. Predicts COMPSET anaphora ("Few dogs barked. They slept through.").

                                        • X : Finset E
                                        • allP (a : E) : a self.XNonempty (P a)
                                        • allNotQ (a : E) : a self.XIsEmpty (Q a)
                                        Instances For
                                          def Semantics.TypeTheoretic.particular_exist_implies_general {E : Type} [DecidableEq E] (P Q : Ppty E) (h : ParticularWC_Exist P Q) (Pd : EProp) (hPd : ∀ (a : E), Pd a Nonempty (P a)) :

                                          The particular exist condition implies the general one with a singleton witness set.

                                          Equations
                                          Instances For
                                            def Semantics.TypeTheoretic.particular_no_implies_general {E : Type} [DecidableEq E] (P Q : Ppty E) (h : ParticularWC_No P Q) (Pd : EProp) :

                                            The particular no condition implies the general decreasing one with the empty witness set.

                                            Equations
                                            Instances For

                                              Anaphora-set predictions #

                                              The witness-set architecture predicts which anaphora sets each quantifier makes available ([Coo23] §7.4.1, Table).

                                              Anaphora-set kinds reachable from a quantified noun phrase.

                                              • refset : AnaphoraRef

                                                REFSET: the witness individual or set ("A dog barked. It heard an intruder.").

                                              • maxset : AnaphoraRef

                                                MAXSET: the full extension ("Every dog barked. They heard an intruder.").

                                              • compset : AnaphoraRef

                                                COMPSET: the complement witness set ("Few dogs barked. They slept through.").

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

                                                  The English fragment's quantifier names.

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

                                                      Induced classical GQ denotations #

                                                      The GQ induced by existential witness sets: exist(A, B) iff some element bears both A and B.

                                                      Equations
                                                      Instances For

                                                        The GQ induced by universal witness sets: every(A, B) iff every A-element also bears B.

                                                        Equations
                                                        Instances For

                                                          Conservativity of witnessGQ_exist follows structurally from the WitnessSet subset condition — not stipulated as in [BC81].

                                                          Bridges between particular witness conditions and GQs #

                                                          theorem Semantics.TypeTheoretic.particular_exist_iff_witnessGQ {E : Type} (P Q : EProp) :
                                                          (∃ (x : E), P x Q x) witnessGQ_exist P Q

                                                          The particular existential condition equals the existential GQ denotation (both unfold to ∃ x, P x ∧ Q x).

                                                          theorem Semantics.TypeTheoretic.universal_iff_witnessGQ {E : Type} (P Q : EProp) :
                                                          (∀ (x : E), P xQ x) witnessGQ_every P Q

                                                          The universal condition equals the universal GQ denotation.

                                                          theorem Semantics.TypeTheoretic.particularWC_to_witnessGQ {E : Type} [DecidableEq E] {P Q : Ppty E} (w : ParticularWC_Exist P Q) (Pd Qd : EProp) (hP : ∀ (a : E), Pd a Nonempty (P a)) (hQ : ∀ (a : E), Qd a Nonempty (Q a)) :

                                                          ParticularWC_Exist constructs a witness for the existential GQ.

                                                          theorem Semantics.TypeTheoretic.particularWC_no_to_witnessGQ {E : Type} [DecidableEq E] {P Q : Ppty E} (w : ParticularWC_No P Q) (Pd Qd : EProp) (hP : ∀ (a : E), Pd a Nonempty (P a)) (hQ : ∀ (a : E), Qd a Nonempty (Q a)) :
                                                          witnessGQ_every Pd fun (x : E) => ¬Qd x

                                                          ParticularWC_No constructs the universal GQ with negated scope.

                                                          Complement witness sets and the few / a_few contrast #

                                                          theorem Semantics.TypeTheoretic.comp_witness_card {E : Type} [DecidableEq E] [Fintype E] (P : EProp) [DecidablePred P] (X : Finset E) (_hSub : aX, P a) (θ : ) (_hFew : X.card θ) (hXsub : X fullExtFinset P) :
                                                          (fullExtFinset P \ X).card (fullExtFinset P).card - θ

                                                          The complement of a few_a witness set satisfies the complement cardinality condition.

                                                          theorem Semantics.TypeTheoretic.few_comp_partition {E : Type} [DecidableEq E] [Fintype E] (P : EProp) [DecidablePred P] (X : Finset E) (hX : X fullExtFinset P) :

                                                          A witness set and its complement partition the extension.

                                                          Monotonicity from witness-condition shape #

                                                          def Semantics.TypeTheoretic.generalWC_incr_mono {E : Type} [DecidableEq E] (P Q Q' : Ppty E) (isWS : Finset EProp) (embed : (a : E) → Q aQ' a) (w : GeneralWC_Incr P Q isWS) :
                                                          GeneralWC_Incr P Q' isWS

                                                          Upward monotonicity of the increasing general witness condition.

                                                          Equations
                                                          Instances For
                                                            def Semantics.TypeTheoretic.generalWC_decr_mono {E : Type} [DecidableEq E] (P Q Q' : Ppty E) (isWS : Finset EProp) (embed : (a : E) → Q' aQ a) (w : GeneralWC_Decr P Q isWS) :
                                                            GeneralWC_Decr P Q' isWS

                                                            Downward monotonicity of the decreasing general witness condition.

                                                            Equations
                                                            Instances For