{{Short description|Expression denoting a set of sets in formal semantics}} In formal semantics, a '''generalized quantifier''' ('''GQ''') is an expression that denotes a set of sets. This is the standard semantics assigned to quantified noun phrases. For example, the generalized quantifier ''every boy'' denotes the set of sets of which every boy is a member: <math display="block">\{X \mid \forall x (x \text{ is a boy} \to x \in X) \}</math>This treatment of quantifiers has been essential in achieving a compositional semantics for sentences containing quantifiers.<ref>{{cite book |last1=Montague |first1=Richard |author-link1=Richard Montague |date=1974 |url=http://www.blackwellpublishing.com/content/BPL_Images/Content_store/Sample_chapter/9780631215417/Portner.pdf |chapter=The proper treatment of quantification in English |title=Philosophy, Language, and Artificial Intelligence |series=Studies in Cognitive Systems |volume=2 |editor1-last=Kulas |editor1-first=J. |editor2-last=Fetzer |editor2-first=J.H. |editor3-last=Rankin |editor3-first=T.L. |pages=141–162 |publisher=Springer, Dordrecht |doi=10.1007/978-94-009-2727-8_7|isbn=978-94-010-7726-2 }}</ref><ref name="Barwise">{{cite journal |last1=Barwise |first1=Jon |author-link1=Jon Barwise |last2=Cooper |first2=Robin |date=1981 |title=Generalized quantifiers and natural language |url=https://link.springer.com/article/10.1007%2FBF00350139 |journal=Linguistics and Philosophy |volume=4 |issue=2 |pages=159–219 |doi=10.1007/BF00350139|url-access=subscription }}</ref>
== Model theory ==
=== Definition === In first-order logic, there are two quantifiers <math>\forall, \exists</math>. They have a fixed meaning in model-theoretic semantics (that is, set-theoretic semantics) of first-order logic, as follows.
Given a first-order language, a model <math>\mathcal M</math> of the language, and an interpretation <math>I</math> of the variables, we write <math>\mathcal M \models_I \forall x \psi</math> to mean "a quantified formula <math>\forall x \psi</math> is modelled by the model <math>\mathcal M</math> with the interpretation <math>I</math>". By definition,<math display="block">\mathcal M \models_I \forall x \psi \iff \forall a \in M, \; \mathcal M \models_{I[a/x]}\psi</math>where <math>M </math> is the universe of the model <math>\mathcal M</math>.
Similarly,<math display="block">\mathcal M \models_I \exists x \psi \iff \exists a \in M, \; \mathcal M \models_{I[a/x]}\psi</math>This can be written in set-theoretic notation as<math display="block">\begin{aligned} \mathcal M \models_I \forall x \psi &\iff \{ a \in M: \mathcal M \models_{I[a/x]}\psi\} \in \{M\} \\ \mathcal M \models_I \exists x \psi &\iff \{ a \in M: \mathcal M \models_{I[a/x]}\psi\} \in \{S\in \mathcal P(M): S \neq \emptyset\} \end{aligned}</math>where <math>\mathcal P</math> denotes the power set operation.
This may appear somewhat circular, as set theory is usually formalized in a first-order logic (as in ZFC set theory). However, if one takes such a set theory as a given base, then one can build other first-order logics over this base set theory. This is the typical perspective taken in model theory.
Next, we consider <math>\forall, \exists</math> themselves as symbols that are being modelled. This is similar to how equality itself interpreted as a binary relation symbol in first-order logic with equality. Then we rewrite again:<math display="block">\begin{aligned} \mathcal M \models_I \forall x \psi &\iff \{ a \in M: \mathcal M \models_{I[a/x]}\psi\} \in \forall^{ \mathcal M} \\ \mathcal M \models_I \exists x \psi &\iff \{ a \in M: \mathcal M \models_{I[a/x]}\psi\} \in \exists^{ \mathcal M} \end{aligned}</math>where <math>\forall^{\mathcal M} := \{M\}</math> is the model of the symbol <math>\forall</math> in the model <math>\mathcal M</math>, and <math>\exists^{\mathcal M} := \{S\in \mathcal P(M): S \neq \emptyset\}</math> is the model of the symbol <math>\exists</math> in the model <math>\mathcal M</math>.
Therefore, we can define the model of a generalized quantifier as follows. Given a first-order language augmented with generalized quantifiers <math>Q_1, Q_2, \dots</math>, a model <math>\mathcal M</math> of the language models each <math>Q_n</math> as a set <math>Q_n^{\mathcal M} \subset \mathcal P(M)</math>, such that<math display="block">\mathcal M \models_I Q_n x \psi \iff \{ a \in M: \mathcal M \models_{I[a/x]}\psi\} \in Q_n^{ \mathcal M} </math>More generally, a quantifier <math>Q</math> may quantify over ''k'' variables. Then its model is a set <math>Q^{\mathcal M} \subset \mathcal P(M^k) </math>. The type of such a quantifier is <math>\langle k \rangle </math>.
Equivalently, since a subset of <math>M^k </math> can be regarded as a ''k''-ary relation on <math>M </math>, a quantifier over k variables can be regarded as a predicate for ''k''-ary relations on <math>M </math>.
More generally, a quantifier <math>Q </math> is used as follows: <math display="block">Q x_{1, 1}, \dots, x_{1, m_1}; x_{2, 1}, \dots, x_{2, m_2}; \dots ; x_{n, 1}, \dots, x_{n, m_n} (\psi_1, \dots, \psi_n) </math>It is modelled by an ''n''-ary relation over <math>m_1 </math>-ary relation, <math>m_2 </math>-ary relation, ..., <math>m_n </math>-ary relation over <math>M </math>. This general definition a generalized quantifier definition is sometimes called a '''Lindström quantifier'''.
Such a quantifier is said to have signature <math>\langle m_1, m_2, \dots, m_n\rangle</math>. If its signature is of form <math>\langle 1, 1, \dots, 1\rangle</math>, then it is '''monadic''', otherwise it is '''polyadic'''.
=== Examples === Of type ⟨1⟩:
* <math>\exists_{=1}</math> meaning "there exists exactly 1" is defined by <math>\exists_{=1}^{\mathcal M} := \{\{a\} : a \in M\}</math> * And more generally, we can define <math>\exists_{=2}, \exists_{=3}, \dots</math> by <math>\exists_{=2}^{\mathcal M} := \{\{a, b\} : a \in M, b \in M, a \neq b\}</math>, etc. * <math>\exists_{\leq n}</math> meaning "there exists at most ''n''" is defined by <math>\exists_{\leq n}^{\mathcal M} := \{S : S \subset M, |S| \leq n\}</math>. * <math>\exists_{\geq \omega}</math> meaning "there exists infinitely many" is defined by <math>\exists_{\geq \omega}^{\mathcal M} := \{S : S \subset M, S \text{ is infinite}\}</math>. * The Rescher quantifier, meaning "more often than not" is defined by <math>Q_R^{\mathcal M} := \{S : S \subset M, |S| > |M \setminus S|\}</math>.
Of type ⟨2⟩:
* <math>W </math> meaning "is a well-ordering" is defined by <math>W^{\mathcal M} := \{S: S \subset M \times M, S\text{ is a well-ordering of }M\} </math>. For example, <math>Wxy, x < y </math> means "<math>< </math> is a well-ordering". Given a model <math>\mathcal M </math> of <math>Wxy, x < y </math>, the structure <math>(M, <^{\mathcal M}) </math> is a well-ordered partially ordered set. Notably, well-ordering is not axiomatizable in standard first-order logic, thus showing that we have expanded the power of the logical language.
* Ramsey quantifier <math>Q^2 </math>, defined by <math>S \in (Q^2)^{\mathcal M} </math> iff there is an infinite <math>A \subset M </math>, such that <math>\forall x \neq y \in A, (x,y) \in S </math>. For example, the infinite Ramsey theorem states that if one has an infinite set <math>M </math>, and draw an edge between any pair of points, and color each edge from one of a finite number of colors, then there exists an infinite clique of the same color. Let <math>C_1, \dots, C_m </math> be 2-ary relations, such that <math>C_i(x,y) </math> means <math>x\neq y </math> and the edge <math>(x,y) </math> is colored with the ''i''-th color. Then the infinite Ramsey theorem states that <math>\bigvee_{i=1}^m Q^2(C_i) </math>.
Of type ⟨n⟩:
* Ramsey quantifier <math>Q^n </math>, defined by <math>S \in (Q^n)^{\mathcal M} </math> iff there is an infinite <math>A \subset M </math>, such that any size-''n'' subset <math>\{a_1, \dots, a_n\} \subset A </math>, we have <math>(a_1, \dots, a_n) \in S </math>. The infinite Ramsey theorem can be stated with <math>Q^n </math>.<ref>{{Cite journal |last1=Schmerl |first1=James H. |last2=Simpson |first2=Stephen G. |date=June 1982 |title=On the role of Ramsey quantifiers in first order arithmetic |url=https://www.cambridge.org/core/journals/journal-of-symbolic-logic/article/abs/on-the-role-of-ramsey-quantifiers-in-first-order-arithmetic1/AD3F094D68314AE14C9EB5EB8B323300 |journal=The Journal of Symbolic Logic |language=en |volume=47 |issue=2 |pages=423–435 |doi=10.2307/2273152 |jstor=2273152 |issn=0022-4812|url-access=subscription }}</ref>
Of type ⟨1, 1⟩:
* "All" is defined by <math>\text{All}^{\mathcal M} := \{(A, B) : A \subset B, B \subset M\} </math>. For example, "all men are mortal" is written as <math>\text{All } x, y, (\text{man}(x), \text{mortal}(y)) </math>. Similarly, "Some", "Not any", and "Not all" are of type ⟨1, 1⟩. In this way, the 4 types of sentences in term logic are naturally expressed in first-order logic with generalized quantifiers. * Similarly, "at least 5", "exactly 3", "an even number of", "there are more than", . * The Härtig quantifier, meaning "equally many".<ref>{{Cite journal |last1=Herre |first1=Heinrich |last2=Krynicki |first2=Michał |last3=Pinus |first3=Alexandr |last4=Väänänen |first4=Jouko |date=December 1991 |title=The Härtig quantifier: a survey |url=https://www.cambridge.org/core/journals/journal-of-symbolic-logic/article/abs/hartig-quantifier-a-survey/AB6F6A8373BCB897CCE5E73D9C7691A7 |journal=The Journal of Symbolic Logic |language=en |volume=56 |issue=4 |pages=1153–1183 |doi=10.2307/2275466 |jstor=2275466 |issn=0022-4812|url-access=subscription }}</ref>
=== Operations === Quantifiers can be combined and modified to create more quantifiers, using operations upon quantifiers.
'''Relativization''': An ''n''-ary relation <math>R</math> on a set <math>M</math> can be ''relativized'' to a subset <math>N \subset M</math>, by defining <math>R \upharpoonright N := R \cap N^n</math>. In other words, <math display="block">\forall a_1, \dots, a_n \in N, R \upharpoonright N(a_1, \dots, a_n) \iff R (a_1, \dots, a_n) </math>Using this operation, a quantifier <math>Q </math> of type <math>\langle m_1 , \dots , m_n\rangle </math> can be relativized to a quantifier <math>Q_{\text{rel}} </math> of type <math>\langle 1, m_1 , \dots , m_n\rangle </math> by taking its first slot to be the set over which it relativizes:<math display="block">Q_{\text{rel}}^{\mathcal M}(N, R_1, \dots, R_n) := Q^{\mathcal M}(R_1\upharpoonright N, \dots, R_n\upharpoonright N)</math>'''Iteration''': Given two ⟨1⟩ quantifiers <math>Q, Q'</math>, we have a ⟨2⟩ quantifier <math>Q \cdot Q'</math>. This is obtained by generalizing the construction for <math>\forall, \exists</math>. Specifically, given a binary relation <math>R</math>, the sentence <math>\forall x \exists y, R(x,y)</math> can be analyzed as <math>(\forall \cdot \exists)xy, R(x,y)</math>, where <math>\forall \cdot \exists</math> is a ⟨2⟩ quantifier obtained by iterating <math>\forall</math> to <math>\exists</math>.
A model <math>\mathcal M</math> models <math>\forall x \exists y, R(x,y)</math> iff <math>\forall^{\mathcal M}(\{a \in M: \exists^{\mathcal M} (R^{\mathcal M} (a, \cdot))\})</math>, where <math>R^{\mathcal M}(a, \cdot)</math> is the 1-ary relation on <math>M</math> obtained by plugging in <math>a\in M</math> to the first slot of the 2-ary relation <math>R</math> on <math>M</math>.
Generalizing, given two quantifiers <math>Q, Q' </math> of types ⟨1⟩, ⟨1⟩, they iterate to a type ⟨2⟩ quantifier:<math display="block">(Q \cdot Q')^{\mathcal M}(R^{\mathcal M}) := Q^{\mathcal M}(\{a \in M: Q'^{\mathcal M} (R^{\mathcal M} (a, \cdot))\}) </math>Given <math>Q_1, \dots, Q_n </math> quantifiers of types <math>\langle m_1\rangle, \dots, \langle m_n\rangle</math>, they iterate to <math>Q_1 \cdot \dots \cdot Q_n </math>, a <math>\langle m_1 + \dots + m_n\rangle </math> quantifier.
'''Resumption''': Given a quantifier <math>Q </math> of type <math>\langle 1 , \dots , 1\rangle </math>, it can be ''resumed'' to a quantifier <math>\operatorname{Res}_k(Q) </math> of type <math>\langle k, \dots, k\rangle </math>, using the fact that a ''k''-ary relation <math>R </math> on a set <math>M </math> is the same as a 1-ary relation on <math>M^k </math>:<math display="block">\operatorname{Res}_k(Q)^{\mathcal M} (R_1, \dots, R_n) \iff Q^{\mathcal M} (R_1, \dots, R_n) </math>Note that though they are formally the same, their types are different. One is To see it, consider the resumption of <math>\exists </math>. The formula <math>\exists x, \text{first}(x) = \text{second}(x) </math> is a formula that is interpreted over a model for which "first" and "second" are defined, in particular models whose universes are of form <math>M \times M </math>, whereas <math>\operatorname{Res}_2(\exists) x_1 x_2, x_1 = x_2 </math> is a formula that is interpreted over a plain model.
==Type theory== A version of type theory is often used to make the semantics of different kinds of expressions explicit. The standard construction defines the set of types recursively as follows: #''e'' and ''t'' are types. #If ''a'' and ''b'' are both types, then so is <math>\langle a,b\rangle</math> #Nothing is a type, except what can be constructed on the basis of lines 1 and 2 above.
Given this definition, we have the simple types ''e'' and ''t'', but also a countable infinity of complex types, some of which include: <math display="block">\langle e,t\rangle;\qquad \langle t,t\rangle;\qquad \langle\langle e,t\rangle, t\rangle; \qquad\langle e,\langle e,t\rangle\rangle; \qquad \langle\langle e,t\rangle,\langle \langle e, t\rangle, t\rangle\rangle;\qquad \ldots</math>
*Expressions of type ''e'' denote elements of the universe of discourse, the set of entities the discourse is about. This set is usually written as <math>D_e</math>. Examples of type ''e'' expressions include ''John'' and ''he''. *Expressions of type ''t'' denote a truth value, usually rendered as the set <math>\{0,1\}</math>, where 0 stands for "false" and 1 stands for "true". Examples of expressions that are sometimes said to be of type ''t'' are ''sentences'' or ''propositions''. *Expressions of type <math>\langle e,t\rangle</math> denote functions from the set of entities to the set of truth values. This set of functions is rendered as <math>D_t^{D_e}</math>. Such functions are characteristic functions of sets. They map every individual that is an element of the set to "true", and everything else to "false." It is common to say that they denote ''sets'' rather than characteristic functions, although, strictly speaking, the latter is more accurate. Examples of expressions of this type are predicates, nouns and some kinds of adjectives. *In general, expressions of complex types <math>\langle a,b\rangle</math> denote functions from the set of entities of type <math>a</math> to the set of entities of type <math>b</math>, a construct we can write as follows: <math>D_b^{D_a}</math>.
We can now assign types to the words in our sentence above (Every boy sleeps) as follows. *Type(boy) = <math>\langle e,t\rangle</math> *Type(sleeps) = <math>\langle e,t\rangle</math> *Type(every) = <math>\langle\langle e,t\rangle,\langle \langle e, t\rangle, t\rangle\rangle</math> *Type(every boy) = <math>\langle\langle e,t\rangle,t\rangle</math> and so we can see that the generalized quantifier in our example is of type <math>\langle\langle e,t\rangle,t\rangle</math>
Thus, every denotes a function from a ''set'' to a function from a set to a truth value. Put differently, it denotes a function from a set to a set of sets. It is that function which for any two sets ''A,B'', ''every''(''A'')(''B'')= 1 if and only if <math>A\subseteq B</math>.
==Typed lambda calculus== A useful way to write complex functions is the lambda calculus. For example, one can write the meaning of ''sleeps'' as the following lambda expression, which is a function from an individual ''x'' to the proposition that ''x sleeps''. <math display="block">\lambda x. \mathrm{sleep}'(x)</math> Such lambda terms are functions whose domain is what precedes the period, and whose range are the type of thing that follows the period. If ''x'' is a variable that ranges over elements of <math>D_e</math>, then the following lambda term denotes the identity function on individuals: <math display="block">\lambda x.x</math>
We can now write the meaning of ''every'' with the following lambda term, where ''X,Y'' are variables of type <math>\langle e,t\rangle</math>: <math display="block">\lambda X.\lambda Y. X\subseteq Y</math>
If we abbreviate the meaning of ''boy'' and ''sleeps'' as "''B''" and "''S''", respectively, we have that the sentence ''every boy sleeps'' now means the following: <math display="block">(\lambda X.\lambda Y. X\subseteq Y)(B)(S)</math> By β-reduction, <math display="block">(\lambda Y. B \subseteq Y)(S)</math> and <math display="block">B\subseteq S</math>
The expression ''every'' is a determiner. Combined with a noun, it yields a ''generalized quantifier'' of type <math>\langle\langle e,t\rangle,t\rangle</math>.
==Properties== ===Monotonicity=== ====Monotone increasing GQs==== A ''generalized quantifier'' GQ is said to be monotone increasing (also called upward entailing) if, for every pair of sets ''X'' and ''Y'', the following holds: :if <math>X\subseteq Y</math>, then GQ(''X'') entails GQ(''Y''). The GQ ''every boy'' is monotone increasing. For example, the set of things that ''run fast'' is a subset of the set of things that ''run''. Therefore, the first sentence below entails the second: #Every boy runs fast. #Every boy runs.
====Monotone decreasing GQs==== A GQ is said to be monotone decreasing (also called downward entailing) if, for every pair of sets ''X'' and ''Y'', the following holds: :If <math>X\subseteq Y</math>, then GQ(''Y'') entails GQ(''X''). An example of a monotone decreasing GQ is ''no boy''. For this GQ we have that the first sentence below entails the second. #No boy runs. #No boy runs fast. The lambda term for the determiner ''no'' is the following. It says that the two sets have an empty intersection. <math display="block">\lambda X.\lambda Y. X\cap Y= \emptyset</math> Monotone decreasing GQs are among the expressions that can license a negative polarity item, such as ''any''. Monotone increasing GQs do not license negative polarity items. #Good: No boy has '''any''' money. #Bad: *Every boy has '''any''' money.
====Non-monotone GQs==== A GQ is said to be ''non-monotone'' if it is neither monotone increasing nor monotone decreasing. An example of such a GQ is ''exactly three boys''. Neither of the following sentences entails the other. #Exactly three students ran. #Exactly three students ran fast. The first sentence does not entail the second. The fact that the number of students that ran is exactly three does not entail that each of these students ''ran fast'', so the number of students that did that can be smaller than 3. Conversely, the second sentence does not entail the first. The sentence ''exactly three students ran fast'' can be true, even though the number of students who merely ran (i.e. not so fast) is greater than 3.
The lambda term for the (complex) determiner ''exactly three'' is the following. It says that the cardinality of the intersection between the two sets equals 3. <math display="block">\lambda X.\lambda Y. |X\cap Y|=3</math>
===Conservativity=== {{Further|Conservativity}} A determiner D is said to be ''conservative'' if the following equivalence holds: <math display="block">D(A)(B) \leftrightarrow D(A)(A\cap B)</math> For example, the following two sentences are equivalent. #Every boy sleeps. #Every boy is a boy who sleeps.
It has been proposed that ''all'' determiners{{emdash}}in every natural language{{emdash}}are conservative.<ref name=Barwise /> The expression ''only'' is not conservative. The following two sentences are not equivalent. But it is, in fact, not common to analyze ''only'' as a determiner. Rather, it is standardly treated as a focus-sensitive adverb. #Only boys sleep. #Only boys are boys who sleep.
==See also== *Scope (formal semantics) *Lindström quantifier *Branching quantifier
==References== <references />
==Further reading== * {{cite book|author1=Stanley Peters|author2=Dag Westerståhl|title=Quantifiers in language and logic|year=2006|publisher=Clarendon Press|isbn=978-0-19-929125-0}} * {{cite book|author=Antonio Badia|title=Quantifiers in Action: Generalized Quantification in Query, Logical and Natural Languages|year=2009|publisher=Springer|isbn=978-0-387-09563-9}} * {{Cite book | vauthors=Wągiel M | title = Subatomic quantification | place = Berlin | publisher = Language Science Press | date = 2021 | format = pdf | url = http://langsci-press.org/catalog/book/317 | doi =10.5281/zenodo.5106382 | doi-access=free | isbn = 978-3-98554-011-2 }}
==External links== *Dag Westerståhl, 2011. '[http://plato.stanford.edu/entries/generalized-quantifiers/ Generalized Quantifiers]'. Stanford Encyclopedia of Philosophy.
{{Formal semantics}} Category:Semantics Category:Formal semantics (natural language) Category:Quantifier (logic)