SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
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 )

Más contenido relacionado

La actualidad más candente

Compact Monothetic C semirings
Compact Monothetic C semiringsCompact Monothetic C semirings
Compact Monothetic C semiringsijtsrd
 
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
 
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 subgroupsjournal ijrtem
 
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 TheoryValeria 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 ComputerVasil Penchev
 
June 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAISTJune 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAISTMarco Benini
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logicJanet 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 scienceNikhil 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 Mathematicsmetamath
 

La actualidad más candente (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 a 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 SemanticsVasil Penchev
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear LogicsValeria 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 ApplicationsMarina 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.docxcravennichole326
 
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).pdfcibeyo 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.pdfHrideshSapkota2
 
Reduction Monads and Their Signatures
Reduction Monads and Their SignaturesReduction Monads and Their Signatures
Reduction Monads and Their SignaturesMarco 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
 
Equations Over Local Monodromies
Equations Over Local MonodromiesEquations Over Local Monodromies
Equations Over Local Monodromiessuppubs1pubs1
 
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 proofNicolas Balacheff
 
congruence lattices of algebras
congruence lattices of algebrascongruence lattices of algebras
congruence lattices of algebrasfilipke85
 

Similar a 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
 

Más de 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 graphsMarco Benini
 
Explaining the Kruskal Tree Theore
Explaining the Kruskal Tree TheoreExplaining the Kruskal Tree Theore
Explaining the Kruskal Tree TheoreMarco 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 graphsMarco Benini
 
Dealing with negative results
Dealing with negative resultsDealing with negative results
Dealing with negative resultsMarco Benini
 
Variations on the Higman's Lemma
Variations on the Higman's LemmaVariations on the Higman's Lemma
Variations on the Higman's LemmaMarco Benini
 
Dealing with negative results
Dealing with negative resultsDealing with negative results
Dealing with negative resultsMarco 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 SettingMarco Benini
 
Fondazione point-free della matematica
Fondazione point-free della matematicaFondazione point-free della matematica
Fondazione point-free della matematicaMarco Benini
 
Numerical Analysis and Epistemology of Information
Numerical Analysis and Epistemology of InformationNumerical Analysis and Epistemology of Information
Numerical Analysis and Epistemology of InformationMarco 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 fotografiaMarco Benini
 
Constructive Adpositional Grammars, Formally
Constructive Adpositional Grammars, FormallyConstructive Adpositional Grammars, Formally
Constructive Adpositional Grammars, FormallyMarco 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 FellowshipMarco Benini
 
Programming modulo representations
Programming modulo representationsProgramming modulo representations
Programming modulo representationsMarco Benini
 
Algorithms and Their Explanations
Algorithms and Their ExplanationsAlgorithms and Their Explanations
Algorithms and Their ExplanationsMarco Benini
 
Programming modulo representations
Programming modulo representationsProgramming modulo representations
Programming modulo representationsMarco 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 matematicaMarco Benini
 
Adgrams: Categories and Linguistics
 Adgrams: Categories and Linguistics Adgrams: Categories and Linguistics
Adgrams: Categories and LinguisticsMarco 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
 

Más de 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 ...
 

Último

dll general biology week 1 - Copy.docx
dll general biology   week 1 - Copy.docxdll general biology   week 1 - Copy.docx
dll general biology week 1 - Copy.docxkarenmillo
 
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...Christina Parmionova
 
WEEK 4 PHYSICAL SCIENCE QUARTER 3 FOR G11
WEEK 4 PHYSICAL SCIENCE QUARTER 3 FOR G11WEEK 4 PHYSICAL SCIENCE QUARTER 3 FOR G11
WEEK 4 PHYSICAL SCIENCE QUARTER 3 FOR G11GelineAvendao
 
The Sensory Organs, Anatomy and Function
The Sensory Organs, Anatomy and FunctionThe Sensory Organs, Anatomy and Function
The Sensory Organs, Anatomy and FunctionJadeNovelo1
 
