SlideShare a Scribd company logo
0/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Categorical Semantics for Explicit Substitutions
Valeria de Paiva
Cambridge Category Theory
June 2021
0 / 31
1/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Thanks for the invitation, José!
1 / 31
2/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
The Topos Institute
... we draw on rich mathematical frameworks for model-
ling relationships, including category theory, topos theory,
and type theory, as well as a long tradition of practical
construction of tools in programming languages, machine
intelligence, and ubiquitous computing.
2 / 31
3/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Journey UK
3 / 31
4/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Journey California
4 / 31
5/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Applied perspective: CAM (Categorical Abstract Machine)
(INRIA’s announcement)
5 / 31
6/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
xSLAM: eXplicit Substitutions Linear Abstract Machine
Ritter’s PhD thesis on categorical combinators for the
Calculus of Constructions (Cambridge 1992, TCS 1994)
de Paiva’s PhD thesis on models of Linear Logic & linear
lambda-calculus (Cambridge 1990)
Put the two together for Categorical Abstract Machines for
Linear Functional Programming
Project xSLAM Explicit Substitutions for Linear Abstract
Machines (EPSRC 1997-2000)
6 / 31
7/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
xSLAM: eXplicit Substitutions Linear Abstract Machine
Twenty years later:
More than 10 papers submitted to conferences
Only two in journals: Linear Explicit Substitutions. (Ghani, de
Paiva, Ritter, 2000) and Relating Categorical Semantics for
Intuitionistic Linear Logic (Maietti, Maneggia, de Paiva, Ritter
2005)
a Master’s thesis: An Abstract Machine based on Linear Logic
and Explicit Substitutions. Francisco Alberti, 1997
Two international workshops: Logical Abstract Machines
(Saarbruecken, 1998), Logical Abstract Machines
(Birmingham, 1999)
an International Dagstuhl meeting: Linear Logic and
Applications (1999)
7 / 31
8/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
xSLAM Project Work
1 E. Ritter. A calculus for Resource allocation. Technical Report, University of Birmingham, 2000.
2 Maietti, de Paiva, Ritter. Linear primitive recursion. manuscript 2000.
3 Maietti, de Paiva, Ritter. Categorical Models for Intuitionistic and Linear Type Theory. FoSSaCS 2000.
4 Cervesato, de Paiva, Ritter. Explicit Substitutions for Linear Logical Frameworks. LFM 1999
5 E. Ritter. Characterising Explicit Substitutions which Preserve Termination. TLCA 1999
6 Ghani, de Paiva, Ritter. Explicit Substitutions for Constructive Necessity. ICALP 1998
7 Ghani, de Paiva, Ritter. Categorical Models for Explicit Substitutions. FoSSaCS 1999.
8 de Paiva, E. Ritter. On Explicit Substitutions and Names. ICALP 1997.
9 Nesi, de Paiva, Ritter. Rewriting Properties of Combinators for Intuitionistic Linear Logic. Higher Order
Algebra, Logic and Term Rewriting, HOA’1993.
10 Maietti, de Paiva and Ritter. Normalization Bounds in Rudimentary Linear Logic ICC, 2002.
11 de Paiva and Eike Ritter. Variations on Linear PCF. WESTAPP, 1999.
8 / 31
9/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Twenty years later
9 / 31
10/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Categorical Models for what?
Explicit substitutions
In computer science, lambda calculi are said to have expli-
cit substitutions if they pay special attention to the forma-
lization of the process of substitution. This is in contrast
to the standard lambda calculus where substitutions are
performed by beta reductions in an implicit manner which
is not expressed within the calculus.
The concept of explicit substitutions has become notorious
(despite a large number of published calculi of explicit
substitutions in the literature with quite different characteristics)
because the notion often turns up (implicitly and explicitly) in
formal descriptions [...] Wikipedia, Feb 2021
Syntactic calculi, plenty of them. No models?
10 / 31
11/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Why Categorical Semantics?
Any syntactic calculus worth our attention will have a
categorical semantics
Mathematics as a source of intuition
Showing this for IPL and ILL (works for CS4 too) 11 / 31
12/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Why functional languages?
Programs as mathematical functions transforming inputs into
outputs
Work on inductively defined data structures like lists, trees
⇒ no side effects
⇒ can employ mathematical reasoning and substitute equals for
equals
⇒ function definition and application central part of languages like
ML, Haskell, CAML, OCAML
(usually) Have strong typechecking
⇒ can detect many errors already at compile-time
12 / 31
13/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
What you will NOT see in this talk
Intersection types (idempotent or not)
Evaluation strategies
Dynamic types
Patterns
Proof-nets
Nominal syntax
Geometry of Interaction
explicit substitutions reductions
13 / 31
14/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Prototypical language λ-calculus
Terms:
M ::= x | λx : A.M | MM
Types:
A ::= G | A → A
Meaning of terms:
x: Variable (placeholder)
λx : A.M: Function expecting input of type A
MM: Function application
Single out well-formed terms (check whether correct kind of
argument supplied)
14 / 31
15/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Lambda calculus
Judgements Γ ` M : A
Γ, x : A ` x : A
Γ, x : A ` M : B
Γ ` λx : A.M : A → B
Γ ` M : A → B Γ ` N : A
Γ ` MN : B
To obtain a Turing-complete language, add recursively defined
functions via letrec and add means for defining inductively
defined data structures like lists, trees, etc
Computation done via β-reduction
(λx : A.M)N M[N/x]
where M[N/x] is M with x replaced by N
15 / 31
16/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Environment machines
Implementing β reduction efficiently is hard
Traditional solution:
Reduce λ-terms in an environment
storing bindings of terms for variables separately
⇒ have two kinds of expressions:
Environments hMi /xi i: lists of bindings
Terms: as before plus new closures f ∗ M
Modified β-reduction stores substitution in the environment
(λx.t)u ⇒ hu/xi ∗ t
New rewrite rules to eliminate substitutions
hu/xi ∗ t ⇒∗ t[u/x]
Transforming this ‘trick’ of implementation into a logical calculus
⇒ the reason for ‘explicit substitutions’
16 / 31
17/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
The λσ-Calculus (Abadi, Cardelli, Curien, Lévy 1991)
Terms of the λ-calculus +
Application of a substitution to a term: f ∗ t
Start substitution: hi
Parallel and sequential composition: hf , t/xi, f ; g
Typing Rules:
Substitutions are judgements Γ ` f : ∆
Γ0 ⊆ Γ
Γ ` hi : Γ0
Γ ` f :∆ Γ ` t :A
Γ ` hf , t/xi : ∆, x : A
Γ ` f : ∆ ∆ ` t : A
Γ ` f ∗ t : A
Γ ` f :∆ ∆ ` g :Ψ
Γ ` f ; g : Ψ
Key Idea 1: Every λσ-term is equivalent to a λ-term.
Key Idea 2: Contexts z :A×B and x :A, y :B are not equal
17 / 31
18/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Kesner: Summing-up ES (2009)
explicit substitutions (ES): decomposing implicit substitutions
into atomic steps for a better understanding of the execution
models of higher-order languages;
incorporate substitution operators into the language, and
transform the equalities of the specification into a set of
rewriting rules;
composition of substitutions allows more sophisticated
interactions;
ES can be defined with unary or n-ary substitutions, using de
Bruijn notation or levels or nominal logic, or combinators, or
director strings or named variables;
a calculus with ES can be also seen as a term notation for a
logical system where the reduction rules behave like cut
elimination transformations;
Mellies counter-example 1995 shows ‘a flaw in the design of
ES calculi’
18 / 31
19/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Kesner ES (2009)
ways to avoid Mellies counter-example and recover the SN
property;
weak lambda calculi. not good for proof assistants;
terms with explicit weakening constructors;
Her way: a perpetual reduction strategy and a principle
“Implicit substitution implies normalisation of Explicit
substitution”= IE property;
This extends ideas in [Kes07, Kes08], by the use of
intersection types as well as the use of the Z-property of van
Oostrom [vO] to show confluence.
19 / 31
20/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
What do we want from a Categorical Semantics?
Motivation: What should calculi of explicit substitutions
contain?
What term constructs should we require
What equations should we require
how to discover this for different logics?
Methodology: Extend the Curry Howard correspondence
Category theory as syntax debugging
Internal language gives term constructs  equational theory
Key Ideas:
ES model should contain a model of the underlying λ-calculus
Contexts z :A×B and x :A, y :B are isomorphic
20 / 31
21/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Intuitions from Mathematics
21 / 31
22/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Models of Explicit Substitutions — Indexed Categories
Contexts: Modelled by a cartesian category
Objects are contexts, morphisms are substitutions
Cartesian structure is given by parallel composition
Terms: For every context Γ, define the category D(Γ)
Objects are variable-type pairs x : A
Morphisms (x : A) −→ (y : B) are judgements Γ, x : A ` t : B
Re-indexing: Γ ` f :∆ induces a functor D(f ):D(∆) → D(Γ)
Summary: An indexed category is a functor D : Cop → Cat
22 / 31
23/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
What’s Wrong with Indexed Categories?
Plus Points: Indexed categories induce λσ-equations
hi; h = h Identity of C
h; hi = h Identity of C
hi ∗ t = t Functoriality of D
(f ; g); h = f ; (g; h) Assoc of C-comp
(f ; g) ∗ t = f ∗ (g ∗ t) Functoriality of D
Lemma: Soundness and completeness
Problem 1: Indexed Categories are inherently non linear
Identities in the fibres require judgements Γ, x : A ` x : A
Problem 2: No syntax for forming substitutions from terms
23 / 31
24/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Context-Handling Categories
Solution 1: Remove identities by changing codomain to Set
Solution 2: Add two new natural transformations
Defn: Let B be a SMC (CCC) with T ⊆ |B|. A linear
(cartesian) context handling category is a functor
L: Bop → SetsT and for each type, natural isomorphisms
SubA : L(−)A ⇒ B(−, A) TermA : B(−, A) ⇒ L(−)A
Yoneda lemma: There exists VarA ∈ L(A)A with
TermA(f ) = f ∗ VarA
Equations: We get the following equations
h(f ∗ t)/xi = f ; ht/xi Naturality of Sub
ht/xi ∗ x = t One half of the iso
h(f ∗ x)/xi = f Other half of the iso
24 / 31
25/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Adding Type Structure — E-Categories
Context handling categories model the behaviour of explicit
substitutions, eg their formation and application to terms
Types: Since terms are defined on the fibres, modelling type
constructors requires extra structure on the fibres.
Examples: Given types A, B ∈ T , there are types
A → B, A × B ∈ T . In addition there are isomorphisms,
natural in Γ
E((Γ, A))B
E(Γ)A→B
E(Γ)A × E(Γ)B
E(ΓA×B)
Naturality: Equations distribute explicit subs over terms
f ∗ λx.t = λx.f ∗ t f ∗ (tu) = (f ∗ t)(f ∗ u)
Model Collapse: Contexts z :A×B and x :A, y :B are
isomorphic 25 / 31
26/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Adding Linear Type Structure — L-Categories
Functions: Given types A, B ∈ T , there is a type
A −◦ B ∈ T and isomorphisms, natural in Γ
E((Γ, A))B
E(Γ)A −◦ B
Tensor: But the following doesn’t give an iso
z :A⊗B ∼
= x :A, y :B
E((Γ, A, B))C
E(Γ, A ⊗ B)C
Solution: Demand x :A, y :B ` h(x ⊗y)/zi :A⊗B has inverse.
Γ, x : A, y : B ` f : ∆
Γ, z : A ⊗ B ` let z be x ⊗ y in f : ∆
Key Idea: Category theory guiding the design of the calculus
26 / 31
27/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Modelling the !-type Constructor
Key Idea: !-arises as the comonad of a monoidal adjunction
between CCCs and SMCCs
Recall: Models of explicit substitutions
E categories model calculi with →, ×, 1 types
L categories model calculi with −◦ , ⊗, I types
Defn: A !L-category is a monoidal adjunction where C is an
E category, B is an L-category and F, G preserve types.
Crucially: Requires an isomorphism x : A| ∼
= |z :!A
Γ, x : A|∆ ` f : ∆
Γ|∆, z :!A ` let z be !x in f : ∆
27 / 31
28/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Categorical Theorems
Have three theorems for E-categories (CCCs), three for
L-categories (SMCCs), two for putting the E- and L-categories
together into a !L-category.
(right defn) Every E-category contains an underlying CCC and
every CCC extends to an E-category, in an iso way;
(soundness) We can model the λσ calculus in an E-category;
(completeness) If for every E-category, the interpretation of
two morphisms f , f 0 is the same, then the equality of the
morphisms is proved by the λσ theory.
Similarly for L-categories.
For !L-categories, we use Barber’s DILL calculus with explicit
substitutions xDILL, described in Linear Explicit Substitutions
28 / 31
29/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Conclusions
Indexed categories are inherently non-linear so we use
presheaves
Explicit substitutions are tricky to model as extensionally they
are equivalent to their underlying λ-calculus
Our models reflect this by “taking the isomorphisms seriously”
We get a Curry-Howard correspondence justifying our calculus
Have a working indexed-cat model for linear, cartesian, both
as well as the original for the Calculus of Constructions.
can we do System F and modal logics too? shall we do it?
29 / 31
30/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Further Conclusions
Explicit substitutions discussions bogged on a series of issues:
equations-in-context vs raw reductions
de Bruijn indices vs variable names
untyped vs typed calculi
calculus for abstract machines or for proof assistants, etc..
our explicit substitution calculus has been driven by the
correspondence with the (well-established) cat semantics
Ritter showed that every reduction used in abstract machines
terminates, thus SN is not necessary for their design. also
confluence for terms without metavariables is all you need for
abstract machines ⇒ not worried about SN or metavariables
still: what can we say about ES calculi we skipped? what do
we need to say?
30 / 31
31/31
Motivation
Abstract Machines
Explicit Substitutions
Categorical Semantics
Conclusions
Thanks!
31 / 31

