SlideShare a Scribd company logo
Point-free semantics of dependent type theories
M Benini, R Bonacina
Università degli Studi dell’Insubria
University of Canterbury,
December 4th, 2017
Why
Also known as constructive type theory, or Martin-Löf type theory,
dependent type theory has recently seen a huge raise of interest
because it is the basis for homotopy type theory.
Semantics for dependent type theories are known: they are variations
on the semantics of typed λ-calculi. Usually, they are complex:
they are either based on the advanced theory of orders (specialised
domains), or on category theory;
in the case of categorical models, they use non-elementary
constructions (fibrations, higher-order cells, . . . );
homotopy type theory has an intended semantics based on
∞-groupoids;
the only categorical semantics (Seely) which does not use those
advanced constructions, contains a problem (i.e., it does not
work). Locally Cartesian closed categories are not enough to
properly model dependent type theory (Hoffman, Dybjer).
( 2 of 17 )
Why
Why are complex, higher-order models needed? Are they, really?
These were the initial questions that have been addressed in
Roberta’s master thesis. The answer was that there is no need for
such complex constructions: a categorical model, using no
higher-order constructions, suffices to provide a sound and complete
explanation to dependent type theory.
However, the result was not completely satisfactory because
the notion of inductive theory was sketched but not precisely
defined in all the details;
some passages in the soundness and completeness proofs were
reasonable but not formal;
in the overall, there was the feeling that the result had to be
polished to reach its maximal generality.
( 3 of 17 )
What
So, the visit here, at the University of Canterbury had the purpose to
precisely define the syntactic notion of inductive theory, and pave
the way toward its extension to higher-inductive types, as defined
in homotopy type theory;
polish the semantics and fix all the passages in the soundness and
completeness proofs.
In short, we did it!
In the following, I am going to give a glance to the semantics.
( 4 of 17 )
Point-free semantics
Consider the following inductive types:
the 0 type, which is characterised as the type having no terms;
the N−
, which is characterised by the rule having the inductive step
n : N−
→ succ(n) : N−
but not the basic step 0 : N−
.
Usually, these two types are considered equivalent because they have
no terms belonging to them: the minimal fix point of their
constructing rules is the same.
However, they can be distinguished: if x : 0 and y : N−
stand for some
objects in the types 0 and N−
, it is evident that no object other than
x is forced to be in 0, while succ(y), succ(succ(y)), ... are all in N−
.
We want a semantics in which the meaning of a type depends on the
context in which it is defined, so to be able to distinguish 0 from N−
.
( 5 of 17 )
Point-free semantics
The semantics is then point-free: types and their terms do not
identify entities (“points”) in some universe. They explain how
judgements are kept together by the logical inferences. And they do
so by taking local values, which change under different assumptions.
So N−
is not equivalent to the 0 type: they are the same thing in the
empty context, while they differ in a context in which we assume both
types contain at least one term.
( 6 of 17 )
The big picture
The semantics is based on category theory.
An inductive theory, i.e., a series of inductive types defined in the
standard dependent type theory, has models in the class of
ML-categories.
These categories allow to interpret dependent type theory and
inductive types in a natural way. A category which makes valid all the
judgements of an inductive theory is a model, and it has holds that
every inductive theory has a model (Soundness);
every judgement which is valid in any model of an inductive theory
is derivable (Completeness);
for every inductive theory there is a model which is contained in
every other model (Classification).
( 7 of 17 )
The big picture
Mctx
Γ
MΓ
∆
M∆
•
M•
Mctx is a partial order with minimum • in which all paths are finite;
each MΓ is a preorder with Γ as its minimum such that each pair of
elements has a least upper bound;
Mctx and all the MΓ form the ML-category (for Martin-Löf).
( 8 of 17 )
Inside pyramids
Each MΓ has the following structure:
Γ
π π π π
a
∈
a
∈
b
∈
b
∈A
∈
B
∈Ui
∈
Ui+1
Inside pyramids
Each MΓ has the following structure:
Γ
π π π π
a
∈
a
∈
b
∈
b
∈A
∈
B
∈Ui
∈
Ui+1
context
proper terms
proper types
universes
( 9 of 17 )
Interpretation
x : A,y : B,z : C ctx =
x : A
y : B
z : C
•ctx
x : Actx
x : A,y : Bctx
x : A,y : B,z : C ctx
in Mctx
Γ a : A = Γ a A
π ∈
in MΓ
Γ a ≡ b : A = Γ
a
b
A
π ∈
π ∈
i in MΓ
( 10 of 17 )
Variables
Variables have more than one role in dependent type theory:
they are hypotheses in the context;
they are terms in the language;
they are the only entities which may be substituted.
The first role is captured by interpreting contexts as objects in Mctx
and their way to be written down as path of irreducible arrows in the
same category.
The second role requires that there is an object in MΓ deputed to
interpret x.
The third role imposes a deeper structure on the ‘pyramids’ over Mctx.
( 11 of 17 )
Variables
Γ
x:A
A
Ui
π
∈
A
Ui
π
∈
x
π
∈
an irreducible arrow in Mctx induces a new term x in the pyramid
over the codomain;
Variables
Γ
x:A
A
Ui
π
∈
A
Ui
π
∈
x
π
∈
a
a
an irreducible arrow in Mctx induces a new term x in the pyramid
over the codomain;
a term a of type A in Γ is so also in the extended context;
Variables
Γ
x:A
A
Ui
π
∈
A
Ui
π
∈
x
π
∈
a
a
∼=
∼=
an irreducible arrow in Mctx induces a new term x in the pyramid
over the codomain;
a term a of type A in Γ is so also in the extended context;
substituting a in x, i.e., making them isomorphic and closing for
type generation, forces the pyramids to be equivalent.
( 12 of 17 )
Inductive types
An inductive type is the minimal collection of terms closed under the
interpretation of its introduction rules.
Semantically, this means an inductive type is the colimit of the
diagram composed by the terms-in-context which are the result of the
closure of the transformation associated to the introduction rules.
For example, the dependent sum has the following introduction rule:
Γ b : B[a/x] Γ a : A Γ,x : A B : Ui Γ A : Ui
Σ−I
Γ (a,b) : Σx : A.B
The associated semantic transformation θ maps each pair of objects
α and β in MΓ such that there are ∈: α → A Γ and ∈: β → B[a/x] Γ
in an object θ(α,β) of MΓ.
( 13 of 17 )
Inductive types
In general, the guiding principle is that the formation rule is used to
identify the space S of terms which is transformed to construct the
terms in the new inductive type. So, θ: S → MΓ.
The space S forms a category, and θ becomes a functor. As such, θ
has to be free, in one of the way to interpret this adjective in category
theory, to ensure that the construction is inductive.
The idea is that θ must be associated with T, the inductive theory as
a whole, not to each specific type. Then, MΓ is the minimal fix point
of the θ transformation in a category having enough terms to
interpret the context Γ in which every variable is a distinct term.
( 14 of 17 )
Inductive types
Difficult to express, but mathematically straightforward, this idea of
inductive theory allows to capture at once recursive types, mutual
recursive types, and even more esoteric beasts.
The formal framework had also a pleasant consequence: namely, all
the canonical types are inductive. So, the dependent sum Σ, the
dependent product Π, the coproduct +, the empty type 0, the unit
type 1, and equality in a type =A can be treated in the very same way
as natural numbers.
In fact, the non-inductive part of dependent type theory is reduced to
the structural rules (context formation, variables, judgemental
equality) and the rules about universes, which are structural in a
sense, because they are used to distinguish types.
( 15 of 17 )
The state of the art
We are in the process of writing down all of this. In this moment, we
have the definition of ML-category, a few of its properties, and the
definition of interpretation written down with all the details.
Inductive types are completely developed: however, only the syntactic
side has been polished. The semantics of them needs to be written
and checked once again.
We have the definition of syntactic category, the classification,
soundness and completeness theorem to polish: they have been
developed in all the details, but not yet written down in the proper
mathematical style.
We have a rough sketch of how everything should work on
higher-inductive types, but this is far from being a result, even with a
very optimistic view. . . not yet, at least!
( 16 of 17 )
The end
Questions?
( 17 of 17 )

