SlideShare a Scribd company logo
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Dialectica Categories for the Lambek Calculus
Valeria de Paiva
Nuance Communications, CA
(joint work with Harley Eades III, Augusta, GA)
April, 2017
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Introduction
I want to talk to you about modeling the Lambek Calculus,
using Dialectica Categories.
(dedicated to Jim Lambek, 1922–2014)
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Introduction
Lambek Calculus (1958, 1988, 1993, 2012)
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Introduction
Lambek Calculus
Dialectica Categories
putting things together...
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
What is the Lambek Calculus?
One of the several “type grammars”in use in Linguistics.
A long history: Ajdukiewicz [1935], Bar-Hillel [1953], Lambek
[1958, 1961], Ades-Steedman [1982], etc.
It provides a syntactic account of sentencehood.
Two classes of type grammars:
1. Combinatory Categorial Grammar: Szabolcsi [1992],
Steedman-Baldridge [2011], etc..
2. Categorial Type Logics: van Benthem, Morrill [1994], Moortgat
[1994], etc..
Combinators/Lambda-calculus distiction.
Both classes worked on nowadays
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
What is the Lambek Calculus?
Here a purely a logical system, like usual propositional logic, but
with no structural rules at all.
Recall the basic logic ‘equation’:
A → (B → C) ⇐⇒ A ∧ B → C ⇐⇒ B → (A → C)
Now make your conjunction non-commutative, so that
A ⊗ B = B ⊗ A
Then you end up with two kinds of ‘implication’ ( , ):
A → (B C) ⇐⇒ A ⊗ B → C ⇐⇒ B → (A C)
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
What is the Lambek Calculus? sequent calculus
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Why Dialectica Categories?
For G¨odel (1958): a way to prove consistency of higher order
arithmetic
For Girard (1987): a way to show that Linear Logic had serious
pedigree
For Hyland (1987):
An intrinsic way modelling G¨odel’s Dialectica,
Proof theory in the abstract (Hyland, 2002)
Should produce a CCC, it wouldn’t.
For me: a Swiss army knife...
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Categorical Proof Theory
Types are formulae/objects in appropriate category,
Terms/programs are proofs/morphisms in the category,
Logical constructors are appropriate categorical constructions.
Most important: Reduction is proof normalization (Tait)
Outcome: Transfer results/tools from Logic to Categories to
Computing
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Curry-Howard for Implication
Natural deduction rules for implication (without λ-terms)
A → B A
B
[A]
·
·
·
·
π
B
A → B
Natural deduction rules for implication (with λ-terms)
M : A → B N : A
M(N): B
[x : A]
·
·
·
·
π
M : B
λx.M : A → B
function application abstraction
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
The challenges of modeling Linear Logic
Traditional categorical modeling of intuitionistic logic:
formula A object A of appropriate category
A ∧ B A × B (real product)
A → B BA (set of functions from A to B)
But these are real products, so we have projections (A × B → A)
and diagonals (A → A × A) which correspond to deletion and
duplication of resources.
Not linear!!!
Need to use tensor products and internal homs in Category Theory.
Hard to define the “make-everything-as-usual”operator ”!”.
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
The simplest Dialectica Category
The Dialectica category Dial2(Sets) objects are triples, an object is
A = (U, X, R), where U and X are sets and R ⊆ U × X is a
set-theoretic relation. A morphism from A to B = (V , Y , S) is a
pair of functions f : U → V and F : Y → X such that
uRFy → fuSy.
Theorem 1: You just have to find the right structure. . .
(de Paiva 1989) The category Dial2(Sets) has a symmetric mo-
noidal closed structure, and involution which makes it a model of
(exponential-free) multiplicative linear logic.
Theorem 2 (Hard part): You still want usual logic. . .
There is a comonad ! which models exponentials/modalities, hence
recovers Intuitionistic and Classical Logic.
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Can we give some intuition for these categories?
Blass makes the case for thinking of problems in computational
complexity. Intuitively an object of Dial2(Sets)
(U, X, R)
can be seen as representing a problem.
The elements of U are instances of the problem, while the
elements of X are possible answers to the problem instances.
The relation R says whether the answer is correct for that instance
of the problem or not.
The morphisms between these problems have two components:
while f maps instances of a problem to instances of another, F
maps solutions ‘backwards’.
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
What’s different for the Lambek calculus?
Need to have a non-commutative tensor ⊗.
Need to have two (left and right) implications.
Can we have these disturbing minimally the (admitedly)
complicated structures?
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
The non-commutative Dialectica Category
(de Paiva 1992, Amsterdam Colloquium) Category
DialM(Sets), objects are A = (U, X, R), where U and X are sets
and U × X → M is a M-valued relation. A morphism from A to
B = (V , Y , S) is a pair of functions f : U → V and F : Y → X
such that R(u, Fy) ≤M S(fu, y).
Theorem 3: have the right strux. . .
The category DialM(Sets) has a non-symmetric monoidal closed
structure, hence it is a model of (exponential-free) non-commutative
multiplicative linear logic.
Theorem 4 (Hard part): You still want usual logic. . .
There is a comonad ! which models exponentials/modalities, and a
comonad κ (Yetter) that brings back commutativity. Putting the
two together we recover Intuitionistic and Classical Logic.
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Conclusions
Introduced you to the Lambek calculus, as a relative of Linear
Logic
Introduced you to Dialectica categories
(there’s much more to say...)
Described one example of Dialectica categories DialM(Sets),
a non-commutative case. Should’ve shown you the modalities that
make it work.
Advantages over previous work:
1. Proved syntax works as expected.
2. Working on implementation in Agda.
Hinted at why one might want to use this system for PLs.
To do: comparison with pregroups...
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Thank you!
Valeria de Paiva APA2017 – Seattle, WA
Introduction
Lambek Calculus
Categorical Proof Theory
Dialectica Categories
Some References
J. Lambek, The Mathematics of Sentence Structure. American
Mathematical Monthly, pages 154–170, 1958.
de Paiva, The Dialectica Categories, Cambridge University DPMMS PhD
thesis, Technical Report 213, 1991.
de Paiva, A Dialectica Model of the Lambek Calculus, In Proc Eighth
Amsterdam Colloquium, December 17–20, 1991. Proceedings edited by
Martin Stokhof and Paul Dekker, Institute for Logic, Language and
Computation, University of Amsterdam, 1992, pp. 445-462.
Hyland, J. Martin E. Proof theory in the abstract, Annals of pure and
applied logic 114.1-3, 2002, pp. 43-78.
Valeria de Paiva APA2017 – Seattle, WA