More Related Content

What's hot

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
 
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
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
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
 
Relevant Dialectica Categories
Relevant Dialectica CategoriesRelevant Dialectica Categories
Relevant Dialectica Categories
Valeria de Paiva
 
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
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
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 for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
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
 
Dialectica Categories: the mathematical version
Dialectica Categories: the mathematical versionDialectica Categories: the mathematical version
Dialectica Categories: the mathematical version
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
 
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
 
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
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
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
 

What's hot (20)

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
 
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)
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
 
Intuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years laterIntuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years later
 
Relevant Dialectica Categories
Relevant Dialectica CategoriesRelevant Dialectica Categories
Relevant Dialectica Categories
 
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
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
 
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 for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
 
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
 
Dialectica Categories: the mathematical version
Dialectica Categories: the mathematical versionDialectica Categories: the mathematical version
Dialectica Categories: the mathematical version
 
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
 
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
 
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
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
 
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
 

Similar to Categorical Semantics for Explicit Substitutions

Strict intersection types for the lambda calculus
Strict intersection types for the lambda calculusStrict intersection types for the lambda calculus
Strict intersection types for the lambda calculusunyil96
 
Proof-Theoretic Semantics: Point-free meaninig of first-order systems
Proof-Theoretic Semantics: Point-free meaninig of first-order systemsProof-Theoretic Semantics: Point-free meaninig of first-order systems
Proof-Theoretic Semantics: Point-free meaninig of first-order systems
Marco Benini
 
