A Calculus for Semantic Composition and Scoping

Fernando C. N. PereiraACL 1989

Introduction

In computational linguistics, the problem of quantifier scoping—how words like every, some, or a interact—has historically been a source of significant complexity. For example, in the sentence "Every man saw a friend of his," the quantifier "every man" must take wide scope over "a friend of his" for the pronoun "his" to be properly bound. Traditional frameworks, such as Montague grammar, often rely on translating these sentences into logical forms and then applying a "free-variable constraint" to filter out ill-formed structures where a variable is used outside its scope.

Fernando C.N. Pereira’s 1989 paper argues that this constraint is an ad-hoc "hack" that violates the principle of compositionality. Instead, Pereira proposes a formal calculus where scoping restrictions are not arbitrary rules but natural mathematical consequences of the derivation process itself.

Methodology: A Proof-Theoretic Approach

Pereira shifts the focus from manipulating final logical forms to the derivation of meaning using a system based on Curry’s calculus of functionality. This system employs natural deduction rules, primarily:

  • Application [app]: Combining a function with its argument.
  • Abstraction [abs]: Creating a function by discharging an assumption.

To handle specific linguistic phenomena, Pereira introduces derived rules such as [trace] for relative clauses and [quant] for quantifier raising.

Extracted figure from page 5 of A Calculus for Semantic Composition and Scoping

As shown in Figure 1, the meaning of a complex phrase is built step-by-step. The [trace] rule allows for the temporary assumption of a variable (like $y$ for the object of "owns"), which is later discharged via abstraction to form a predicate that can be modified by "that".

Key Insights: The Free-Variable Constraint as a Theorem

The central "Aha!" moment of the paper is that the free-variable constraint is a theorem, not an axiom. In this calculus, the "meaning" of a sentence is the path taken to derive it. If a derivation attempts to raise a quantifier out of a scope where its internal variables are still active (undischarged), the logic of functional abstraction causes the derivation to fail.

A complex derivation for 'Every man saw a friend of his', showing the interaction between quantifiers and bound pronouns.

Figure 3 illustrates this with a more complex example involving both quantifiers and pronouns. The system handles "storage" naturally through the order of assumption discharge in the proof tree. If the quantifier "Every man" is raised correctly, it can bind the pronoun "his" (represented by $m$ in the derivation). An illegal scoping would result in an impossible proof path, effectively predicting the ungrammaticality of certain interpretations.

Results and Implications

Pereira’s framework provides a unified treatment for relative clauses, pronouns, and quantifiers. By framing semantics as a type-checking or proof-discovery problem, it offers several advantages:

  1. Formal Explanation of Ungrammaticality: It explains why sentences like "A woman who saw every man disliked him" cannot have "him" referring to "every man"—the derivation is mathematically impossible.
  2. Elimination of Cooper Storage: It replaces complex data structures with the inherent logic of the calculus.
  3. Computational Efficiency: It aligns semantic analysis with standard parsing techniques, opening the door for more robust natural language systems.

Limitations

While elegant, the approach still relies on syntactic licensing to guide the semantic rules. Furthermore, Pereira acknowledges that real-world language involves stricter rules for reflexives (like himself) that require more sophisticated syntactic information, such as c-command, than what is captured in this basic calculus. Additionally, the search space for all valid derivations can be large, a challenge addressed by later work in underspecified representations.

Summary updated

BibTeX
@inproceedings{pereira1989calculus,
  author = {Fernando C. N. Pereira},
  title = {{A Calculus for Semantic Composition and Scoping}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1989},
  doi = {10.3115/981623.981642},
}
Figure