More Related Content

What's hot

Compact Monothetic C semirings
Compact Monothetic C semiringsCompact Monothetic C semirings
Compact Monothetic C semirings
ijtsrd
 
An introduction to compositional models in distributional semantics
An introduction to compositional models in distributional semanticsAn introduction to compositional models in distributional semantics
An introduction to compositional models in distributional semanticsAndre Freitas
 
[Slfm 118] theory of relations roland fraisse (nh 1986)(t)
[Slfm 118] theory of relations   roland fraisse (nh 1986)(t)[Slfm 118] theory of relations   roland fraisse (nh 1986)(t)
[Slfm 118] theory of relations roland fraisse (nh 1986)(t)
Oscar Daniel Ramirez Correa
 
Logic paper
Logic paperLogic paper
Logic paperDlist
 
Conceptual Spaces for Cognitive Architectures: A Lingua Franca for Different ...
Conceptual Spaces for Cognitive Architectures: A Lingua Franca for Different ...Conceptual Spaces for Cognitive Architectures: A Lingua Franca for Different ...
Conceptual Spaces for Cognitive Architectures: A Lingua Franca for Different ...
Antonio Lieto
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
Valeria de Paiva
 
Correspondence and Isomorphism Theorems for Intuitionistic fuzzy subgroups
Correspondence and Isomorphism Theorems for Intuitionistic fuzzy subgroupsCorrespondence and Isomorphism Theorems for Intuitionistic fuzzy subgroups
Correspondence and Isomorphism Theorems for Intuitionistic fuzzy subgroups
journal ijrtem
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
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
 