A Bibliography on the Numerical Solution of Delay Differential Equations.pdf
A Bibliography on the Numerical Solution of Delay Differential Equations.pdfA Bibliography on the Numerical Solution of Delay Differential Equations.pdf
A Bibliography on the Numerical Solution of Delay Differential Equations.pdf
Jackie Gold
 
AI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptxAI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptx
Asst.prof M.Gokilavani
 
leanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL ReasonerleanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL Reasoner
Adriano Melo
 
Dimensional analysis
Dimensional analysisDimensional analysis
Dimensional analysis
nishajj
 
Labelled Variables in Logic Programming: A First Prototipe in tuProlog
Labelled Variables in Logic Programming: A First Prototipe in tuPrologLabelled Variables in Logic Programming: A First Prototipe in tuProlog
Labelled Variables in Logic Programming: A First Prototipe in tuProlog
Roberta Calegari
 
Point-free foundation of Mathematics
Point-free foundation of MathematicsPoint-free foundation of Mathematics
Point-free foundation of Mathematics
Marco Benini
 
MLconf NYC Animashree Anandkumar
MLconf NYC Animashree AnandkumarMLconf NYC Animashree Anandkumar
MLconf NYC Animashree AnandkumarMLconf
 
dimensional_analysis.pptx
dimensional_analysis.pptxdimensional_analysis.pptx
dimensional_analysis.pptx
DinaSaad22
 
Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02
Rabby Bhatt
 