Measures of Central Tendency.pptx for UG
Measures of Central Tendency.pptx for UGMeasures of Central Tendency.pptx for UG
Measures of Central Tendency.pptx for UGSoniaBajaj10
 
final waves properties grade 7 - third quarter
final waves properties grade 7 - third quarterfinal waves properties grade 7 - third quarter
final waves properties grade 7 - third quarterHanHyoKim
 
Timeless Cosmology: Towards a Geometric Origin of Cosmological Correlations
Timeless Cosmology: Towards a Geometric Origin of Cosmological CorrelationsTimeless Cosmology: Towards a Geometric Origin of Cosmological Correlations
Timeless Cosmology: Towards a Geometric Origin of Cosmological CorrelationsDanielBaumann11
 
Oxo-Acids of Halogens and their Salts.pptx
Oxo-Acids of Halogens and their Salts.pptxOxo-Acids of Halogens and their Salts.pptx
Oxo-Acids of Halogens and their Salts.pptxfarhanvvdk
 
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024Jene van der Heide
 
cybrids.pptx production_advanges_limitation
cybrids.pptx production_advanges_limitationcybrids.pptx production_advanges_limitation
cybrids.pptx production_advanges_limitationSanghamitraMohapatra5
 
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptxGENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptxRitchAndruAgustin
 
Advances in AI-driven Image Recognition for Early Detection of Cancer
Advances in AI-driven Image Recognition for Early Detection of CancerAdvances in AI-driven Image Recognition for Early Detection of Cancer
Advances in AI-driven Image Recognition for Early Detection of CancerLuis Miguel Chong Chong
 
Gas-ExchangeS-in-Plants-and-Animals.pptx
Gas-ExchangeS-in-Plants-and-Animals.pptxGas-ExchangeS-in-Plants-and-Animals.pptx
Gas-ExchangeS-in-Plants-and-Animals.pptxGiovaniTrinidad
 
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPRPirithiRaju
 
Science (Communication) and Wikipedia - Potentials and Pitfalls
Science (Communication) and Wikipedia - Potentials and PitfallsScience (Communication) and Wikipedia - Potentials and Pitfalls
Science (Communication) and Wikipedia - Potentials and PitfallsDobusch Leonhard
 
ESSENTIAL FEATURES REQUIRED FOR ESTABLISHING FOUR TYPES OF BIOSAFETY LABORATO...
ESSENTIAL FEATURES REQUIRED FOR ESTABLISHING FOUR TYPES OF BIOSAFETY LABORATO...ESSENTIAL FEATURES REQUIRED FOR ESTABLISHING FOUR TYPES OF BIOSAFETY LABORATO...
ESSENTIAL FEATURES REQUIRED FOR ESTABLISHING FOUR TYPES OF BIOSAFETY LABORATO...Chayanika Das
 
GLYCOSIDES Classification Of GLYCOSIDES Chemical Tests Glycosides
GLYCOSIDES Classification Of GLYCOSIDES  Chemical Tests GlycosidesGLYCOSIDES Classification Of GLYCOSIDES  Chemical Tests Glycosides
GLYCOSIDES Classification Of GLYCOSIDES Chemical Tests GlycosidesNandakishor Bhaurao Deshmukh
 
FBI Profiling - Forensic Psychology.pptx
FBI Profiling - Forensic Psychology.pptxFBI Profiling - Forensic Psychology.pptx
FBI Profiling - Forensic Psychology.pptxPayal Shrivastava
 

Último (20)

dll general biology week 1 - Copy.docx
dll general biology   week 1 - Copy.docxdll general biology   week 1 - Copy.docx
dll general biology week 1 - Copy.docx
 
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
 
