Lambda Calculus for Linguistic Semantics

Research Depth 57 in the knowledge graph I know this Set as goal
Unlocks 723 downstream topics
semantics formal logic

Core Idea

Lambda calculus provides a formal system for representing meanings and their composition. Lambda abstraction represents predicates as functions (the verb 'sleep' as λx.sleep(x)), and function application models how arguments combine with predicates. This framework enables precise modeling of quantifiers, modification, and binding, eliminating ambiguity inherent in informal semantic representations.

Explainer

From your study of compositional semantics, you know the core principle: the meaning of a sentence is built systematically from the meanings of its parts, following syntactic structure. From your study of lambda calculus, you have the formal tools: functions, abstraction, and reduction. The application of lambda calculus to linguistics is what makes compositional semantics *computable* — it gives you a precise notation for representing meanings as functions and combining them step by step.

Start with a simple verb. The verb *sleep* means something like "x sleeps" — it expresses a property that can be true or false of any individual. In lambda notation, this is λx.sleep(x): a function that takes an individual *x* and returns the proposition "x sleeps." When we apply this to an argument — say, the name "Maria," which denotes an individual *m* — we get (λx.sleep(x))(m), which beta-reduces to *sleep(m)*: the proposition that Maria sleeps. Beta reduction is just substitution: replace the bound variable *x* with the argument *m* everywhere it appears in the function body. This mirrors the syntactic operation of predication — a verb phrase combining with its subject.

Transitive verbs require two steps of function application. *Loves* has type λy.λx.love(x,y): a function that takes an object *y* and returns a function waiting for a subject *x*. Applying it first to "Maria" yields λx.love(x,m) ("x loves Maria"); applying *that* to "John" yields love(j,m) ("John loves Maria"). Notice the order: the lambda expression is built so that object applies first, then subject — this corresponds to the syntactic structure where the verb combines with its object before the VP combines with the subject. Type theory keeps track of what can combine with what: an expression of type *e* (entity) can combine with an expression of type *(e→t)* (a function from entity to truth value) to produce type *t* (a truth value).

The real power emerges with quantifiers. "Every student slept" can't be handled by simply plugging a name into λx.sleep(x), because "every student" doesn't denote an individual. Instead, it denotes a generalized quantifier: a function over properties. ∀-every-student is represented as (λP.∀x[student(x) → P(x)]) — a function that takes a property P and says "for every x who is a student, x has P." Applying this to the VP *λx.sleep(x)* yields: ∀x[student(x) → sleep(x)] — "for every x, if x is a student, then x sleeps." This treatment of quantifiers as higher-order functions (functions that take functions as arguments) is what allows compositional semantics to handle the full range of natural language quantification — *some*, *most*, *no*, *exactly three* — within a uniform formal framework, eliminating the ambiguities that plague informal paraphrase.

Practice Questions 5 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineOpposites and Additive InversesAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesLiteral EquationsSlope-Intercept FormPoint-Slope FormWriting Linear EquationsParallel and Perpendicular Line SlopesGraphing Linear EquationsPiecewise FunctionsStep FunctionsComposition of FunctionsLambda CalculusLambda Calculus for Linguistic Semantics

Longest path: 58 steps · 286 total prerequisite topics

Prerequisites (2)

Leads To (6)