More Related Content

What's hot

A Dialectica Model of Relevant Type Theory
A Dialectica Model of Relevant Type TheoryA Dialectica Model of Relevant Type Theory
A Dialectica Model of Relevant Type Theory
Valeria de Paiva
 
Dialectica amongst friends
Dialectica amongst friendsDialectica amongst friends
Dialectica amongst friends
Valeria de Paiva
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
Valeria de Paiva
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
Valeria de Paiva
 
Intuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years laterIntuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years later
Valeria de Paiva
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its role
Valeria de Paiva
 
Relevant Dialectica Categories
Relevant Dialectica CategoriesRelevant Dialectica Categories
Relevant Dialectica Categories
Valeria de Paiva
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
Valeria de Paiva
 
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Valeria de Paiva
 
Benchmarking Linear Logic Proofs, Valeria de Paiva
Benchmarking Linear Logic Proofs, Valeria de PaivaBenchmarking Linear Logic Proofs, Valeria de Paiva
Benchmarking Linear Logic Proofs, Valeria de Paiva
Valeria de Paiva
 
Pure Algebra to Applied AI: a personal journey
Pure Algebra to Applied AI: a personal journeyPure Algebra to Applied AI: a personal journey
Pure Algebra to Applied AI: a personal journey
Valeria de Paiva
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
Valeria de Paiva
 
Dialectica Categories and Petri Nets
Dialectica Categories and Petri NetsDialectica Categories and Petri Nets
Dialectica Categories and Petri Nets
Valeria de Paiva
 
