Professional Documents
Culture Documents
Lambek Categorial
Lambek Categorial
Michael Moortgat
I universal: syntactic calculus freely generated from a given set of basic types
I ♦, Modalities
Both strategies combine mild CS expressivity with polynomial parsing (Moot 2008).
Part I. Structural control
4. Vocabulary
The parts of speech are turned into
2 , R3 i
I Frames F = hW, R♦ ⊗
I Models M = hF, V i
Compare For ♦, : hF i, [P ] in minimal temporal logic; for ⊗ and its residuals: fusion
in relevant logics.
p 6→ hF ip [P ]p 6→ p
hF i[P ]p → p → [P ]hF ip
7. The pure logic of residuation
The minimal grammar logic is given by the preorder laws for derivability (reflexivity
A → A) and transitivity: from A → B and B → C, deduce A → C), together with
the residuation laws below.
(res-1) ♦A → B iff A → B
(res-l) A ⊗ B → C iff A → C/B
(res-r) A ⊗ B → C iff B → A\C
Invariants The laws of the base logic hold no matter what the structural particularities
of individual languages are
8. Emergence of grammatical notions
Grammatical notions and their properties, rather than being postulated, emerge from
the type structure. Some examples:
SU ⊗ (TV ⊗ OBJ)
Needed Logical tools to express under what structural deformations the form-meaning
correspondence is preserved.
11. Constants for structural control
Instead of hard-wired options with a global effect (⊗ associativity, commutativity),
languages use controlled structural reasoning, anchored in lexical type assignment.
(P 1) ♦A ⊗ (B ⊗ C) → (♦A ⊗ B) ⊗ C (C ⊗ B) ⊗ ♦A → C ⊗ (B ⊗ ♦A) (P 3)
(P 2) ♦A ⊗ (B ⊗ C) → B ⊗ (♦A ⊗ C) (C ⊗ B) ⊗ ♦A → (C ⊗ ♦A) ⊗ B (P 4)
I Moortgat 1997, Categorial type logics. Handbook of Logic and Language, Chap-
ter 2. Elsevier/MIT Press.
Part II. Symmetry
13. 1
Lambek and Grishin
Existing proposals to extend the syntactic calculus beyond CF model derivability as an
asymmetric relation A1 , . . . , An → B (the “intuitionistic” restriction). Pure residua-
On a Generalization
tion logic plus non-logical axioms for structural flexibility.
I Symmetry: A1 ⊗ · · · ⊗ An → B1 ⊕ · · · ⊕ Bm
Viacheslav Nikolaevich Grishin
I Distributivities: respecting word order and phrase structure
http://symcg.pbwiki.com
15. Vocabulary
A, B ::= p | atoms: s sentence, np noun phrase, . . .
Pronounciation guide
A/B “A over B”
B\A “B under A”
AB “A minus B”
B;A “B from A”
source
−
−−−→
Arrows target Types
−−−→
f
(writing A −→ B for source(f ) = A, target(f ) = B).
This provides us with a language of proof terms to individuate derivations.
1
A
Given are the identity arrow A −→ A and composition of arrows
f g
A −→ B B −→ C
g◦f
A −−−→ C
f f g h
with 1B ◦ f = f = f ◦ 1A for A −→ B, and (hf )g = h(f g) for A −→ B −→ C −→ D.
18. Residuated pairs, adjoints
LG adds adjointness/residuation principles for \, ⊗, / and their duals for , ⊕, ;.
f f
A ⊗ B −→ C C −→ B ⊕ A
f f
B−
−→ A\C CA−
−→ B
f f
A ⊗ B −→ C C −→ B ⊕ A
f f
A−
−→ C/B B;C −
−→ A
Types For atoms p./ = p; for complex types (A ⊗ B)./ = B ./ ⊗ A./ , etc, as in the
translation tables below:
f f 0 f 0 f
∞
f f 0 f 0 f
Klein’s V Compositions of ·./ and ·∞ obey the laws of the group V = {1, ./, ∞, (∞ ./)},
Klein’s Vierengruppe, the smallest non-cyclic Abelian group.
20. Structural semantics: fusion vs fission
Models (W, R⊗ , R⊕ , V ); valuation V : Form → P(W ). Completeness: Kurtonina &
Moortgat 2007 (weak filters). Alternatively, Generalized Kripke Frames, Chernilovskaya
& Gehrke 2008.
Remark In the minimal symmetric system LG∅ , fission R⊕ and merge R⊗ are distinct
relations. They will be related when we add frame constraints for the distributivity
laws to be considered.
21. Decidable proof search
From (RES) and (TRANS) one derives the monotonicity principles (MON) and the
((CO)UNIT) laws.
f g
Monotonicity From A −→ B and C −→ D, infer
g\f f ⊗g f /g
D\A −−→ C\B; A ⊗ C −−−→ B ⊗ D; A/D −−→ B/C;
f g g⊕f g;f
A D −−−→ B C; C ⊕ A −−−→ D ⊕ B; D ; A −−−→ C ; B
η
(A/B) ⊗ B −→ A A −→ (A ⊗ B)/B
η∞ ∞
B ; (B ⊕ A) −
−→ A A −
−→ B ⊕ (B ; A)
A1 ⊗ · · · Ai ⊗ (B C) ⊗ Ai+2 · · · An → D
Distributivity laws Grishin 1983 provides the recipe to compute all combinatorial
possibilities that satisfy these requirements.
23. Distributivity principles
df df
Notation For ∗ ∈ {/, ⊗, \, ;, ⊕, }, we write a?∗ b = b ∗ a and a∗? b = a ∗ b.
The matrix We consider the 8 monotone operations, split in two groups, M and
Λ = M∞
M = { ?⊗, ⊗?, ?, ;? }
Λ = { ⊕?, ?⊕, \?, ?/ } = M∞
aµ bλ c → bλ aµ c
I Eight of these are the same-sort associativities and commutativities: they violate
structure preservation.
I The remaining eight relate the ⊗ and the ⊕ families; they are structure preserving.
24. Class I versus Class IV
⊕? ?⊕ \? ?/
?⊗ I1 I2
⊗? I4 I3
? IV1 IV2
;? IV4 IV3
Remark In each class, the choice of the operations µ, λ constitutes a group given by
the ·./ symmetry:
(the Klein group again). Earlier presentations of Grishin’s work (Lambek93, Goré99)
have only given the (1, 1) and (./, ./) cases.
25. Distributivity: rule form
Among the interderivable forms of the distributivity laws, we choose the form that puts
together the structural occurrences of the operations. E.g. IV3 :
(C\B) A → C\(B A)
A ⊗ (B C) → (A ⊗ B) C
For decidable proof search, we compose with TRANS. Below the Class IV distributivities
as inference rules:
f f
A ; (B ⊗ C) −→ D (A ⊗ B) C −→ D
L L
f f
(A ; B) ⊗ C −→ D A ⊗ (B C) −→ D
f f
B ; (A ⊗ C) −→ D (A ⊗ C) B −→ D
Lf Lf
A ⊗ (B ; C) −→ D (A B) ⊗ C −→ D
someone (s s) ; np → s/(np\s)
I When (s s) has reached the top, it can jump to the rhs by means of the dual
residuation principle.
28. Computational semantics
Proofs as programs Derivations get a computational interpretation in terms of the
lambda calculus.
I Lambek calculus
I Lambek-Grishin
SOURCE
CP S / TARGET
something
Curien/Herbelin: LKµeµ sequents IL
λµe
µ terms λ terms
here: LG arrows
30. CPS transformation: LG
We define the CPS transformation for LG on types and on proofs.
The target type language has a distinguished type R of responses, products and func-
tions; all functions have range R.
Types: call-by-value For each source language type A, the target language has
values VA = dAe
continuations KA = VA → R (functions from VA to R)
computations CA = KA → R (functions from KA to R)
For atoms, bpc = dp∞ e. For the (co)implications, compare the cbv intepretation (left)
with the cbn interpretation (right).
Remark The CPS interpretation reflects the ·./ and ·∞ symmetries. For example,
dA\Be = dA Be → R.
32. CPS transformation: proofs
f
For every arrow A −→ B we distinguish a left-to-right perspective f > and a right-to-
left perspective f < .
f>
I A−
−→ B: focus on value B
f<
I A−
−→ B: focus on evaluation context A
f
CPS interpretation of proofs Given A −→ B, infer
x 7→ λα.(α x)
α 7→ λx.(α x)
f g
Composition Given A −→ B −→ C, we have
f g
A −→ B C −→ D
g\f
D\A −−→ C\B
Co-implication
f g
A −→ B C −→ D
f g
A D −−−→ B C
(·)0
f / M : B0
A −→ B
CPS M [xi := ci ]
/ .
M v : dBe ev M v [xi :=Vci W]
M n : bBc ev M n [xi :=Tci U]
Call by value
ValiceW = alice
VleftW = λhx, ci.(c (left x))
VteasesW = λhv, yi.(v λhx, ci.(c ((teases y) x)))
VsomebodyW = λhc, vi.(∃ λx.(v hx, ci))
Call by name
TaliceU = λc.(c alice)
TleftU = λhc, qi.(q λx.(c (left x)))
TteasesU = λhq, hc, q 0 ii.(q 0 λx.(q λy.(c ((teases y) x))))
TsomebodyU = λhv, ci.(∃ λx.(v hc, λc0 .(c0 x)i))
37. The LG quantifier type
How to express the meaning for a gq type assignment (s s) ; np in terms of the
logical constants ∃, ∀ of type (e → t) → t ?
Target types
VsomeoneW = no solution
np
tv gq
alice
teases someone
gq
tv gq
everyone
teases someone
λc.(TevrU λhq, mi.(TsmU λhq 0 , m0 i.(m hc, λc0 .(m0 hc0 , λc00 .(TteasesU hq 0 , hc00 , qii)i)i)))
; λc.(∀ λx.(∃ λy.(c ((teases y) x))))
λc.(TsmU λhq 0 , m0 i.(TevrU λhq, mi.(m0 hc, λc0 .(m hc0 , λc00 .(TteasesU hq 0 , hc00 , qii)i)i)))
; λc.(∃ λy.(∀ λx.(c ((teases y) x))))
42. Complement clauses: non-local scope
We write cs for s/(s\s). The type of the constant ‘thinks’ below is then (iv/cs)0 =
((t → t) → t) → (e → t).
TthinksU = λhh, hc, qii.(q λx.(c ((thinks λc0 .(h hJ, c0 i)) x)))
np
iv/cs
alice gq iv
thinks
someone left
λc.(TthinksU hλhm0 , c0 i.(TsmU λhq, mi.(m hc0 , λc000 .(m0 hc000 , λc00 .(TleftU hc00 , qi)i)i)), hc, TaliceUii)
λc.(TsmU λhq, mi.(m hc, λc0 .(TthinksU hλhm0 , c000 i.(m0 hc000 , λc00 .(TleftU hc00 , qi)i), hc0 , TaliceUii)i))
; λc.(c ((thinks λc0 .(∃ λx.(c0 (left x)))) alice))
; λc.(∃ λx.(c ((thinks λc0 .(c0 (left x))) alice)))
43. Conclusions
I Lambek’s syntactic calculus NL is too poor to model discontinuous dependencies.