Completeness: From henkin's Proposition to Quantum Computer
Completeness: From henkin's Proposition to Quantum ComputerCompleteness: From henkin's Proposition to Quantum Computer
Completeness: From henkin's Proposition to Quantum Computer
Vasil Penchev
 
June 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAISTJune 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAIST
Marco Benini
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logic
Janet Stemwedel
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)
surbhi jha
 
A Nonstandard Study of Taylor Ser.Dev.-Abstract+ Intro. M.Sc. Thesis
A Nonstandard Study of Taylor Ser.Dev.-Abstract+ Intro. M.Sc. ThesisA Nonstandard Study of Taylor Ser.Dev.-Abstract+ Intro. M.Sc. Thesis
A Nonstandard Study of Taylor Ser.Dev.-Abstract+ Intro. M.Sc. ThesisIbrahim Hamad
 
[Emnlp] what is glo ve part i - towards data science
[Emnlp] what is glo ve  part i - towards data science[Emnlp] what is glo ve  part i - towards data science
[Emnlp] what is glo ve part i - towards data science
Nikhil Jaiswal
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
chauhankapil
 
Discrete Mathematics
Discrete MathematicsDiscrete Mathematics
Discrete Mathematics
metamath
 

What's hot (20)

Compact Monothetic C semirings
Compact Monothetic C semiringsCompact Monothetic C semirings
Compact Monothetic C semirings
 
An introduction to compositional models in distributional semantics
An introduction to compositional models in distributional semanticsAn introduction to compositional models in distributional semantics
An introduction to compositional models in distributional semantics
 
[Slfm 118] theory of relations roland fraisse (nh 1986)(t)
[Slfm 118] theory of relations   roland fraisse (nh 1986)(t)[Slfm 118] theory of relations   roland fraisse (nh 1986)(t)
[Slfm 118] theory of relations roland fraisse (nh 1986)(t)
 
Logic paper
Logic paperLogic paper
Logic paper
 
Conceptual Spaces for Cognitive Architectures: A Lingua Franca for Different ...
Conceptual Spaces for Cognitive Architectures: A Lingua Franca for Different ...Conceptual Spaces for Cognitive Architectures: A Lingua Franca for Different ...
Conceptual Spaces for Cognitive Architectures: A Lingua Franca for Different ...
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
 
Correspondence and Isomorphism Theorems for Intuitionistic fuzzy subgroups
Correspondence and Isomorphism Theorems for Intuitionistic fuzzy subgroupsCorrespondence and Isomorphism Theorems for Intuitionistic fuzzy subgroups
Correspondence and Isomorphism Theorems for Intuitionistic fuzzy subgroups
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
 
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
 
Completeness: From henkin's Proposition to Quantum Computer
Completeness: From henkin's Proposition to Quantum ComputerCompleteness: From henkin's Proposition to Quantum Computer
Completeness: From henkin's Proposition to Quantum Computer
 
June 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAISTJune 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAIST
 
What is the category system
What is the category systemWhat is the category system
What is the category system
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logic
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)
 
A Nonstandard Study of Taylor Ser.Dev.-Abstract+ Intro. M.Sc. Thesis
A Nonstandard Study of Taylor Ser.Dev.-Abstract+ Intro. M.Sc. ThesisA Nonstandard Study of Taylor Ser.Dev.-Abstract+ Intro. M.Sc. Thesis
A Nonstandard Study of Taylor Ser.Dev.-Abstract+ Intro. M.Sc. Thesis
 
[Emnlp] what is glo ve part i - towards data science
[Emnlp] what is glo ve  part i - towards data science[Emnlp] what is glo ve  part i - towards data science
[Emnlp] what is glo ve part i - towards data science
 
Tot d piffwelsh
Tot d piffwelshTot d piffwelsh
Tot d piffwelsh
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
 
pres_coconat
pres_coconatpres_coconat
pres_coconat
 
Discrete Mathematics
Discrete MathematicsDiscrete Mathematics
Discrete Mathematics
 

Similar to Point-free semantics of dependent type theories

Extending the knowledge level of cognitive architectures with Conceptual Spac...
Extending the knowledge level of cognitive architectures with Conceptual Spac...Extending the knowledge level of cognitive architectures with Conceptual Spac...
Extending the knowledge level of cognitive architectures with Conceptual Spac...
Antonio Lieto
 