Coping with Semantic Variation Points in Domain-Specific Modeling Languages
Coping with Semantic Variation Points in Domain-Specific Modeling LanguagesCoping with Semantic Variation Points in Domain-Specific Modeling Languages
Coping with Semantic Variation Points in Domain-Specific Modeling Languages
Marc Pantel
 
A Study Of Statistical Models For Query Translation :Finding A Good Unit Of T...
A Study Of Statistical Models For Query Translation :Finding A Good Unit Of T...A Study Of Statistical Models For Query Translation :Finding A Good Unit Of T...
A Study Of Statistical Models For Query Translation :Finding A Good Unit Of T...iyo
 
A discussion on the performance of the CEA (slides)
A discussion on the performance of the CEA (slides)A discussion on the performance of the CEA (slides)
A discussion on the performance of the CEA (slides)Tian Tian
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
Edhole.com
 
Introduction to mathematical modelling
Introduction to mathematical modellingIntroduction to mathematical modelling
Introduction to mathematical modelling
Arup Kumar Paria
 
Reduction Monads and Their Signatures
Reduction Monads and Their SignaturesReduction Monads and Their Signatures
Reduction Monads and Their Signatures
Marco Maggesi
 
AI_session 23 Resolution.pptx
AI_session 23 Resolution.pptxAI_session 23 Resolution.pptx
AI_session 23 Resolution.pptx
Asst.prof M.Gokilavani
 
Outcomes based teaching learning plan (obtlp) linear algebra 1st rev
Outcomes based teaching learning plan (obtlp) linear algebra 1st revOutcomes based teaching learning plan (obtlp) linear algebra 1st rev
Outcomes based teaching learning plan (obtlp) linear algebra 1st rev
Elton John Embodo
 