Dialectica Categories and Petri Nets
Dialectica Categories and Petri NetsDialectica Categories and Petri Nets
Dialectica Categories and Petri Nets
Valeria de Paiva
 
Dialectica Categories: the mathematical version
Dialectica Categories: the mathematical versionDialectica Categories: the mathematical version
Dialectica Categories: the mathematical version
Valeria de Paiva
 
Constructive Modal Logics, Once Again
Constructive Modal Logics, Once AgainConstructive Modal Logics, Once Again
Constructive Modal Logics, Once Again
Valeria de Paiva
 
Benchmarking Linear Logic Proofs
Benchmarking Linear Logic ProofsBenchmarking Linear Logic Proofs
Benchmarking Linear Logic Proofs
Valeria de Paiva
 
Benchmarking Linear Logic Proofs
Benchmarking Linear Logic ProofsBenchmarking Linear Logic Proofs
Benchmarking Linear Logic Proofs
Valeria de Paiva
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its role
Valeria de Paiva
 
Logics of Context and Modal Type Theories
Logics of Context and Modal Type TheoriesLogics of Context and Modal Type Theories
Logics of Context and Modal Type Theories
Valeria de Paiva
 

What's hot (20)

A Dialectica Model of Relevant Type Theory
A Dialectica Model of Relevant Type TheoryA Dialectica Model of Relevant Type Theory
A Dialectica Model of Relevant Type Theory
 
Dialectica amongst friends
Dialectica amongst friendsDialectica amongst friends
Dialectica amongst friends
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
 
Intuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years laterIntuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years later
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its role
 
Relevant Dialectica Categories
Relevant Dialectica CategoriesRelevant Dialectica Categories
Relevant Dialectica Categories
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
 
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
 
Benchmarking Linear Logic Proofs, Valeria de Paiva
Benchmarking Linear Logic Proofs, Valeria de PaivaBenchmarking Linear Logic Proofs, Valeria de Paiva
Benchmarking Linear Logic Proofs, Valeria de Paiva
 
Pure Algebra to Applied AI: a personal journey
Pure Algebra to Applied AI: a personal journeyPure Algebra to Applied AI: a personal journey
Pure Algebra to Applied AI: a personal journey
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
 
Dialectica Categories and Petri Nets
Dialectica Categories and Petri NetsDialectica Categories and Petri Nets
Dialectica Categories and Petri Nets
 
Dialectica Categories and Petri Nets
Dialectica Categories and Petri NetsDialectica Categories and Petri Nets
Dialectica Categories and Petri Nets
 
Dialectica Categories: the mathematical version
Dialectica Categories: the mathematical versionDialectica Categories: the mathematical version
Dialectica Categories: the mathematical version
 
Constructive Modal Logics, Once Again
Constructive Modal Logics, Once AgainConstructive Modal Logics, Once Again
Constructive Modal Logics, Once Again
 
Benchmarking Linear Logic Proofs
Benchmarking Linear Logic ProofsBenchmarking Linear Logic Proofs
Benchmarking Linear Logic Proofs
 
Benchmarking Linear Logic Proofs
Benchmarking Linear Logic ProofsBenchmarking Linear Logic Proofs
Benchmarking Linear Logic Proofs
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its role
 
Logics of Context and Modal Type Theories
Logics of Context and Modal Type TheoriesLogics of Context and Modal Type Theories
Logics of Context and Modal Type Theories
 

Similar to Dialectica Categories for the Lambek Calculus

Dialectica Categories Surprising Application: Cardinalities of the Continuum
Dialectica Categories Surprising Application: Cardinalities of the ContinuumDialectica Categories Surprising Application: Cardinalities of the Continuum
Dialectica Categories Surprising Application: Cardinalities of the Continuum
Valeria de Paiva
 
Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories Revisited
Valeria de Paiva
 
Dialectica Categories Surprising Application: mapping cardinal invariants
Dialectica Categories Surprising Application: mapping cardinal invariantsDialectica Categories Surprising Application: mapping cardinal invariants
Dialectica Categories Surprising Application: mapping cardinal invariants
Valeria de Paiva
 