Commutative algebra
Commutative algebraCommutative algebra
Commutative algebraSpringer
 
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
L. Thorne McCarty
 
A Formal Model of Metaphor in Frame Semantics
A Formal Model of Metaphor in Frame SemanticsA Formal Model of Metaphor in Frame Semantics
A Formal Model of Metaphor in Frame Semantics
Vasil Penchev
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
Valeria de Paiva
 
Lecture 2: From Semantics To Semantic-Oriented Applications
Lecture 2: From Semantics To Semantic-Oriented ApplicationsLecture 2: From Semantics To Semantic-Oriented Applications
Lecture 2: From Semantics To Semantic-Oriented Applications
Marina Santini
 
Abstract algebra & its applications (1)
Abstract algebra & its applications (1)Abstract algebra & its applications (1)
Abstract algebra & its applications (1)
drselvarani
 
Abstract algebra & its applications (1)
Abstract algebra & its applications (1)Abstract algebra & its applications (1)
Abstract algebra & its applications (1)
drselvarani
 
Probabilistic models (part 1)
Probabilistic models (part 1)Probabilistic models (part 1)
Probabilistic models (part 1)KU Leuven
 
Chapter 1 Logic and ProofPropositional Logic SemanticsPropo.docx
Chapter 1 Logic and ProofPropositional Logic SemanticsPropo.docxChapter 1 Logic and ProofPropositional Logic SemanticsPropo.docx
Chapter 1 Logic and ProofPropositional Logic SemanticsPropo.docx
cravennichole326
 
a logical approach to abstract algebra (apuntes).pdf
a logical approach to abstract algebra (apuntes).pdfa logical approach to abstract algebra (apuntes).pdf
a logical approach to abstract algebra (apuntes).pdf
cibeyo cibeyo
 
ON THE CATEGORY OF ORDERED TOPOLOGICAL MODULES OPTIMIZATION AND LAGRANGE’S PR...
ON THE CATEGORY OF ORDERED TOPOLOGICAL MODULES OPTIMIZATION AND LAGRANGE’S PR...ON THE CATEGORY OF ORDERED TOPOLOGICAL MODULES OPTIMIZATION AND LAGRANGE’S PR...
ON THE CATEGORY OF ORDERED TOPOLOGICAL MODULES OPTIMIZATION AND LAGRANGE’S PR...
IJESM JOURNAL
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdf
HrideshSapkota2
 
Reduction Monads and Their Signatures
Reduction Monads and Their SignaturesReduction Monads and Their Signatures
Reduction Monads and Their Signatures
Marco Maggesi
 
Temple Univeresity Digital Scholarship: Model of the Month Club: Modeling Con...
Temple Univeresity Digital Scholarship: Model of the Month Club: Modeling Con...Temple Univeresity Digital Scholarship: Model of the Month Club: Modeling Con...
Temple Univeresity Digital Scholarship: Model of the Month Club: Modeling Con...
Liz Rodrigues
 
Dimension
Dimension Dimension
Dimension
Basant Bachra
 
Equations Over Local Monodromies
Equations Over Local MonodromiesEquations Over Local Monodromies
Equations Over Local Monodromies
suppubs1pubs1
 
Mathematical argumentation as a precursor of mathematical proof
Mathematical argumentation as a precursor of mathematical proofMathematical argumentation as a precursor of mathematical proof
Mathematical argumentation as a precursor of mathematical proof
Nicolas Balacheff
 
congruence lattices of algebras
congruence lattices of algebrascongruence lattices of algebras
congruence lattices of algebrasfilipke85
 

Similar to Point-free semantics of dependent type theories (20)

Extending the knowledge level of cognitive architectures with Conceptual Spac...
Extending the knowledge level of cognitive architectures with Conceptual Spac...Extending the knowledge level of cognitive architectures with Conceptual Spac...
Extending the knowledge level of cognitive architectures with Conceptual Spac...
 
Commutative algebra
Commutative algebraCommutative algebra
Commutative algebra
 
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
 
A Formal Model of Metaphor in Frame Semantics
A Formal Model of Metaphor in Frame SemanticsA Formal Model of Metaphor in Frame Semantics
A Formal Model of Metaphor in Frame Semantics
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
Lecture 2: From Semantics To Semantic-Oriented Applications
Lecture 2: From Semantics To Semantic-Oriented ApplicationsLecture 2: From Semantics To Semantic-Oriented Applications
Lecture 2: From Semantics To Semantic-Oriented Applications
 
Abstract algebra & its applications (1)
Abstract algebra & its applications (1)Abstract algebra & its applications (1)
Abstract algebra & its applications (1)
 
Abstract algebra & its applications (1)
Abstract algebra & its applications (1)Abstract algebra & its applications (1)
Abstract algebra & its applications (1)
 