Compositional Distributional Models of Meaning
Compositional Distributional Models of MeaningCompositional Distributional Models of Meaning
Compositional Distributional Models of Meaning
Dimitrios Kartsaklis
 

Similar to Categorical Semantics for Explicit Substitutions (20)

Strict intersection types for the lambda calculus
Strict intersection types for the lambda calculusStrict intersection types for the lambda calculus
Strict intersection types for the lambda calculus
 
Proof-Theoretic Semantics: Point-free meaninig of first-order systems
Proof-Theoretic Semantics: Point-free meaninig of first-order systemsProof-Theoretic Semantics: Point-free meaninig of first-order systems
Proof-Theoretic Semantics: Point-free meaninig of first-order systems
 
A Bibliography on the Numerical Solution of Delay Differential Equations.pdf
A Bibliography on the Numerical Solution of Delay Differential Equations.pdfA Bibliography on the Numerical Solution of Delay Differential Equations.pdf
A Bibliography on the Numerical Solution of Delay Differential Equations.pdf
 
AI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptxAI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptx
 
leanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL ReasonerleanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL Reasoner
 
Dimensional analysis
Dimensional analysisDimensional analysis
Dimensional analysis
 
Labelled Variables in Logic Programming: A First Prototipe in tuProlog
Labelled Variables in Logic Programming: A First Prototipe in tuPrologLabelled Variables in Logic Programming: A First Prototipe in tuProlog
Labelled Variables in Logic Programming: A First Prototipe in tuProlog
 
Point-free foundation of Mathematics
Point-free foundation of MathematicsPoint-free foundation of Mathematics
Point-free foundation of Mathematics
 
MLconf NYC Animashree Anandkumar
MLconf NYC Animashree AnandkumarMLconf NYC Animashree Anandkumar
MLconf NYC Animashree Anandkumar
 
dimensional_analysis.pptx
dimensional_analysis.pptxdimensional_analysis.pptx
dimensional_analysis.pptx
 
Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02
 
Coping with Semantic Variation Points in Domain-Specific Modeling Languages
Coping with Semantic Variation Points in Domain-Specific Modeling LanguagesCoping with Semantic Variation Points in Domain-Specific Modeling Languages
Coping with Semantic Variation Points in Domain-Specific Modeling Languages
 
A Study Of Statistical Models For Query Translation :Finding A Good Unit Of T...
A Study Of Statistical Models For Query Translation :Finding A Good Unit Of T...A Study Of Statistical Models For Query Translation :Finding A Good Unit Of T...
A Study Of Statistical Models For Query Translation :Finding A Good Unit Of T...
 
A discussion on the performance of the CEA (slides)
A discussion on the performance of the CEA (slides)A discussion on the performance of the CEA (slides)
A discussion on the performance of the CEA (slides)
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
Introduction to mathematical modelling
Introduction to mathematical modellingIntroduction to mathematical modelling
Introduction to mathematical modelling
 
Reduction Monads and Their Signatures
Reduction Monads and Their SignaturesReduction Monads and Their Signatures
Reduction Monads and Their Signatures
 
AI_session 23 Resolution.pptx
AI_session 23 Resolution.pptxAI_session 23 Resolution.pptx
AI_session 23 Resolution.pptx
 
Outcomes based teaching learning plan (obtlp) linear algebra 1st rev
Outcomes based teaching learning plan (obtlp) linear algebra 1st revOutcomes based teaching learning plan (obtlp) linear algebra 1st rev
Outcomes based teaching learning plan (obtlp) linear algebra 1st rev
 
Compositional Distributional Models of Meaning
Compositional Distributional Models of MeaningCompositional Distributional Models of Meaning
Compositional Distributional Models of Meaning
 

More from Valeria de Paiva

Dialectica Comonoids
Dialectica ComonoidsDialectica Comonoids
Dialectica Comonoids
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
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
Valeria de Paiva
 
Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories Revisited
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
 
Categorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneCategorical Proof Theory for Everyone
Categorical Proof Theory for Everyone
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
 
A Semantica Nossa de Cada Dia
A Semantica Nossa de Cada DiaA Semantica Nossa de Cada Dia
A Semantica Nossa de Cada Dia
Valeria de Paiva
 

More from Valeria de Paiva (20)

Dialectica Comonoids
Dialectica ComonoidsDialectica Comonoids
Dialectica Comonoids
 
Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical Constructions
 
Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories Revisited
 
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
 
Categorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneCategorical Proof Theory for Everyone
Categorical Proof Theory for Everyone
 
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
 
A Semantica Nossa de Cada Dia
A Semantica Nossa de Cada DiaA Semantica Nossa de Cada Dia
A Semantica Nossa de Cada Dia
 