Fibrational Versions of Dialectica Categories
Fibrational Versions of Dialectica CategoriesFibrational Versions of Dialectica Categories
Fibrational Versions of Dialectica CategoriesValeria de Paiva
 
Dialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de PaivaDialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de Paiva
Valeria de Paiva
 
Who's afraid of Categorical models?
Who's afraid of Categorical models?Who's afraid of Categorical models?
Who's afraid of Categorical models?
Valeria de Paiva
 
Dialectica Categories and Cardinalities of the Continuum (March2014)
Dialectica Categories and  Cardinalities of the Continuum (March2014)Dialectica Categories and  Cardinalities of the Continuum (March2014)
Dialectica Categories and Cardinalities of the Continuum (March2014)
Valeria de Paiva
 
Edwardian Proofs as futuristic Programs for Personal Assistants
Edwardian Proofs as futuristic Programs for Personal AssistantsEdwardian Proofs as futuristic Programs for Personal Assistants
Edwardian Proofs as futuristic Programs for Personal Assistants
Valeria de Paiva
 
Category Theory for All (NASSLLI 2012)
Category Theory for All (NASSLLI 2012)Category Theory for All (NASSLLI 2012)
Category Theory for All (NASSLLI 2012)
Valeria de Paiva
 
Why (categorical) representation theory?
Why (categorical) representation theory?Why (categorical) representation theory?
Why (categorical) representation theory?
Daniel Tubbenhauer
 
Dialectica Categories... and Lax Topological Spaces?
Dialectica Categories... and Lax Topological Spaces?Dialectica Categories... and Lax Topological Spaces?
Dialectica Categories... and Lax Topological Spaces?
Valeria de Paiva
 
Equivalence of Logics: the categorical proof theory perspective
Equivalence of Logics: the categorical proof theory perspectiveEquivalence of Logics: the categorical proof theory perspective
Equivalence of Logics: the categorical proof theory perspective
Valeria de Paiva
 
Lambda Calculus by Dustin Mulcahey
Lambda Calculus by Dustin Mulcahey Lambda Calculus by Dustin Mulcahey
Lambda Calculus by Dustin Mulcahey
Hakka Labs
 
Edwardian Proofs as Futuristic Programs
Edwardian Proofs as Futuristic ProgramsEdwardian Proofs as Futuristic Programs
Edwardian Proofs as Futuristic Programs
Valeria de Paiva
 
Dialectica Comonoids
Dialectica ComonoidsDialectica Comonoids
Dialectica Comonoids
Valeria de Paiva
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
Statistics Homework Helper
 
Game Semantics Intuitions
Game Semantics IntuitionsGame Semantics Intuitions
Game Semantics Intuitions
Valeria de Paiva
 
Categorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneCategorical Proof Theory for Everyone
Categorical Proof Theory for Everyone
Valeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
Valeria de Paiva
 
A gentle intruduction to category theory
A gentle intruduction to category theoryA gentle intruduction to category theory
A gentle intruduction to category theoryJeff Jampa
 

Similar to Dialectica Categories for the Lambek Calculus (20)

Dialectica Categories Surprising Application: Cardinalities of the Continuum
Dialectica Categories Surprising Application: Cardinalities of the ContinuumDialectica Categories Surprising Application: Cardinalities of the Continuum
Dialectica Categories Surprising Application: Cardinalities of the Continuum
 
Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories Revisited
 
Dialectica Categories Surprising Application: mapping cardinal invariants
Dialectica Categories Surprising Application: mapping cardinal invariantsDialectica Categories Surprising Application: mapping cardinal invariants
Dialectica Categories Surprising Application: mapping cardinal invariants
 
Fibrational Versions of Dialectica Categories
Fibrational Versions of Dialectica CategoriesFibrational Versions of Dialectica Categories
Fibrational Versions of Dialectica Categories
 
Dialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de PaivaDialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de Paiva
 
Who's afraid of Categorical models?
Who's afraid of Categorical models?Who's afraid of Categorical models?
Who's afraid of Categorical models?
 