Probabilistic models (part 1)
Probabilistic models (part 1)Probabilistic models (part 1)
Probabilistic models (part 1)
 
Chapter 1 Logic and ProofPropositional Logic SemanticsPropo.docx
Chapter 1 Logic and ProofPropositional Logic SemanticsPropo.docxChapter 1 Logic and ProofPropositional Logic SemanticsPropo.docx
Chapter 1 Logic and ProofPropositional Logic SemanticsPropo.docx
 
a logical approach to abstract algebra (apuntes).pdf
a logical approach to abstract algebra (apuntes).pdfa logical approach to abstract algebra (apuntes).pdf
a logical approach to abstract algebra (apuntes).pdf
 
ON THE CATEGORY OF ORDERED TOPOLOGICAL MODULES OPTIMIZATION AND LAGRANGE’S PR...
ON THE CATEGORY OF ORDERED TOPOLOGICAL MODULES OPTIMIZATION AND LAGRANGE’S PR...ON THE CATEGORY OF ORDERED TOPOLOGICAL MODULES OPTIMIZATION AND LAGRANGE’S PR...
ON THE CATEGORY OF ORDERED TOPOLOGICAL MODULES OPTIMIZATION AND LAGRANGE’S PR...
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdf
 
Reduction Monads and Their Signatures
Reduction Monads and Their SignaturesReduction Monads and Their Signatures
Reduction Monads and Their Signatures
 
Temple Univeresity Digital Scholarship: Model of the Month Club: Modeling Con...
Temple Univeresity Digital Scholarship: Model of the Month Club: Modeling Con...Temple Univeresity Digital Scholarship: Model of the Month Club: Modeling Con...
Temple Univeresity Digital Scholarship: Model of the Month Club: Modeling Con...
 
Dimension
Dimension Dimension
Dimension
 
Fuzzy Logic_HKR
Fuzzy Logic_HKRFuzzy Logic_HKR
Fuzzy Logic_HKR
 
Equations Over Local Monodromies
Equations Over Local MonodromiesEquations Over Local Monodromies
Equations Over Local Monodromies
 
Mathematical argumentation as a precursor of mathematical proof
Mathematical argumentation as a precursor of mathematical proofMathematical argumentation as a precursor of mathematical proof
Mathematical argumentation as a precursor of mathematical proof
 
congruence lattices of algebras
congruence lattices of algebrascongruence lattices of algebras
congruence lattices of algebras
 

More from Marco Benini

The Graph Minor Theorem: a walk on the wild side of graphs
The Graph Minor Theorem: a walk on the wild side of graphsThe Graph Minor Theorem: a walk on the wild side of graphs
The Graph Minor Theorem: a walk on the wild side of graphs
Marco Benini
 
Explaining the Kruskal Tree Theore
Explaining the Kruskal Tree TheoreExplaining the Kruskal Tree Theore
Explaining the Kruskal Tree Theore
Marco Benini
 
The Graph Minor Theorem: a walk on the wild side of graphs
The Graph Minor Theorem: a walk on the wild side of graphsThe Graph Minor Theorem: a walk on the wild side of graphs
The Graph Minor Theorem: a walk on the wild side of graphs
Marco Benini
 
Dealing with negative results
Dealing with negative resultsDealing with negative results
Dealing with negative results
Marco Benini
 
Variations on the Higman's Lemma
Variations on the Higman's LemmaVariations on the Higman's Lemma
Variations on the Higman's Lemma
Marco Benini
 
Dealing with negative results
Dealing with negative resultsDealing with negative results
Dealing with negative results
Marco Benini
 
Well Quasi Orders in a Categorical Setting
Well Quasi Orders in a Categorical SettingWell Quasi Orders in a Categorical Setting
Well Quasi Orders in a Categorical Setting
Marco Benini
 
Fondazione point-free della matematica
Fondazione point-free della matematicaFondazione point-free della matematica
Fondazione point-free della matematica
Marco Benini
 
Numerical Analysis and Epistemology of Information
Numerical Analysis and Epistemology of InformationNumerical Analysis and Epistemology of Information
Numerical Analysis and Epistemology of Information
Marco Benini
 
L'occhio del biologo: elementi di fotografia
L'occhio del biologo: elementi di fotografiaL'occhio del biologo: elementi di fotografia
L'occhio del biologo: elementi di fotografia
Marco Benini
 
Constructive Adpositional Grammars, Formally
Constructive Adpositional Grammars, FormallyConstructive Adpositional Grammars, Formally
Constructive Adpositional Grammars, Formally
Marco Benini
 
Marie Skłodowska Curie Intra-European Fellowship
Marie Skłodowska Curie Intra-European FellowshipMarie Skłodowska Curie Intra-European Fellowship
Marie Skłodowska Curie Intra-European Fellowship
Marco Benini
 