Recently uploaded

在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 

Recently uploaded (20)

在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 

Categorical Semantics for Explicit Substitutions

  • 1. 0/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Categorical Semantics for Explicit Substitutions Valeria de Paiva Cambridge Category Theory June 2021 0 / 31
  • 2. 1/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Thanks for the invitation, José! 1 / 31
  • 3. 2/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions The Topos Institute ... we draw on rich mathematical frameworks for model- ling relationships, including category theory, topos theory, and type theory, as well as a long tradition of practical construction of tools in programming languages, machine intelligence, and ubiquitous computing. 2 / 31
  • 5. 4/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Journey California 4 / 31
  • 6. 5/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Applied perspective: CAM (Categorical Abstract Machine) (INRIA’s announcement) 5 / 31
  • 7. 6/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions xSLAM: eXplicit Substitutions Linear Abstract Machine Ritter’s PhD thesis on categorical combinators for the Calculus of Constructions (Cambridge 1992, TCS 1994) de Paiva’s PhD thesis on models of Linear Logic & linear lambda-calculus (Cambridge 1990) Put the two together for Categorical Abstract Machines for Linear Functional Programming Project xSLAM Explicit Substitutions for Linear Abstract Machines (EPSRC 1997-2000) 6 / 31
  • 8. 7/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions xSLAM: eXplicit Substitutions Linear Abstract Machine Twenty years later: More than 10 papers submitted to conferences Only two in journals: Linear Explicit Substitutions. (Ghani, de Paiva, Ritter, 2000) and Relating Categorical Semantics for Intuitionistic Linear Logic (Maietti, Maneggia, de Paiva, Ritter 2005) a Master’s thesis: An Abstract Machine based on Linear Logic and Explicit Substitutions. Francisco Alberti, 1997 Two international workshops: Logical Abstract Machines (Saarbruecken, 1998), Logical Abstract Machines (Birmingham, 1999) an International Dagstuhl meeting: Linear Logic and Applications (1999) 7 / 31
  • 9. 8/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions xSLAM Project Work 1 E. Ritter. A calculus for Resource allocation. Technical Report, University of Birmingham, 2000. 2 Maietti, de Paiva, Ritter. Linear primitive recursion. manuscript 2000. 3 Maietti, de Paiva, Ritter. Categorical Models for Intuitionistic and Linear Type Theory. FoSSaCS 2000. 4 Cervesato, de Paiva, Ritter. Explicit Substitutions for Linear Logical Frameworks. LFM 1999 5 E. Ritter. Characterising Explicit Substitutions which Preserve Termination. TLCA 1999 6 Ghani, de Paiva, Ritter. Explicit Substitutions for Constructive Necessity. ICALP 1998 7 Ghani, de Paiva, Ritter. Categorical Models for Explicit Substitutions. FoSSaCS 1999. 8 de Paiva, E. Ritter. On Explicit Substitutions and Names. ICALP 1997. 9 Nesi, de Paiva, Ritter. Rewriting Properties of Combinators for Intuitionistic Linear Logic. Higher Order Algebra, Logic and Term Rewriting, HOA’1993. 10 Maietti, de Paiva and Ritter. Normalization Bounds in Rudimentary Linear Logic ICC, 2002. 11 de Paiva and Eike Ritter. Variations on Linear PCF. WESTAPP, 1999. 8 / 31
  • 10. 9/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Twenty years later 9 / 31
  • 11. 10/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Categorical Models for what? Explicit substitutions In computer science, lambda calculi are said to have expli- cit substitutions if they pay special attention to the forma- lization of the process of substitution. This is in contrast to the standard lambda calculus where substitutions are performed by beta reductions in an implicit manner which is not expressed within the calculus. The concept of explicit substitutions has become notorious (despite a large number of published calculi of explicit substitutions in the literature with quite different characteristics) because the notion often turns up (implicitly and explicitly) in formal descriptions [...] Wikipedia, Feb 2021 Syntactic calculi, plenty of them. No models? 10 / 31
  • 12. 11/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Why Categorical Semantics? Any syntactic calculus worth our attention will have a categorical semantics Mathematics as a source of intuition Showing this for IPL and ILL (works for CS4 too) 11 / 31
  • 13. 12/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Why functional languages? Programs as mathematical functions transforming inputs into outputs Work on inductively defined data structures like lists, trees ⇒ no side effects ⇒ can employ mathematical reasoning and substitute equals for equals ⇒ function definition and application central part of languages like ML, Haskell, CAML, OCAML (usually) Have strong typechecking ⇒ can detect many errors already at compile-time 12 / 31
  • 14. 13/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions What you will NOT see in this talk Intersection types (idempotent or not) Evaluation strategies Dynamic types Patterns Proof-nets Nominal syntax Geometry of Interaction explicit substitutions reductions 13 / 31
  • 15. 14/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Prototypical language λ-calculus Terms: M ::= x | λx : A.M | MM Types: A ::= G | A → A Meaning of terms: x: Variable (placeholder) λx : A.M: Function expecting input of type A MM: Function application Single out well-formed terms (check whether correct kind of argument supplied) 14 / 31
  • 16. 15/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Lambda calculus Judgements Γ ` M : A Γ, x : A ` x : A Γ, x : A ` M : B Γ ` λx : A.M : A → B Γ ` M : A → B Γ ` N : A Γ ` MN : B To obtain a Turing-complete language, add recursively defined functions via letrec and add means for defining inductively defined data structures like lists, trees, etc Computation done via β-reduction (λx : A.M)N M[N/x] where M[N/x] is M with x replaced by N 15 / 31
  • 17. 16/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Environment machines Implementing β reduction efficiently is hard Traditional solution: Reduce λ-terms in an environment storing bindings of terms for variables separately ⇒ have two kinds of expressions: Environments hMi /xi i: lists of bindings Terms: as before plus new closures f ∗ M Modified β-reduction stores substitution in the environment (λx.t)u ⇒ hu/xi ∗ t New rewrite rules to eliminate substitutions hu/xi ∗ t ⇒∗ t[u/x] Transforming this ‘trick’ of implementation into a logical calculus ⇒ the reason for ‘explicit substitutions’ 16 / 31
  • 18. 17/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions The λσ-Calculus (Abadi, Cardelli, Curien, Lévy 1991) Terms of the λ-calculus + Application of a substitution to a term: f ∗ t Start substitution: hi Parallel and sequential composition: hf , t/xi, f ; g Typing Rules: Substitutions are judgements Γ ` f : ∆ Γ0 ⊆ Γ Γ ` hi : Γ0 Γ ` f :∆ Γ ` t :A Γ ` hf , t/xi : ∆, x : A Γ ` f : ∆ ∆ ` t : A Γ ` f ∗ t : A Γ ` f :∆ ∆ ` g :Ψ Γ ` f ; g : Ψ Key Idea 1: Every λσ-term is equivalent to a λ-term. Key Idea 2: Contexts z :A×B and x :A, y :B are not equal 17 / 31
  • 19. 18/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Kesner: Summing-up ES (2009) explicit substitutions (ES): decomposing implicit substitutions into atomic steps for a better understanding of the execution models of higher-order languages; incorporate substitution operators into the language, and transform the equalities of the specification into a set of rewriting rules; composition of substitutions allows more sophisticated interactions; ES can be defined with unary or n-ary substitutions, using de Bruijn notation or levels or nominal logic, or combinators, or director strings or named variables; a calculus with ES can be also seen as a term notation for a logical system where the reduction rules behave like cut elimination transformations; Mellies counter-example 1995 shows ‘a flaw in the design of ES calculi’ 18 / 31
  • 20. 19/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Kesner ES (2009) ways to avoid Mellies counter-example and recover the SN property; weak lambda calculi. not good for proof assistants; terms with explicit weakening constructors; Her way: a perpetual reduction strategy and a principle “Implicit substitution implies normalisation of Explicit substitution”= IE property; This extends ideas in [Kes07, Kes08], by the use of intersection types as well as the use of the Z-property of van Oostrom [vO] to show confluence. 19 / 31
  • 21. 20/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions What do we want from a Categorical Semantics? Motivation: What should calculi of explicit substitutions contain? What term constructs should we require What equations should we require how to discover this for different logics? Methodology: Extend the Curry Howard correspondence Category theory as syntax debugging Internal language gives term constructs equational theory Key Ideas: ES model should contain a model of the underlying λ-calculus Contexts z :A×B and x :A, y :B are isomorphic 20 / 31
  • 22. 21/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Intuitions from Mathematics 21 / 31
  • 23. 22/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Models of Explicit Substitutions — Indexed Categories Contexts: Modelled by a cartesian category Objects are contexts, morphisms are substitutions Cartesian structure is given by parallel composition Terms: For every context Γ, define the category D(Γ) Objects are variable-type pairs x : A Morphisms (x : A) −→ (y : B) are judgements Γ, x : A ` t : B Re-indexing: Γ ` f :∆ induces a functor D(f ):D(∆) → D(Γ) Summary: An indexed category is a functor D : Cop → Cat 22 / 31
  • 24. 23/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions What’s Wrong with Indexed Categories? Plus Points: Indexed categories induce λσ-equations hi; h = h Identity of C h; hi = h Identity of C hi ∗ t = t Functoriality of D (f ; g); h = f ; (g; h) Assoc of C-comp (f ; g) ∗ t = f ∗ (g ∗ t) Functoriality of D Lemma: Soundness and completeness Problem 1: Indexed Categories are inherently non linear Identities in the fibres require judgements Γ, x : A ` x : A Problem 2: No syntax for forming substitutions from terms 23 / 31
  • 25. 24/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Context-Handling Categories Solution 1: Remove identities by changing codomain to Set Solution 2: Add two new natural transformations Defn: Let B be a SMC (CCC) with T ⊆ |B|. A linear (cartesian) context handling category is a functor L: Bop → SetsT and for each type, natural isomorphisms SubA : L(−)A ⇒ B(−, A) TermA : B(−, A) ⇒ L(−)A Yoneda lemma: There exists VarA ∈ L(A)A with TermA(f ) = f ∗ VarA Equations: We get the following equations h(f ∗ t)/xi = f ; ht/xi Naturality of Sub ht/xi ∗ x = t One half of the iso h(f ∗ x)/xi = f Other half of the iso 24 / 31
  • 26. 25/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Adding Type Structure — E-Categories Context handling categories model the behaviour of explicit substitutions, eg their formation and application to terms Types: Since terms are defined on the fibres, modelling type constructors requires extra structure on the fibres. Examples: Given types A, B ∈ T , there are types A → B, A × B ∈ T . In addition there are isomorphisms, natural in Γ E((Γ, A))B E(Γ)A→B E(Γ)A × E(Γ)B E(ΓA×B) Naturality: Equations distribute explicit subs over terms f ∗ λx.t = λx.f ∗ t f ∗ (tu) = (f ∗ t)(f ∗ u) Model Collapse: Contexts z :A×B and x :A, y :B are isomorphic 25 / 31
  • 27. 26/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Adding Linear Type Structure — L-Categories Functions: Given types A, B ∈ T , there is a type A −◦ B ∈ T and isomorphisms, natural in Γ E((Γ, A))B E(Γ)A −◦ B Tensor: But the following doesn’t give an iso z :A⊗B ∼ = x :A, y :B E((Γ, A, B))C E(Γ, A ⊗ B)C Solution: Demand x :A, y :B ` h(x ⊗y)/zi :A⊗B has inverse. Γ, x : A, y : B ` f : ∆ Γ, z : A ⊗ B ` let z be x ⊗ y in f : ∆ Key Idea: Category theory guiding the design of the calculus 26 / 31
  • 28. 27/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Modelling the !-type Constructor Key Idea: !-arises as the comonad of a monoidal adjunction between CCCs and SMCCs Recall: Models of explicit substitutions E categories model calculi with →, ×, 1 types L categories model calculi with −◦ , ⊗, I types Defn: A !L-category is a monoidal adjunction where C is an E category, B is an L-category and F, G preserve types. Crucially: Requires an isomorphism x : A| ∼ = |z :!A Γ, x : A|∆ ` f : ∆ Γ|∆, z :!A ` let z be !x in f : ∆ 27 / 31
  • 29. 28/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Categorical Theorems Have three theorems for E-categories (CCCs), three for L-categories (SMCCs), two for putting the E- and L-categories together into a !L-category. (right defn) Every E-category contains an underlying CCC and every CCC extends to an E-category, in an iso way; (soundness) We can model the λσ calculus in an E-category; (completeness) If for every E-category, the interpretation of two morphisms f , f 0 is the same, then the equality of the morphisms is proved by the λσ theory. Similarly for L-categories. For !L-categories, we use Barber’s DILL calculus with explicit substitutions xDILL, described in Linear Explicit Substitutions 28 / 31
  • 30. 29/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Conclusions Indexed categories are inherently non-linear so we use presheaves Explicit substitutions are tricky to model as extensionally they are equivalent to their underlying λ-calculus Our models reflect this by “taking the isomorphisms seriously” We get a Curry-Howard correspondence justifying our calculus Have a working indexed-cat model for linear, cartesian, both as well as the original for the Calculus of Constructions. can we do System F and modal logics too? shall we do it? 29 / 31
  • 31. 30/31 Motivation Abstract Machines Explicit Substitutions Categorical Semantics Conclusions Further Conclusions Explicit substitutions discussions bogged on a series of issues: equations-in-context vs raw reductions de Bruijn indices vs variable names untyped vs typed calculi calculus for abstract machines or for proof assistants, etc.. our explicit substitution calculus has been driven by the correspondence with the (well-established) cat semantics Ritter showed that every reduction used in abstract machines terminates, thus SN is not necessary for their design. also confluence for terms without metavariables is all you need for abstract machines ⇒ not worried about SN or metavariables still: what can we say about ES calculi we skipped? what do we need to say? 30 / 31