Dialectica Categories and Cardinalities of the Continuum (March2014)
Dialectica Categories and  Cardinalities of the Continuum (March2014)Dialectica Categories and  Cardinalities of the Continuum (March2014)
Dialectica Categories and Cardinalities of the Continuum (March2014)
 
Edwardian Proofs as futuristic Programs for Personal Assistants
Edwardian Proofs as futuristic Programs for Personal AssistantsEdwardian Proofs as futuristic Programs for Personal Assistants
Edwardian Proofs as futuristic Programs for Personal Assistants
 
Category Theory for All (NASSLLI 2012)
Category Theory for All (NASSLLI 2012)Category Theory for All (NASSLLI 2012)
Category Theory for All (NASSLLI 2012)
 
Why (categorical) representation theory?
Why (categorical) representation theory?Why (categorical) representation theory?
Why (categorical) representation theory?
 
Dialectica Categories... and Lax Topological Spaces?
Dialectica Categories... and Lax Topological Spaces?Dialectica Categories... and Lax Topological Spaces?
Dialectica Categories... and Lax Topological Spaces?
 
Equivalence of Logics: the categorical proof theory perspective
Equivalence of Logics: the categorical proof theory perspectiveEquivalence of Logics: the categorical proof theory perspective
Equivalence of Logics: the categorical proof theory perspective
 
Lambda Calculus by Dustin Mulcahey
Lambda Calculus by Dustin Mulcahey Lambda Calculus by Dustin Mulcahey
Lambda Calculus by Dustin Mulcahey
 
Edwardian Proofs as Futuristic Programs
Edwardian Proofs as Futuristic ProgramsEdwardian Proofs as Futuristic Programs
Edwardian Proofs as Futuristic Programs
 
Dialectica Comonoids
Dialectica ComonoidsDialectica Comonoids
Dialectica Comonoids
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
 
Game Semantics Intuitions
Game Semantics IntuitionsGame Semantics Intuitions
Game Semantics Intuitions
 
Categorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneCategorical Proof Theory for Everyone
Categorical Proof Theory for Everyone
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
A gentle intruduction to category theory
A gentle intruduction to category theoryA gentle intruduction to category theory
A gentle intruduction to category theory
 

More from Valeria de Paiva

Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical Constructions
Valeria de Paiva
 
Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021
Valeria de Paiva
 
PLN para Tod@s
PLN para Tod@sPLN para Tod@s
PLN para Tod@s
Valeria de Paiva
 
Networked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceNetworked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better Science
Valeria de Paiva
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-Veloso
Valeria de Paiva
 
Natural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesNatural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and Machines
Valeria de Paiva
 
Dialectica Petri Nets
Dialectica Petri NetsDialectica Petri Nets
Dialectica Petri Nets
Valeria de Paiva
 
The importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseThe importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in Portuguese
Valeria de Paiva
 
Semantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTSemantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACT
Valeria de Paiva
 
NLCS 2013 opening slides
NLCS 2013 opening slidesNLCS 2013 opening slides
NLCS 2013 opening slides
Valeria de Paiva
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for Dialog
Valeria de Paiva
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
Valeria de Paiva
 
Gender Gap in Computing 2014
Gender Gap in Computing 2014Gender Gap in Computing 2014
Gender Gap in Computing 2014
Valeria de Paiva
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
Valeria de Paiva
 
Linear Logic and Constructive Mathematics, after Shulman
Linear Logic and Constructive Mathematics, after ShulmanLinear Logic and Constructive Mathematics, after Shulman
Linear Logic and Constructive Mathematics, after Shulman
Valeria de Paiva
 

More from Valeria de Paiva (15)

Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical Constructions
 
Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021
 
PLN para Tod@s
PLN para Tod@sPLN para Tod@s
PLN para Tod@s
 
Networked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceNetworked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better Science
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-Veloso
 
Natural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesNatural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and Machines
 
Dialectica Petri Nets
Dialectica Petri NetsDialectica Petri Nets
Dialectica Petri Nets
 
The importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseThe importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in Portuguese
 
Semantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTSemantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACT
 