Programming modulo representations
Programming modulo representationsProgramming modulo representations
Programming modulo representations
Marco Benini
 
Algorithms and Their Explanations
Algorithms and Their ExplanationsAlgorithms and Their Explanations
Algorithms and Their Explanations
Marco Benini
 
Programming modulo representations
Programming modulo representationsProgramming modulo representations
Programming modulo representations
Marco Benini
 
CORCON2014: Does programming really need data structures?
CORCON2014: Does programming really need data structures?CORCON2014: Does programming really need data structures?
CORCON2014: Does programming really need data structures?
Marco Benini
 
Fondazione point-free della matematica
Fondazione point-free della matematicaFondazione point-free della matematica
Fondazione point-free della matematica
Marco Benini
 
Adgrams: Categories and Linguistics
 Adgrams: Categories and Linguistics Adgrams: Categories and Linguistics
Adgrams: Categories and Linguistics
Marco Benini
 
Intuitionistic First-Order Logic: Categorical semantics via the Curry-Howard ...
Intuitionistic First-Order Logic: Categorical semantics via the Curry-Howard ...Intuitionistic First-Order Logic: Categorical semantics via the Curry-Howard ...
Intuitionistic First-Order Logic: Categorical semantics via the Curry-Howard ...
Marco Benini
 

More from Marco Benini (19)

The Graph Minor Theorem: a walk on the wild side of graphs
The Graph Minor Theorem: a walk on the wild side of graphsThe Graph Minor Theorem: a walk on the wild side of graphs
The Graph Minor Theorem: a walk on the wild side of graphs
 
Explaining the Kruskal Tree Theore
Explaining the Kruskal Tree TheoreExplaining the Kruskal Tree Theore
Explaining the Kruskal Tree Theore
 
The Graph Minor Theorem: a walk on the wild side of graphs
The Graph Minor Theorem: a walk on the wild side of graphsThe Graph Minor Theorem: a walk on the wild side of graphs
The Graph Minor Theorem: a walk on the wild side of graphs
 
Dealing with negative results
Dealing with negative resultsDealing with negative results
Dealing with negative results
 
Variations on the Higman's Lemma
Variations on the Higman's LemmaVariations on the Higman's Lemma
Variations on the Higman's Lemma
 
Dealing with negative results
Dealing with negative resultsDealing with negative results
Dealing with negative results
 
Well Quasi Orders in a Categorical Setting
Well Quasi Orders in a Categorical SettingWell Quasi Orders in a Categorical Setting
Well Quasi Orders in a Categorical Setting
 
Fondazione point-free della matematica
Fondazione point-free della matematicaFondazione point-free della matematica
Fondazione point-free della matematica
 
Numerical Analysis and Epistemology of Information
Numerical Analysis and Epistemology of InformationNumerical Analysis and Epistemology of Information
Numerical Analysis and Epistemology of Information
 
L'occhio del biologo: elementi di fotografia
L'occhio del biologo: elementi di fotografiaL'occhio del biologo: elementi di fotografia
L'occhio del biologo: elementi di fotografia
 
Constructive Adpositional Grammars, Formally
Constructive Adpositional Grammars, FormallyConstructive Adpositional Grammars, Formally
Constructive Adpositional Grammars, Formally
 
Marie Skłodowska Curie Intra-European Fellowship
Marie Skłodowska Curie Intra-European FellowshipMarie Skłodowska Curie Intra-European Fellowship
Marie Skłodowska Curie Intra-European Fellowship
 
Programming modulo representations
Programming modulo representationsProgramming modulo representations
Programming modulo representations
 
Algorithms and Their Explanations
Algorithms and Their ExplanationsAlgorithms and Their Explanations
Algorithms and Their Explanations
 
Programming modulo representations
Programming modulo representationsProgramming modulo representations
Programming modulo representations
 
CORCON2014: Does programming really need data structures?
CORCON2014: Does programming really need data structures?CORCON2014: Does programming really need data structures?
CORCON2014: Does programming really need data structures?
 
Fondazione point-free della matematica
Fondazione point-free della matematicaFondazione point-free della matematica
Fondazione point-free della matematica
 
Adgrams: Categories and Linguistics
 Adgrams: Categories and Linguistics Adgrams: Categories and Linguistics
Adgrams: Categories and Linguistics
 
Intuitionistic First-Order Logic: Categorical semantics via the Curry-Howard ...
Intuitionistic First-Order Logic: Categorical semantics via the Curry-Howard ...Intuitionistic First-Order Logic: Categorical semantics via the Curry-Howard ...
Intuitionistic First-Order Logic: Categorical semantics via the Curry-Howard ...
 