WEEK 4 PHYSICAL SCIENCE QUARTER 3 FOR G11
WEEK 4 PHYSICAL SCIENCE QUARTER 3 FOR G11WEEK 4 PHYSICAL SCIENCE QUARTER 3 FOR G11
WEEK 4 PHYSICAL SCIENCE QUARTER 3 FOR G11
 
AZOTOBACTER AS BIOFERILIZER.PPTX
AZOTOBACTER AS BIOFERILIZER.PPTXAZOTOBACTER AS BIOFERILIZER.PPTX
AZOTOBACTER AS BIOFERILIZER.PPTX
 
The Sensory Organs, Anatomy and Function
The Sensory Organs, Anatomy and FunctionThe Sensory Organs, Anatomy and Function
The Sensory Organs, Anatomy and Function
 
Interferons.pptx.
Interferons.pptx.Interferons.pptx.
Interferons.pptx.
 
Measures of Central Tendency.pptx for UG
Measures of Central Tendency.pptx for UGMeasures of Central Tendency.pptx for UG
Measures of Central Tendency.pptx for UG
 
final waves properties grade 7 - third quarter
final waves properties grade 7 - third quarterfinal waves properties grade 7 - third quarter
final waves properties grade 7 - third quarter
 
Timeless Cosmology: Towards a Geometric Origin of Cosmological Correlations
Timeless Cosmology: Towards a Geometric Origin of Cosmological CorrelationsTimeless Cosmology: Towards a Geometric Origin of Cosmological Correlations
Timeless Cosmology: Towards a Geometric Origin of Cosmological Correlations
 
Oxo-Acids of Halogens and their Salts.pptx
Oxo-Acids of Halogens and their Salts.pptxOxo-Acids of Halogens and their Salts.pptx
Oxo-Acids of Halogens and their Salts.pptx
 
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
 
cybrids.pptx production_advanges_limitation
cybrids.pptx production_advanges_limitationcybrids.pptx production_advanges_limitation
cybrids.pptx production_advanges_limitation
 
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptxGENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
 
Advances in AI-driven Image Recognition for Early Detection of Cancer
Advances in AI-driven Image Recognition for Early Detection of CancerAdvances in AI-driven Image Recognition for Early Detection of Cancer
Advances in AI-driven Image Recognition for Early Detection of Cancer
 
Gas-ExchangeS-in-Plants-and-Animals.pptx
Gas-ExchangeS-in-Plants-and-Animals.pptxGas-ExchangeS-in-Plants-and-Animals.pptx
Gas-ExchangeS-in-Plants-and-Animals.pptx
 
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
 
Science (Communication) and Wikipedia - Potentials and Pitfalls
Science (Communication) and Wikipedia - Potentials and PitfallsScience (Communication) and Wikipedia - Potentials and Pitfalls
Science (Communication) and Wikipedia - Potentials and Pitfalls
 
ESSENTIAL FEATURES REQUIRED FOR ESTABLISHING FOUR TYPES OF BIOSAFETY LABORATO...
ESSENTIAL FEATURES REQUIRED FOR ESTABLISHING FOUR TYPES OF BIOSAFETY LABORATO...ESSENTIAL FEATURES REQUIRED FOR ESTABLISHING FOUR TYPES OF BIOSAFETY LABORATO...
ESSENTIAL FEATURES REQUIRED FOR ESTABLISHING FOUR TYPES OF BIOSAFETY LABORATO...
 
GLYCOSIDES Classification Of GLYCOSIDES Chemical Tests Glycosides
GLYCOSIDES Classification Of GLYCOSIDES  Chemical Tests GlycosidesGLYCOSIDES Classification Of GLYCOSIDES  Chemical Tests Glycosides
GLYCOSIDES Classification Of GLYCOSIDES Chemical Tests Glycosides
 
FBI Profiling - Forensic Psychology.pptx
FBI Profiling - Forensic Psychology.pptxFBI Profiling - Forensic Psychology.pptx
FBI Profiling - Forensic Psychology.pptx
 

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 )