NLCS 2013 opening slides
NLCS 2013 opening slidesNLCS 2013 opening slides
NLCS 2013 opening slides
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for Dialog
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
 
Gender Gap in Computing 2014
Gender Gap in Computing 2014Gender Gap in Computing 2014
Gender Gap in Computing 2014
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
 
Linear Logic and Constructive Mathematics, after Shulman
Linear Logic and Constructive Mathematics, after ShulmanLinear Logic and Constructive Mathematics, after Shulman
Linear Logic and Constructive Mathematics, after Shulman
 

Recently uploaded

STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 

Recently uploaded (20)

STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 

Dialectica Categories for the Lambek Calculus

  • 1. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Dialectica Categories for the Lambek Calculus Valeria de Paiva Nuance Communications, CA (joint work with Harley Eades III, Augusta, GA) April, 2017 Valeria de Paiva APA2017 – Seattle, WA
  • 2. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Introduction I want to talk to you about modeling the Lambek Calculus, using Dialectica Categories. (dedicated to Jim Lambek, 1922–2014) Valeria de Paiva APA2017 – Seattle, WA
  • 3. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Introduction Lambek Calculus (1958, 1988, 1993, 2012) Valeria de Paiva APA2017 – Seattle, WA
  • 4. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Introduction Lambek Calculus Dialectica Categories putting things together... Valeria de Paiva APA2017 – Seattle, WA
  • 5. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories What is the Lambek Calculus? One of the several “type grammars”in use in Linguistics. A long history: Ajdukiewicz [1935], Bar-Hillel [1953], Lambek [1958, 1961], Ades-Steedman [1982], etc. It provides a syntactic account of sentencehood. Two classes of type grammars: 1. Combinatory Categorial Grammar: Szabolcsi [1992], Steedman-Baldridge [2011], etc.. 2. Categorial Type Logics: van Benthem, Morrill [1994], Moortgat [1994], etc.. Combinators/Lambda-calculus distiction. Both classes worked on nowadays Valeria de Paiva APA2017 – Seattle, WA
  • 6. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories What is the Lambek Calculus? Here a purely a logical system, like usual propositional logic, but with no structural rules at all. Recall the basic logic ‘equation’: A → (B → C) ⇐⇒ A ∧ B → C ⇐⇒ B → (A → C) Now make your conjunction non-commutative, so that A ⊗ B = B ⊗ A Then you end up with two kinds of ‘implication’ ( , ): A → (B C) ⇐⇒ A ⊗ B → C ⇐⇒ B → (A C) Valeria de Paiva APA2017 – Seattle, WA
  • 7. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories What is the Lambek Calculus? sequent calculus Valeria de Paiva APA2017 – Seattle, WA
  • 8. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Why Dialectica Categories? For G¨odel (1958): a way to prove consistency of higher order arithmetic For Girard (1987): a way to show that Linear Logic had serious pedigree For Hyland (1987): An intrinsic way modelling G¨odel’s Dialectica, Proof theory in the abstract (Hyland, 2002) Should produce a CCC, it wouldn’t. For me: a Swiss army knife... Valeria de Paiva APA2017 – Seattle, WA
  • 9. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Categorical Proof Theory Types are formulae/objects in appropriate category, Terms/programs are proofs/morphisms in the category, Logical constructors are appropriate categorical constructions. Most important: Reduction is proof normalization (Tait) Outcome: Transfer results/tools from Logic to Categories to Computing Valeria de Paiva APA2017 – Seattle, WA
  • 10. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Curry-Howard for Implication Natural deduction rules for implication (without λ-terms) A → B A B [A] · · · · π B A → B Natural deduction rules for implication (with λ-terms) M : A → B N : A M(N): B [x : A] · · · · π M : B λx.M : A → B function application abstraction Valeria de Paiva APA2017 – Seattle, WA
  • 11. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Valeria de Paiva APA2017 – Seattle, WA
  • 12. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Valeria de Paiva APA2017 – Seattle, WA
  • 13. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Valeria de Paiva APA2017 – Seattle, WA
  • 14. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories The challenges of modeling Linear Logic Traditional categorical modeling of intuitionistic logic: formula A object A of appropriate category A ∧ B A × B (real product) A → B BA (set of functions from A to B) But these are real products, so we have projections (A × B → A) and diagonals (A → A × A) which correspond to deletion and duplication of resources. Not linear!!! Need to use tensor products and internal homs in Category Theory. Hard to define the “make-everything-as-usual”operator ”!”. Valeria de Paiva APA2017 – Seattle, WA
  • 15. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories The simplest Dialectica Category The Dialectica category Dial2(Sets) objects are triples, an object is A = (U, X, R), where U and X are sets and R ⊆ U × X is a set-theoretic relation. A morphism from A to B = (V , Y , S) is a pair of functions f : U → V and F : Y → X such that uRFy → fuSy. Theorem 1: You just have to find the right structure. . . (de Paiva 1989) The category Dial2(Sets) has a symmetric mo- noidal closed structure, and involution which makes it a model of (exponential-free) multiplicative linear logic. Theorem 2 (Hard part): You still want usual logic. . . There is a comonad ! which models exponentials/modalities, hence recovers Intuitionistic and Classical Logic. Valeria de Paiva APA2017 – Seattle, WA
  • 16. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Can we give some intuition for these categories? Blass makes the case for thinking of problems in computational complexity. Intuitively an object of Dial2(Sets) (U, X, R) can be seen as representing a problem. The elements of U are instances of the problem, while the elements of X are possible answers to the problem instances. The relation R says whether the answer is correct for that instance of the problem or not. The morphisms between these problems have two components: while f maps instances of a problem to instances of another, F maps solutions ‘backwards’. Valeria de Paiva APA2017 – Seattle, WA
  • 17. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories What’s different for the Lambek calculus? Need to have a non-commutative tensor ⊗. Need to have two (left and right) implications. Can we have these disturbing minimally the (admitedly) complicated structures? Valeria de Paiva APA2017 – Seattle, WA
  • 18. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories The non-commutative Dialectica Category (de Paiva 1992, Amsterdam Colloquium) Category DialM(Sets), objects are A = (U, X, R), where U and X are sets and U × X → M is a M-valued relation. A morphism from A to B = (V , Y , S) is a pair of functions f : U → V and F : Y → X such that R(u, Fy) ≤M S(fu, y). Theorem 3: have the right strux. . . The category DialM(Sets) has a non-symmetric monoidal closed structure, hence it is a model of (exponential-free) non-commutative multiplicative linear logic. Theorem 4 (Hard part): You still want usual logic. . . There is a comonad ! which models exponentials/modalities, and a comonad κ (Yetter) that brings back commutativity. Putting the two together we recover Intuitionistic and Classical Logic. Valeria de Paiva APA2017 – Seattle, WA
  • 19. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Conclusions Introduced you to the Lambek calculus, as a relative of Linear Logic Introduced you to Dialectica categories (there’s much more to say...) Described one example of Dialectica categories DialM(Sets), a non-commutative case. Should’ve shown you the modalities that make it work. Advantages over previous work: 1. Proved syntax works as expected. 2. Working on implementation in Agda. Hinted at why one might want to use this system for PLs. To do: comparison with pregroups... Valeria de Paiva APA2017 – Seattle, WA
  • 20. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Thank you! Valeria de Paiva APA2017 – Seattle, WA
  • 21. Introduction Lambek Calculus Categorical Proof Theory Dialectica Categories Some References J. Lambek, The Mathematics of Sentence Structure. American Mathematical Monthly, pages 154–170, 1958. de Paiva, The Dialectica Categories, Cambridge University DPMMS PhD thesis, Technical Report 213, 1991. de Paiva, A Dialectica Model of the Lambek Calculus, In Proc Eighth Amsterdam Colloquium, December 17–20, 1991. Proceedings edited by Martin Stokhof and Paul Dekker, Institute for Logic, Language and Computation, University of Amsterdam, 1992, pp. 445-462. Hyland, J. Martin E. Proof theory in the abstract, Annals of pure and applied logic 114.1-3, 2002, pp. 43-78. Valeria de Paiva APA2017 – Seattle, WA