Recently uploaded

FAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable PredictionsFAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable Predictions
Michel Dumontier
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
AlguinaldoKong
 
platelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxplatelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptx
muralinath2
 
Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
Richard Gill
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
pablovgd
 
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
Areesha Ahmad
 
filosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptxfilosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptx
IvanMallco1
 
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SELF-EXPLANATORY
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Sérgio Sacani
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
ChetanK57
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
muralinath2
 
Citrus Greening Disease and its Management
Citrus Greening Disease and its ManagementCitrus Greening Disease and its Management
Citrus Greening Disease and its Management
subedisuryaofficial
 
Hemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptxHemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptx
muralinath2
 
erythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptxerythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptx
muralinath2
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
Lateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensiveLateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensive
silvermistyshot
 
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptxBody fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
muralinath2
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
Lokesh Patil
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
AADYARAJPANDEY1
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
IqrimaNabilatulhusni
 

Recently uploaded (20)

FAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable PredictionsFAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable Predictions
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
 
platelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxplatelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptx
 
Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
 
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
 
filosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptxfilosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptx
 
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
 
Citrus Greening Disease and its Management
Citrus Greening Disease and its ManagementCitrus Greening Disease and its Management
Citrus Greening Disease and its Management
 
Hemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptxHemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptx
 
erythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptxerythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptx
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
Lateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensiveLateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensive
 
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptxBody fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
Body fluids_tonicity_dehydration_hypovolemia_hypervolemia.pptx
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
 

Point-free semantics of dependent type theories

  • 1. Point-free semantics of dependent type theories M Benini, R Bonacina Università degli Studi dell’Insubria University of Canterbury, December 4th, 2017
  • 2. Why Also known as constructive type theory, or Martin-Löf type theory, dependent type theory has recently seen a huge raise of interest because it is the basis for homotopy type theory. Semantics for dependent type theories are known: they are variations on the semantics of typed λ-calculi. Usually, they are complex: they are either based on the advanced theory of orders (specialised domains), or on category theory; in the case of categorical models, they use non-elementary constructions (fibrations, higher-order cells, . . . ); homotopy type theory has an intended semantics based on ∞-groupoids; the only categorical semantics (Seely) which does not use those advanced constructions, contains a problem (i.e., it does not work). Locally Cartesian closed categories are not enough to properly model dependent type theory (Hoffman, Dybjer). ( 2 of 17 )
  • 3. Why Why are complex, higher-order models needed? Are they, really? These were the initial questions that have been addressed in Roberta’s master thesis. The answer was that there is no need for such complex constructions: a categorical model, using no higher-order constructions, suffices to provide a sound and complete explanation to dependent type theory. However, the result was not completely satisfactory because the notion of inductive theory was sketched but not precisely defined in all the details; some passages in the soundness and completeness proofs were reasonable but not formal; in the overall, there was the feeling that the result had to be polished to reach its maximal generality. ( 3 of 17 )
  • 4. What So, the visit here, at the University of Canterbury had the purpose to precisely define the syntactic notion of inductive theory, and pave the way toward its extension to higher-inductive types, as defined in homotopy type theory; polish the semantics and fix all the passages in the soundness and completeness proofs. In short, we did it! In the following, I am going to give a glance to the semantics. ( 4 of 17 )
  • 5. Point-free semantics Consider the following inductive types: the 0 type, which is characterised as the type having no terms; the N− , which is characterised by the rule having the inductive step n : N− → succ(n) : N− but not the basic step 0 : N− . Usually, these two types are considered equivalent because they have no terms belonging to them: the minimal fix point of their constructing rules is the same. However, they can be distinguished: if x : 0 and y : N− stand for some objects in the types 0 and N− , it is evident that no object other than x is forced to be in 0, while succ(y), succ(succ(y)), ... are all in N− . We want a semantics in which the meaning of a type depends on the context in which it is defined, so to be able to distinguish 0 from N− . ( 5 of 17 )
  • 6. Point-free semantics The semantics is then point-free: types and their terms do not identify entities (“points”) in some universe. They explain how judgements are kept together by the logical inferences. And they do so by taking local values, which change under different assumptions. So N− is not equivalent to the 0 type: they are the same thing in the empty context, while they differ in a context in which we assume both types contain at least one term. ( 6 of 17 )
  • 7. The big picture The semantics is based on category theory. An inductive theory, i.e., a series of inductive types defined in the standard dependent type theory, has models in the class of ML-categories. These categories allow to interpret dependent type theory and inductive types in a natural way. A category which makes valid all the judgements of an inductive theory is a model, and it has holds that every inductive theory has a model (Soundness); every judgement which is valid in any model of an inductive theory is derivable (Completeness); for every inductive theory there is a model which is contained in every other model (Classification). ( 7 of 17 )
  • 8. The big picture Mctx Γ MΓ ∆ M∆ • M• Mctx is a partial order with minimum • in which all paths are finite; each MΓ is a preorder with Γ as its minimum such that each pair of elements has a least upper bound; Mctx and all the MΓ form the ML-category (for Martin-Löf). ( 8 of 17 )
  • 9. Inside pyramids Each MΓ has the following structure: Γ π π π π a ∈ a ∈ b ∈ b ∈A ∈ B ∈Ui ∈ Ui+1
  • 10. Inside pyramids Each MΓ has the following structure: Γ π π π π a ∈ a ∈ b ∈ b ∈A ∈ B ∈Ui ∈ Ui+1 context proper terms proper types universes ( 9 of 17 )
  • 11. Interpretation x : A,y : B,z : C ctx = x : A y : B z : C •ctx x : Actx x : A,y : Bctx x : A,y : B,z : C ctx in Mctx Γ a : A = Γ a A π ∈ in MΓ Γ a ≡ b : A = Γ a b A π ∈ π ∈ i in MΓ ( 10 of 17 )
  • 12. Variables Variables have more than one role in dependent type theory: they are hypotheses in the context; they are terms in the language; they are the only entities which may be substituted. The first role is captured by interpreting contexts as objects in Mctx and their way to be written down as path of irreducible arrows in the same category. The second role requires that there is an object in MΓ deputed to interpret x. The third role imposes a deeper structure on the ‘pyramids’ over Mctx. ( 11 of 17 )
  • 13. Variables Γ x:A A Ui π ∈ A Ui π ∈ x π ∈ an irreducible arrow in Mctx induces a new term x in the pyramid over the codomain;
  • 14. Variables Γ x:A A Ui π ∈ A Ui π ∈ x π ∈ a a an irreducible arrow in Mctx induces a new term x in the pyramid over the codomain; a term a of type A in Γ is so also in the extended context;
  • 15. Variables Γ x:A A Ui π ∈ A Ui π ∈ x π ∈ a a ∼= ∼= an irreducible arrow in Mctx induces a new term x in the pyramid over the codomain; a term a of type A in Γ is so also in the extended context; substituting a in x, i.e., making them isomorphic and closing for type generation, forces the pyramids to be equivalent. ( 12 of 17 )
  • 16. Inductive types An inductive type is the minimal collection of terms closed under the interpretation of its introduction rules. Semantically, this means an inductive type is the colimit of the diagram composed by the terms-in-context which are the result of the closure of the transformation associated to the introduction rules. For example, the dependent sum has the following introduction rule: Γ b : B[a/x] Γ a : A Γ,x : A B : Ui Γ A : Ui Σ−I Γ (a,b) : Σx : A.B The associated semantic transformation θ maps each pair of objects α and β in MΓ such that there are ∈: α → A Γ and ∈: β → B[a/x] Γ in an object θ(α,β) of MΓ. ( 13 of 17 )
  • 17. Inductive types In general, the guiding principle is that the formation rule is used to identify the space S of terms which is transformed to construct the terms in the new inductive type. So, θ: S → MΓ. The space S forms a category, and θ becomes a functor. As such, θ has to be free, in one of the way to interpret this adjective in category theory, to ensure that the construction is inductive. The idea is that θ must be associated with T, the inductive theory as a whole, not to each specific type. Then, MΓ is the minimal fix point of the θ transformation in a category having enough terms to interpret the context Γ in which every variable is a distinct term. ( 14 of 17 )
  • 18. Inductive types Difficult to express, but mathematically straightforward, this idea of inductive theory allows to capture at once recursive types, mutual recursive types, and even more esoteric beasts. The formal framework had also a pleasant consequence: namely, all the canonical types are inductive. So, the dependent sum Σ, the dependent product Π, the coproduct +, the empty type 0, the unit type 1, and equality in a type =A can be treated in the very same way as natural numbers. In fact, the non-inductive part of dependent type theory is reduced to the structural rules (context formation, variables, judgemental equality) and the rules about universes, which are structural in a sense, because they are used to distinguish types. ( 15 of 17 )
  • 19. The state of the art We are in the process of writing down all of this. In this moment, we have the definition of ML-category, a few of its properties, and the definition of interpretation written down with all the details. Inductive types are completely developed: however, only the syntactic side has been polished. The semantics of them needs to be written and checked once again. We have the definition of syntactic category, the classification, soundness and completeness theorem to polish: they have been developed in all the details, but not yet written down in the proper mathematical style. We have a rough sketch of how everything should work on higher-inductive types, but this is far from being a result, even with a very optimistic view. . . not yet, at least! ( 16 of 17 )