Compare commits
2 Commits
1019ac6702
...
c22581c3a0
| Author | SHA1 | Date | |
|---|---|---|---|
| c22581c3a0 | |||
| 5363b3d76e |
@ -21,40 +21,43 @@
|
||||
|
||||
\begin{document}
|
||||
\doparttoc
|
||||
\setlength\droptitle{-1.5cm}
|
||||
\maketitle
|
||||
|
||||
\vspace{-1cm}
|
||||
\hsep
|
||||
|
||||
\subsection*{General Context}
|
||||
|
||||
Generalized Algebraic Theories a.k.a. GATs are syntactic objects introduced in 1986 by Cartmell \cite{CartmellGATs}. They enable us to describe algebraic structures that we can see as a generalization of Type Theory's inductive types. For example, we can describe the models of some type theory using a GAT.
|
||||
|
||||
A GAT is made of a list of \enquote{sorts} that describes sets, usually followed by a list of \enquote{constructors}.
|
||||
A GAT is made of a list of \enquote{sorts} called a \enquote{sort specification} that describes sets, usually followed by a list of \enquote{constructors}.
|
||||
|
||||
\subsection*{Problem Studied}
|
||||
|
||||
There is a process that transforms any GAT into another GAT with only two sorts. This transformation has been used by Filippo Sestini in their PhD, in order to make simpler proofs the scope of their study. However it has not been proven that using this transformation does not reduce the generality of their thesis.
|
||||
There is a process that transforms any GAT into another GAT with only two sorts. This transformation has been used by Filippo Sestini in their PhD, to restrict their study to GATs with only two sorts. However, this systematic transformation has not yet been formally justified.
|
||||
|
||||
\subsection*{Proposed Contribution}
|
||||
|
||||
During this internship, my goal was to semantically formalize this transformation. I looked directly at the categories of models without looking at the syntactic aspects of GATs. I only looked at \enquote{sort specification}, i.e. GATs that are juste a list of sort declarations with no constructors. I started with applying the transformation on simple examples in order to identify properties that would prove the transformation to be correct. I did that in a categorical framework. Then, i formally stated those properties and proved them as generically as possible.
|
||||
During this internship, my goal was to formalize this transformation semantically. I focused directly on the categories of models without looking at the syntactic aspects of GATs. I only focused on \enquote{sort specification}, i.e. GATs that are just a list of sort declarations with no constructors. I started with applying the transformation on simple examples to identify properties that would prove the transformation to be correct, working in a categorical framework. Then, I formally stated those properties and proved them as generically as possible.
|
||||
|
||||
\subsection*{Arguments Supporting Their Validity}
|
||||
|
||||
The overall proof was made semantically and at each step, we tried to generalize objects as much as possible. The ways of constructing the objects is based on published papers \cite{Altenkirch2018} \cite{Fiore2008}.
|
||||
The overall proof was made semantically and at each step, we tried to generalize objects as much as possible. The ways of constructing the objects are based on published papers \cite{Altenkirch2018} \cite{Fiore2008}.
|
||||
|
||||
My contribution also proves the conjecture stated in Sestini's PhD.
|
||||
My contribution is also a first step towards solving the conjecture stated in Sestini's PhD.
|
||||
|
||||
\subsection*{Summary and Future Work}
|
||||
|
||||
We formalized semantically this transformation, enabling us to be more general and to avoid the syntactical aspects of GATs.
|
||||
This transformation has been proven, so that studying only GATs with two sorts can be done without loosing generality.
|
||||
We formalized semantically this transformation, enabling us to be more general and avoid the syntactical aspects of GATs.
|
||||
This transformation has been proven so that studying only GATs with two sorts can be done without losing generality.
|
||||
|
||||
A next step could be to add term constructors to our formalization. We could describe their transformation and adapt the properties we stated for sort specification to them.
|
||||
The next step could be to add term constructors to our formalization. We could describe their transformation and adapt the properties we stated for sort specification to them.
|
||||
|
||||
We could also try to further generalize GATs using this transformation. We could for example try to describe sorts that are mutually included one into the other. There is work in studying them, and looking at how the transformation affects them in order to discover new properties.
|
||||
We could also try to further generalize GATs using this transformation. We could for example try to describe sorts that are mutually included one into the other. More work needs to be done studying them and looking at how the transformation affects them to discover new properties.
|
||||
|
||||
\hsep
|
||||
We could also aim to encode this transformation and the associated proofs in a proof assistant like Agda or Coq.
|
||||
|
||||
\newpage
|
||||
|
||||
\setcounter{tocdepth}{2}
|
||||
\tableofcontents
|
||||
@ -71,7 +74,7 @@
|
||||
|
||||
A sort specification is a list of \emph{sort declarations}, composed of \emph{parameters} and $\Set$ as their codomain.
|
||||
|
||||
We give an example of a sort specification for Type Theory. On the right column we give the interpretation of the sort declarations as components of the models of the GAT.
|
||||
We give an example of a sort specification for Type Theory. In the right column, we give the interpretation of the sort declarations as components of the models of the GAT.
|
||||
|
||||
\vspace{1em}
|
||||
\renewcommand\arraystretch{1.5}
|
||||
@ -85,7 +88,7 @@
|
||||
A sort specification therefore specifies the different families of sets contained in a model, and how they relate to each other in terms of indexing.
|
||||
|
||||
\paragraph{Term specification}
|
||||
Once we have a sort specification, we can add constructors to it in order to make a complete GAT. Constructors are composed of parameters (the same kind as for sort declarations) and of a codomain which is a sort defined by a previous sort declaration. Those constructors specify elements of the sets contained in the model.
|
||||
Once we have a sort specification, we can add constructors to it to make a complete GAT. Constructors are composed of parameters (the same kind as for sort declarations) and of a codomain which is a sort defined by a previous sort declaration. Those constructors specify elements of the sets contained in the model.
|
||||
For example, to the previous sort specification, one can add the following constructors:
|
||||
|
||||
\vspace{1em}
|
||||
@ -112,7 +115,7 @@
|
||||
|
||||
|
||||
|
||||
Then, we replace all occurrences of $\Set$ to $\mathcal{O}$, and we apply $\El$ to every parameter. We write $\underline{o}$ rather than $\El(o)$ in order to ease reading. For example, the GAT of Type Theory presented above becomes that which follows:
|
||||
Then, we replace all occurrences of $\Set$ to $\mathcal{O}$, and we apply $\El$ to every parameter. We write $\underline{o}$ rather than $\El(o)$ to ease reading. For example, the GAT of Type Theory presented above becomes that which follows:
|
||||
|
||||
\begin{tabular}{p{0.4\textwidth}|p{0.5\textwidth}}
|
||||
$\Con : \mathcal{O}$ & One sort object is called \enquote{$\Con$} \\
|
||||
@ -127,7 +130,7 @@
|
||||
$\dots$
|
||||
\end{tabular}
|
||||
|
||||
This process is useful when studying GATs, as it allows to restrict a study to GATs with only two sorts without loss of generality. Filippo Sestini noticed that in his thesis \cite{SestiniPhD}:
|
||||
This process is useful when studying GATs, as it enables one to restrict the scope of their study to GATs with only two sorts without loss of generality. Filippo Sestini noticed that in his thesis \cite{SestiniPhD}:
|
||||
|
||||
\begin{quote}
|
||||
Many instances of multi-sorted IITs [IITs are a variant of GATs] can be reduced to equivalent two-sorted IITs, via a systematic reduction method originally observed by Zongpu (Szumi) Xie. We are not aware of a formal proof of this construction for arbitrary IITs, but we conjecture that it does apply to all instances of induction-induction and consequently that it shows two-sorted IITs are enough to represent any specifiable IIT.
|
||||
@ -135,7 +138,7 @@
|
||||
|
||||
\paragraph{Goal}
|
||||
|
||||
The goal of my internship was to study and understand the relationship between the categories of models of an original GAT and the category of models of the transformed \enquote{two-sortified} GAT, in order to legitimate this transformation. In this document, we will only study sort specifications (i.e. lists of sort declaration, with no constructors).
|
||||
The goal of my internship was to study and understand the relationship between the categories of models of an original GAT and the category of models of the transformed \enquote{two-sortified} GAT, to legitimate this transformation. In this document, we will only study sort specifications (i.e. lists of sort declarations, with no constructors).
|
||||
|
||||
We constructed a coreflection between those two categories, whose formal definition is given in \autoref{sec:proofSection}. It consists of an adjunction $F \vdash G$ between the category $\CC$ of the models of the GAT and the category $\BB$ of the models of the two-sortified GAT, where G is full and faithful.
|
||||
This coreflection justifies the transformation as the initial object of $\CC$ can be computed as the image by $F$ of the initial object of $\BB$.
|
||||
@ -157,7 +160,7 @@
|
||||
\paragraph{Structure of the proof}
|
||||
The formal proof will be an induction on the number of sorts taken into account. At each step, we will add a new sort declaration, represented by a functor $H_i$ described later (\autoref{sec:constructingCategory}).
|
||||
|
||||
At the $i$-th recursion step, we will build the following objects :
|
||||
At the $i$th recursion step, we will build the following objects :
|
||||
\begin{itemize}
|
||||
\setlength\itemsep{-1ex}
|
||||
\item The category of models of the GAT $\CC_i$
|
||||
@ -168,21 +171,21 @@
|
||||
\item A proof that $F_iG_i \cong \Id_{\CC_i}$ (i.e. $F_i \vdash G_i$ make up a coreflection)
|
||||
\end{itemize}
|
||||
|
||||
We will now present those objects on two specific examples in order to help getting an understanding of the logic behind the formal proof.
|
||||
We will now present those objects on two specific examples to help get an understanding of the logic behind the formal proof.
|
||||
|
||||
\subsection{The empty sort specification}
|
||||
|
||||
\label{sec:EmptySortSpec}
|
||||
|
||||
Our first example is the empty sort specification. As our proof will we an induction on the number of sorts, its first step will always be creating the objects for this empty sort specification.
|
||||
Our first example is the empty sort specification. As our proof will be an induction on the number of sorts, its first step will always be creating the objects for this empty sort specification.
|
||||
|
||||
\paragraph{Category of models of the empty sort specification}
|
||||
|
||||
The category of models of the empty sort specification will simply be $\one$, the category with only one object $\star$ and one trivial morphism (i.e. the terminal category of $\Cat$). This is because the empty sort specification only has one model. We will denote this category as $\CC_0$.
|
||||
The category of models of the empty sort specification will simply be $\one$, the category with only one object $\star$ and one trivial (identity) morphism (i.e. the terminal category of $\Cat$). This is because the empty sort specification has only one model. We will denote this category as $\CC_0$.
|
||||
|
||||
\paragraph{Category of models of the transformed GAT}
|
||||
|
||||
The transformed GAT for the empty sort specification is the sort specification $(\mathcal{O},\El)$ (no constructors as there are no sort in the initial sort specification):
|
||||
The transformed GAT for the empty sort specification is the sort specification $(\mathcal{O},\El)$ (no constructors as there is no sort in the initial sort specification):
|
||||
\vspace{.5ex}
|
||||
\begin{center}
|
||||
\renewcommand\arraystretch{1}
|
||||
@ -204,9 +207,11 @@
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
So an object of $\TSet$ is composed of two sets $X_\UU$ and $X_\El$ and an arrow $X_p : X_\El \to X_\UU$. Morphisms are natural transformations $f : X \to X'$ i.e. two functions $f_\UU : X_\UU \to X'_\UU$ and $f_\El : X_\El \to X'_\El$ that commutes with $X_p$ and $X'_p$.
|
||||
|
||||
This category is equivalent to the category $\FamSet$ with an equivalence we will see later (\autoref{SetXSetXEquivalence})
|
||||
|
||||
With this formalisation, a model of this sort specification is a functor $X : \TT \to \Set$, such that
|
||||
With this formalization, a model of this sort specification is a functor $X : \TT \to \Set$, such that
|
||||
\begin{itemize}
|
||||
\item $X_\UU$ is the set of the \enquote{sort objects}
|
||||
\item For each sort object $A \in X_\UU$, the set of objects corresponding to the sort object is $X_p^{-1}(\{A\}) \subset X_\El$
|
||||
@ -231,7 +236,7 @@
|
||||
|
||||
We can check that those two functors create an adjunction, as
|
||||
\[
|
||||
\Hom(G_0 \star,X) = \Hom(0_\TSet,X) \cong \one \cong \Hom(\star,F_0 X)
|
||||
\Hom(G_0 \star,X) = \Hom(0_\TSet,X) \cong 1_\Set \cong \Hom(\star,F_0 X)
|
||||
\]
|
||||
|
||||
We also have that they create a coreflection, as $F_0G_0$ goes from $\one$ to $\one$, and so $F_0G_0 = \Id_\one$ as $\one$ is terminal in $\Cat$. So $F_0G_0$ is an isofunctor.
|
||||
@ -266,15 +271,15 @@
|
||||
|
||||
Where the categories $\CC_i$ are the categories of models of the sort specification limited to the $i$ first sort declarations, and $\BB_i$ are the categories of models of the transformed GAT limited to the $i$ first sort declarations. For example, $\CC_2$ is the category of models of the two first sorts of the sort specification ($\Con$,$\Ty$). $\BB_0$,$\CC_0$,$F_0$, and $G_0$ have been defined in the last subsection.
|
||||
|
||||
The $R^i_{i-1}$ functors between the categories are forgetful functors that forgets about the added sorts.
|
||||
The $R^i_{i-1}$ functors between the categories are forgetful functors that forget about the added sorts.
|
||||
|
||||
I will only give here the explanation of functors $F_3$ and $G_3$, omitting the intermediate functors $F_1$,$G_1$,$F_2$,$G_2$. Their construction is given in the complete proof.
|
||||
I will only give here the explanation of functors $F_3$ and $G_3$, omitting the intermediate functors $F_1$, $G_1$, $F_2$, $G_2$. Their construction is given in the complete proof.
|
||||
|
||||
\paragraph{Category of models}
|
||||
|
||||
We have seen in the introduction a description of a model of the type theory sort specification. We will rebuild the category of those models inductively, adding one sort at a time.
|
||||
|
||||
In order to construct those categories in a generic way, we will define functors $H_X : \CC_{X-1} \to \Set$ that will describe the \enquote{parameters} of the sort declaration.
|
||||
To construct those categories generically, we will define functors $H_X : \CC_{X-1} \to \Set$ that will describe the \enquote{parameters} of the sort declaration.
|
||||
|
||||
\[
|
||||
\boxed{\Con : \Set}
|
||||
@ -284,7 +289,7 @@
|
||||
H_\Con(\star) = 1 \in \Set
|
||||
\]
|
||||
|
||||
This functor means that $\Con$ takes no parameter i.e. there is only \emph{one} way of constructing a $\Con$.
|
||||
This functor means that $\Con$ takes no parameter (or one parameter of type \texttt{unit}) i.e. there is only \emph{one} way of constructing a $\Con$.
|
||||
|
||||
We build $\CC_1$ to be a pair of
|
||||
\begin{itemize}
|
||||
@ -292,7 +297,7 @@
|
||||
\item A family of sets $X_\Con$ indexed by $H_\Con(x) = 1$
|
||||
\end{itemize}
|
||||
|
||||
As there is only one object in $\CC_0$ and that a family of sets indexed by $1$ is simply a set, we have that this category $\CC_1$ is isomorphic to $\Set$ (i.e. the category of sets).
|
||||
As there is only one object in $\CC_0$ and as a family of sets indexed by $1$ is simply a set, we have that this category $\CC_1$ is isomorphic to $\Set$ (i.e. the category of sets).
|
||||
This is as expected: a model $X$ consists of a set $X_\Con$.
|
||||
|
||||
\[
|
||||
@ -307,7 +312,7 @@
|
||||
\item A family of sets $X_\Ty$ indexed by $H_\Ty(X_\Con) = X_\Con$
|
||||
\end{itemize}
|
||||
|
||||
This category is, as expected, the category $\FamSet$ of families of sets i.e. objects are pairs of a set $X_\Con$ and of a family indexed by $X_\Con$: $(X_\Ty(\Gamma))_{\Gamma\in X_\Con}$.
|
||||
This category is, as expected, the category $\FamSet$ of families of sets i.e. objects are pairs of a set $X_\Con$ and a family indexed by $X_\Con$: $(X_\Ty(\Gamma))_{\Gamma\in X_\Con}$.
|
||||
|
||||
\[
|
||||
\boxed{\Tm : (\Delta : \Con) \to (A : \Ty\;\Delta) \to \Set}
|
||||
@ -345,7 +350,7 @@
|
||||
\end{array}}
|
||||
\]
|
||||
|
||||
We have seen in previous subsection that the category of models of this GAT is $\BB_0 = \TSet$. We will only add new \emph{constructors} to these models, and no new sorts.
|
||||
We have seen in the previous subsection that the category of models of this GAT is $\BB_0 = \TSet$. We will only add new \emph{constructors} to these models, and no new sorts.
|
||||
|
||||
\[
|
||||
\boxed{\Con : \mathcal{O}}
|
||||
@ -370,12 +375,12 @@
|
||||
|
||||
Now the constructor we are adding takes one parameter. It means that for every element of $\El$ associated with $\Con$, there is an object in $\mathcal{O}$.
|
||||
|
||||
This constructor translates into an object
|
||||
This constructor means that a model $X$ comes with a function as follows:
|
||||
\[
|
||||
\Cstr^X_\Ty : X_p^{-1}(\Cstr^X_\Con) \to X_\UU
|
||||
\Cstr^X_\Ty : X_p^{-1}\left(\{\Cstr^X_\Con\}\right) \to X_\UU
|
||||
\]
|
||||
|
||||
The codomain of this constructor means \enquote{Every object of $X_\El$ that are associated to the $\Con$ object of $X_\UU$ i.e. the object $\Cstr^X_\Con$}
|
||||
The codomain of this constructor means \enquote{Every object of $X_\El$ that is associated to the $\Con$ object of $X_\UU$ i.e. the object $\Cstr^X_\Con$}
|
||||
This codomain is quite verbose, but we have another way of expressing it. In the final proof, we will have already constructed the functor $F_1 : \BB_1 \to \CC_1$, and we had a functor $H_\Ty : \CC_1 \to \Set$ that described the parameters of the sort declaration of $\Ty$ for the category $\CC_1$. It turns out that $H_\Ty \circ F_1 : \BB_1 \to \Set$ describes exactly the codomain expressed above.
|
||||
\[
|
||||
(H_\Ty \circ F_1) (X,\Cstr^X_\Con) = X_p^{-1}\left(\Cstr^X_\Con\right)
|
||||
@ -389,7 +394,7 @@
|
||||
\item A constructor $\Cstr^X_\Ty : H_iF_{i-1}(X,\Cstr^X_\Con) \to X_\UU$
|
||||
\end{itemize}
|
||||
|
||||
One again, a morphism $f$ from $(X,\Cstr^X_\Con,\Cstr^X_\Ty)$ to $(X',\Cstr^{X'}_\Con,\Cstr^{X'}_\Ty)$ is simply a morphism of $\BB_1$ from $(X,\Cstr^X_\Con)$ to $(X',\Cstr^{X'}_\Con)$ that does respect the $\Cstr_\Ty$ constructor, i.e. that verifies, for every $\Gamma$ in $H_iF_{i-1}(X,\Cstr^X_\Con)$ that
|
||||
Once again, a morphism $f$ from $(X,\Cstr^X_\Con,\Cstr^X_\Ty)$ to $(X',\Cstr^{X'}_\Con,\Cstr^{X'}_\Ty)$ is simply a morphism of $\BB_1$ from $(X,\Cstr^X_\Con)$ to $(X',\Cstr^{X'}_\Con)$ that does respect the $\Cstr_\Ty$ constructor, i.e. that verifies, for every $\Gamma$ in $H_iF_{i-1}(X,\Cstr^X_\Con)$ that
|
||||
\[
|
||||
f_\UU(\Cstr^X_\Ty(\Gamma)) = \Cstr^{X'}_\Ty(f_\El(\Gamma))
|
||||
\]
|
||||
@ -404,7 +409,7 @@
|
||||
\item A constructor $\Cstr^X_\Tm$ that goes from $H_\Tm F_2 X$ to $X_\UU$
|
||||
\end{itemize}
|
||||
|
||||
And morphism are restricted with the $\Tm$ constructor rule that states that for every $(\Delta,A)$ in $H_iF_{i-1}(X,\Cstr^X_\Con,\Cstr^X_\Ty)$
|
||||
And morphisms are restricted with the $\Tm$ constructor rule that states that for every $(\Delta,A)$ in $H_iF_{i-1}(X,\Cstr^X_\Con,\Cstr^X_\Ty)$
|
||||
\[
|
||||
f_\UU(\Cstr^X_\Tm(\Delta,A)) = \Cstr^{X'}_\Tm(f_\El(\Delta),f_\El(A))
|
||||
\]
|
||||
@ -431,7 +436,7 @@
|
||||
\item $X_p$ sends an object of a sort to the sort it corresponds to
|
||||
\end{itemize}
|
||||
|
||||
Therefore, we will construct $X_\UU$ to be the disjoint union of all the indices of the sets inside $Y$, $X_\El$ will be the disjoint union of all the sets inside $Y$, and $X_p$ will keep track of what is the index of a set.
|
||||
Therefore, we will construct $X_\UU$ to be the disjoint union (denoted $\oplus$) of all the indices of the sets inside $Y$, $X_\El$ will be the disjoint union of all the sets inside $Y$, and $X_p$ will keep track of what is the index of a set.
|
||||
|
||||
\[\begin{array}{ccccccc}
|
||||
|
||||
@ -455,10 +460,10 @@
|
||||
\Cstr^X_\Tm(\Delta,A) &=& \inj_3(\Delta,A)
|
||||
\end{array}\]
|
||||
|
||||
where $\inj_i$ is the $i$-th injector of the direct sum $\oplus$.
|
||||
where $\inj_i$ is the $i$th injector of the disjoint union $\oplus$.
|
||||
|
||||
\begin{remark}
|
||||
With this functor, every element of $X_\UU$ is reached by some constructor. And therefore, every object of $X_\El$ points to a sort that is reached by some constructor.
|
||||
With this functor, every element of $X_\UU$ is reached by some constructor. Therefore, every object of $X_\El$ points to a sort that is reached by some constructor.
|
||||
\end{remark}
|
||||
|
||||
\paragraph{Constructing $F_i$}
|
||||
@ -488,12 +493,12 @@
|
||||
\begin{remark}
|
||||
We can see that the $F_3$ functor does not take into account elements of $X_\UU$ that are not \enquote{created} by one of the constructors, nor does it take into account the elements of $X_\El$ that are associated with those elements of $X_\UU$.
|
||||
|
||||
This will later justify that when one adds elements to the base object $X$ of a model of $\BB_i$, then the image model by $F_i$ is unchanged, i.e. $F_i \inj_\tl^i$ is an isomorphism.
|
||||
This will later justify that when one adds elements to the base object $X$ of a model of $\BB_i$, then the image model by $F_i$ is unchanged, which we will later express by \enquote{$F_i \inj_\tl^i$ is an isomorphism} in \hyperref[sec:proofSection]{the global proof}.
|
||||
\end{remark}
|
||||
|
||||
\paragraph{An adjunction}
|
||||
|
||||
I will not do the proof that $F_3 \vdash G_3$, but i will give moral reasons of why the adjunction holds.
|
||||
I will not do the proof that $F_3 \vdash G_3$ in this specific case, as it will be proven in the general case in the global proof, but I will give intuitions of why the adjunction holds.
|
||||
|
||||
An adjunction would be described by the following isomorphism:
|
||||
\[
|
||||
@ -501,9 +506,9 @@
|
||||
\]
|
||||
|
||||
Recall that sorts of $G_3Y$ are all in the domain of some constructor, so therefore, a morphism of $\Hom_{\BB_3}(G_3Y,X)$ only acts on constructible sorts.
|
||||
Also, the only sorts that remain in $F_3X$ are the one that were reached by some constructor of $X$, therefore a morphism of $\Hom_{\CC_3}(Y,F_3X)$ only acts on constructible sorts.
|
||||
Also, the only sorts that remain in $F_3X$ are the ones that were reached by some constructor of $X$, therefore a morphism of $\Hom_{\CC_3}(Y,F_3X)$ only acts on constructible sorts.
|
||||
|
||||
Therefore, both morphism are only descriptions of actions on constructible sorts into constructible sorts. That's how we create the isomorphism.
|
||||
Therefore, both morphisms are only descriptions of actions on constructible sorts into constructible sorts. That's how we create the isomorphism.
|
||||
|
||||
\paragraph{A coreflection}
|
||||
|
||||
@ -533,7 +538,7 @@
|
||||
|
||||
\section{Constructing the coreflection}
|
||||
\label{sec:proofSection}
|
||||
The proof will take form of an induction on the number of sorts taken into account. At each induction step, we will build the following objects:
|
||||
The proof will take the form of an induction on the number of sorts taken into account. At each induction step, we will build the following objects:
|
||||
|
||||
\begin{itemize}
|
||||
\setlength\itemsep{-1ex}
|
||||
@ -545,7 +550,7 @@
|
||||
\[
|
||||
R_0^i := R^1_0 \circ \dots \circ R_{i-1}^i
|
||||
\]
|
||||
\item An operator $\tl^i : \BB_i \times \BB_0 \to \BB_i$ along with two morphism $\inj_1^i : X \to X \tl^i Y$ and $\inj_2^i : Y \to R_0^i(X \tl^i Y)$ for every $X,Y$ in $\BB_i \times \BB_0$, such that the canonical morphism $\en_{i-1}^i : (R_{i-1}^i X) \tl^{i-1} Y \to R_{i-1}^i (X \tl^i Y)$ is an isomorphism. This operation follows a specific universal property: For every morphisms $g : X \to Z$ and $h : Y \to R_0^iZ$, there is an unique morphism $\{g;h\}$ such that the following diagrams commute:
|
||||
\item An operator $\tl^i : \BB_i \times \BB_0 \to \BB_i$ along with two morphism $\inj_1^i : X \to X \tl^i Y$ and $\inj_2^i : Y \to R_0^i(X \tl^i Y)$ for every $X,Y$ in $\BB_i \times \BB_0$. This operation follows a specific universal property: For every morphism $g : X \to Z$ and $h : Y \to R_0^iZ$, there is a unique morphism $\{g;h\}$ such that the following two diagrams respectively in $\BB_i$ and $\BB_0$ commute:
|
||||
\label{sec:tlUniversalProperty}
|
||||
|
||||
\begin{center}
|
||||
@ -555,16 +560,17 @@
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
We will also denote a composition morphism as such:
|
||||
\[\en_0^i := R_0^{i-1} \en_{i-1}^i \circ \dots \circ R_0^1\en_1^2 \circ \en_0^1 : (R_0^i X) \oplus Y = (R_0^i X) \tl^0 Y \to R_0^i (X \tl^i Y)\]
|
||||
|
||||
The operator is also defined on morphisms, such that for any morphism $g : X \to X'$ in $\BB_i$ and $h : Y \to Y'$ in $\BB_0$, there is a morphism $g \tl^i h : X \tl^i Y \to X' \tl^i Y'$ in $\BB_i$.
|
||||
The operator can be extended to act on morphisms by exploiting the universal property, so that for any morphism $g : X \to X'$ in $\BB_i$ and $h : Y \to Y'$ in $\BB_0$, there is a morphism $g \tl^i h : X \tl^i Y \to X' \tl^i Y'$ in $\BB_i$.
|
||||
|
||||
\item A functor $F_i : \BB_i \to \CC_i$
|
||||
\item A functor $G_i : \CC_i \to \BB_i$
|
||||
\item An adjunction between them $F_i \vdash G_i$
|
||||
\item A proof that $F_iG_i \cong \Id_{\CC_i}$ (i.e. $F_i \vdash G_i$ make up a coreflection)
|
||||
\item A proof that $F_i\inj_1^i$ is an isomorphism. The inverse isomorphism will be denoted as $(F_i\inj_1^i)^{-1}$
|
||||
\item A proof that the canonical morphism $\en_{i-1}^i : (R_{i-1}^i X) \tl^{i-1} Y \to R_{i-1}^i (X \tl^i Y)$ is an isomorphism.
|
||||
|
||||
We will denote the composition of those $\en$ morphisms as such:
|
||||
\[\en_0^i := R_0^{i-1} \en_{i-1}^i \circ \dots \circ R_0^1\en_1^2 \circ \en_0^1 : (R_0^i X) \tl^0 Y \to R_0^i (X \tl^i Y)\]
|
||||
\end{itemize}
|
||||
|
||||
Here is a figure that describes the recursive construction of some of the above objects
|
||||
@ -599,13 +605,13 @@
|
||||
|
||||
We can define a functor $\left(\mathcal{C}/\dash\right) : \mathcal{C} \to \Cat$ from this construction.
|
||||
|
||||
We will often concatenate the two method above to create from a category $\mathcal{C}$ and a functor $H : \mathcal{C} \to \Set$ a new category $(X : \mathcal{C}) \times \left(\Set\middle/H(X)\right)$.
|
||||
We will often concatenate the two methods above to create from a category $\mathcal{C}$ and a functor $H : \mathcal{C} \to \Set$ a new category $(X : \mathcal{C}) \times \left(\Set\middle/H(X)\right)$.
|
||||
|
||||
\paragraph{Slice category over a set}
|
||||
\label{SetXSetXEquivalence}
|
||||
|
||||
When the category $\mathcal{C}$ is $\Set$, we have the equivalence
|
||||
\[\Set/X \cong \Set^X\]
|
||||
\[\Set/X \simeq \Set^X\]
|
||||
|
||||
This equivalence is described by the following correspondence of objects.
|
||||
An object $(Y,f)$ of $\Set/X$ is transformed into the family of sets $A : X \to \Set$ defined by
|
||||
@ -637,7 +643,7 @@
|
||||
|
||||
This category is equivalent to the category $\FamSet$, as $(X : \Set) \times \Set^X$ is equivalent to $(X : \Set) \times (\Set/X)$ (as seen above), which is isomorphic to $\TSet$ (both categories consists of two sets and one arrow between them).
|
||||
|
||||
The categories of models of the transformed GATs will be built atop of this category $\BB_0 = \TSet$.
|
||||
The categories of models of the transformed GATs will be built atop this category $\BB_0 = \TSet$.
|
||||
|
||||
\paragraph{$K$ functor}
|
||||
|
||||
@ -673,9 +679,9 @@
|
||||
\subsection{Inductive Step: Constructing the categories}
|
||||
|
||||
\label{sec:constructingCategory}
|
||||
In this part, i will show how we construct recursively both categories $\CC_i$ and $\BB_i$, along with the functor $R_{i-1}^i : \BB_i \to \BB_{i-1}$. We will use the loop invariants that we expressed in the introduction of this section.
|
||||
In this part, we will show how we construct recursively both categories $\CC_i$ and $\BB_i$, along with the functor $R_{i-1}^i : \BB_i \to \BB_{i-1}$. We will use the loop invariants that we expressed in the introduction of this section.
|
||||
|
||||
In order to construct the categories, we need some object describing the sorts we are adding to the categories. This object is a given functor $H_i : \CC_{i-1} \to \Set$. Those functors are the same that Altenkirch and al. \cite{Altenkirch2018} used in their paper to describe a specification of sorts. They are such that, for $X : \CC_{i-1}$ a model, they describe the set $H_iX$ of parameter range for the added sort. We gave an example of those functors in section \nameref{sec:Examples} if you want to understand how they work. There is also a way of obtaining them directly from the syntax, described in section \nameref{sec:HiFromSyntax}.
|
||||
To construct the categories, we need some object describing the sorts we are adding to the categories. This object is a given functor $H_i : \CC_{i-1} \to \Set$. Those functors are the same that Altenkirch and al. \cite{Altenkirch2018} used in their paper to describe a specification of sorts. They are such that, for $X : \CC_{i-1}$ a model, they describe the set $H_iX$ of parameter range for the added sort. We gave an example of those functors in section \nameref{sec:Examples} if you want to understand how they work. There is also a way of obtaining them directly from the syntax, described in section \nameref{sec:HiFromSyntax}.
|
||||
We suppose that those $H_i$ functors are given.
|
||||
|
||||
\subsubsection{Constructing $\CC_i$}
|
||||
@ -715,7 +721,7 @@
|
||||
|
||||
Identities and compositions are that of the category $\BB_{i-1}$, and categorical equalities are trivially derived from the diagram above.
|
||||
|
||||
$R_{i-1}^i$ acts on objects and morphisms, and induces a functor $\BB_i \to \BB_{i-1}$. The induced functor is monadic, and therefore preserves limits.
|
||||
$R_{i-1}^i$ acts on objects and morphisms and induces a functor $\BB_i \to \BB_{i-1}$. The induced functor is monadic and therefore preserves limits.
|
||||
|
||||
\subsection{Inductive step: Constructing the functors $F_i$ and $G_i$}
|
||||
|
||||
@ -766,12 +772,12 @@
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
The action on a morphism $(g,h)$ from $(X,Y)$ to $(X',Y')$ is the following:
|
||||
The action on a morphism $(g,h)$ from $(X,Y)$ to $(X',Y')$ is defined such that:
|
||||
\[
|
||||
W(g,h) := \left(g \tl^{i-1} K_{H_iF_{i-1}}(g,h)\right)
|
||||
R_{i-1}^i W(g,h) := \left(g \tl^{i-1} K_{H_iF_{i-1}}(g,h)\right)
|
||||
\]
|
||||
|
||||
We verify that it is indeed a morphism of $\BB_{i}$ in appendix \ref{apx:wdefsound}
|
||||
We verify in Appendix \ref{apx:wdefsound} that this morphism verifies the property of morphisms of $\BB_i$ so that it is indeed a morphism of $\BB_{i}$.
|
||||
|
||||
\subsubsection{E definition}
|
||||
|
||||
@ -823,7 +829,7 @@
|
||||
All these steps give us that $F_i$ and $G_i$ are in an adjunction $F_i \vdash G_i$.
|
||||
|
||||
\paragraph{Coreflection}
|
||||
Next, we have proven that this newly created adjunction $F_i \vdash G_i$ create a coreflection. It means that $F_iG_i \cong \Id_{\CC_i}$, or equivalently that $G_i$ is full and faithful.
|
||||
Next, we have proven that this newly created adjunction $F_i \vdash G_i$ creates a coreflection. It means that $F_iG_i \cong \Id_{\CC_i}$, or equivalently that $G_i$ is full and faithful.
|
||||
|
||||
The proof of that second statement is given in \autoref{apx:FG-refl}.
|
||||
|
||||
@ -846,12 +852,12 @@
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
The first injector $\inj_1^i : X \to X \tl^i Y$ is defined as follows:
|
||||
The first injector $\inj_1^i : X \to X \tl^i Y$ is defined such that:
|
||||
\[
|
||||
\inj_1^i := \inj_1^{i-1} : R_{i-1}^i X \to R_{i-1}^i (X \tl^i Y) = R_{i-1}^i X \tl^{i-1} Y
|
||||
R_{i-1}^i \inj_1^i := \inj_1^{i-1} : R_{i-1}^i X \to R_{i-1}^i (X \tl^i Y) = R_{i-1}^i X \tl^{i-1} Y
|
||||
\]
|
||||
|
||||
We check that $\inj_1^i$ is a morphism of $\BB_i$ in appendix \ref{apx:inj1morphism}.
|
||||
We check that $\inj_1^i$ is a morphism of $\BB_i$ in Appendix \ref{apx:inj1morphism}.
|
||||
|
||||
The second injector is defined as
|
||||
\[
|
||||
@ -859,8 +865,8 @@
|
||||
\]
|
||||
|
||||
\paragraph{Universal Property}
|
||||
We will now show that that the universal property stated in \autoref{sec:tlUniversalProperty} holds.
|
||||
To that end, we take two objects $X$ and $Z$ in $\BB_i$, $Y$ in $\BB_0$, a morphism $g : X \to Z$ in $\BB_i$ and a morphism $h : Y \to R_0^iZ$ in $\BB_0$. We want to build a morphism $\{g,h\}$ of $\BB_i$ such that the following diagram commute.
|
||||
We will now show that the universal property stated in \autoref{sec:tlUniversalProperty} holds.
|
||||
To that end, we take two objects $X$ and $Z$ in $\BB_i$, $Y$ in $\BB_0$, a morphism $g : X \to Z$ in $\BB_i$ and a morphism $h : Y \to R_0^iZ$ in $\BB_0$. We want to build a morphism $\{g,h\}$ of $\BB_i$ such that the following diagrams of $\BB_i$ and $\BB_0$ commute.
|
||||
|
||||
\begin{center}
|
||||
% YADE DIAGRAM TlUniversal.json
|
||||
@ -869,9 +875,9 @@
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
We define $\{g ; h\}_i = \{R_{i-1}^i g ; h\}_{i-1}$. We check that this is a morphism of $\BB_i$ in appendix \ref{apx:universalpropertymorphismIsMorphism}.
|
||||
We check that $\{R_{i-1}^i g ; h\}_{i-1}$ verifies the property of morphisms of $\BB_i$ in Appendix \ref{apx:universalpropertymorphismIsMorphism}. Therefore, we can define $\{g ; h\}_i$ such that $R_{i-1}^i\{g ; h\}_i = \{R_{i-1}^i g ; h\}_{i-1}$.
|
||||
|
||||
And this morphism $\{g;h\}_i$ is such that the universal property for it is exactly the same as the one of $\{R_{i-1}^i g, h\}$.
|
||||
This morphism $\{g;h\}_i$ is such that the universal property for it is the same as the one of $\{R_{i-1}^i g, h\}$.
|
||||
|
||||
With this definition, the isomorphism $\en_{i-1}^i : (R_{i-1}^i X) \tl^{i-1} Y \to R_{i-1}^i(X \tl^i Y)$ is simply the identity morphism.
|
||||
|
||||
@ -897,7 +903,7 @@
|
||||
We finally need to prove, for any objects $X$ in $\BB_i$ and $Y$ in $\TSet$, that the morphism
|
||||
$F_i(\inj_1^i) : F_iX \to F_i(X \tl^i Y)$ is an isomorphism.
|
||||
|
||||
Morphisms $\BB_{i}$ are morphisms of $\BB_{i-1}$ that follows some equations, and composition is the same. Moreover, we know from the definition above that $R_{i-1^i} \inj_1^i := \inj_1^{i-1}$.
|
||||
Morphisms $\BB_{i}$ are morphisms of $\BB_{i-1}$ that follow some equations, and composition is the same. Moreover, we know from the definition above that $R_{i-1^i} \inj_1^i := \inj_1^{i-1}$.
|
||||
|
||||
So, we just need to know that $R_{i-1}^i(F_{i-1}\inj_1^i)$ is an isomorphism.
|
||||
|
||||
@ -909,16 +915,16 @@
|
||||
|
||||
\section{Other Properties}
|
||||
|
||||
\subsection{Fibration of the category $\CC_i$}
|
||||
\subsection{Sort specifications as simple direct categories}
|
||||
|
||||
In the formal proof, we defined $\CC_i$ as an inductive Grothendieck construction as in Altenkirch and al. papers \cite{Altenkirch2018}.
|
||||
In the formal proof, we defined $\CC_i$ as an inductive Grothendieck construction as in Altenkirch and al. paper \cite{Altenkirch2018}.
|
||||
|
||||
But there is an other way \cite{Fiore2008} of building the category $\CC_i$ which is equivalent to the one presented above.
|
||||
But there is another way \cite{Fiore2008} of building the category $\CC_i$ which is equivalent to the one presented above.
|
||||
|
||||
With this other method, a sort specification is described by a countable simple direct category $S$ (i.e. a countable category where all the arrows follow an unique direction, and $\Hom$-sets are finite). The models of the sort specification are therefore the presheaves over the category $S$ called $\left[S,\Set\right]$.
|
||||
With this other method, a sort specification is described by a finite simple direct category $S$ (i.e. a finite category where all the arrows follow a unique direction, and $\Hom$-sets are finite). The models of the sort specification are therefore the presheaves over the category $S$ called $\left[S,\Set\right]$.
|
||||
|
||||
\paragraph{Constructing $S$ as a sequence}
|
||||
In order to fall back on the definition we gave in the formal proof, we will build the final countable simple direct category $S$ as a sequence $\emptyset = S_0,S_1,\dots,S_i$ where $S_i$ is the category describing the sort specification limited to the $i$ first sort declarations.
|
||||
To fall back on the definition we gave in the formal proof, we will build the final countable simple direct category $S$ as a sequence $\emptyset = S_0,S_1,\dots,S_i$ where $S_i$ is the category describing the sort specification limited to the $i$ first sort declarations.
|
||||
|
||||
The input data describing the GAT will be a sequence of finite functors $\Gamma_i : S_{i-1} \to \Set$.
|
||||
|
||||
@ -943,12 +949,12 @@
|
||||
\end{center}
|
||||
|
||||
\begin{remark}
|
||||
This definition is reversable (up to the order of the sorts), and therefore, one can define a sequence of $\Gamma_i$ functors from any countable simple direct category.
|
||||
This definition is reversible (up to the order of the sorts), and therefore, one can define a sequence of $\Gamma_i$ functors from any countable simple direct category.
|
||||
\end{remark}
|
||||
|
||||
\paragraph{Falling back on the formal proof}
|
||||
\paragraph{Link with the formal proof}
|
||||
|
||||
In the formal proof, we used categories $\CC_i$ and functors $H_i : \CC_i \to \Set$. We now undertand that the categories $\CC_i$ are defined on top of the categories $S_i$ with $\CC_i := \left[S_i,\Set\right]$.
|
||||
In the formal proof, we used categories $\CC_i$ and functors $H_i : \CC_i \to \Set$. We now understand that the categories $\CC_i$ are defined on top of the categories $S_i$ with $\CC_i := \left[S_i,\Set\right]$.
|
||||
|
||||
In the same way, the functors $H_i : \CC_{i-1} \to \Set$ are defined on top of the functors $\Gamma_i$ with the following relation:
|
||||
\[
|
||||
@ -961,7 +967,7 @@
|
||||
In this part, we will see how the functors $\Gamma_i$ given above can be constructed from the syntax of a sort specification. The previous subsection gives us a way of constructing the $H_i$ functors from the $\Gamma_i$ functors, and thus one can make the complete proof with the definition below.
|
||||
|
||||
\paragraph{Verbose sort specification}
|
||||
We will take a verbose version of a sort specification, where when \enquote{implementing} a sort, we gave the name of the parameter and the name of the term. For example, our type theory example becomes the following verbose version:
|
||||
We will take a verbose version of a sort specification, where when \enquote{implementing} a sort, we give the name of the parameter and the name of the term. For example, our type theory example becomes the following verbose version:
|
||||
|
||||
\begin{center}
|
||||
\renewcommand\arraystretch{1.5}
|
||||
@ -972,9 +978,9 @@
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\vspace{1em}
|
||||
The only sort declaration that changes is that of $\Tm$ as it is the only one for which one of its parameter is a sort with parameters.
|
||||
The only sort declaration that changes is that of $\Tm$ as it is the only one for which one of its parameters is a sort with parameters.
|
||||
|
||||
With that verbose definition, a generic sort specification is a list of sort declarations indexed by $\mathbb{T}$, the fully ordered set of all sorts. The sort declarations are as follow, for a sort $T \in \mathbb{T}$
|
||||
With that verbose definition, a generic sort specification is a list of sort declarations indexed by $\mathbb{T}$, the fully ordered set of all sorts. The sort declarations are as follows, for a sort $T \in \mathbb{T}$
|
||||
|
||||
\[
|
||||
T : \left[x_a^T : U_T(a) \left[x^{U_T(a)}_{b} \mapsto x^T_{v_T(a,b)}\right]_{b\leq I_{U_T(a)}}\right]_{a \leq I_T} \to \Set
|
||||
@ -984,11 +990,11 @@
|
||||
\begin{itemize}
|
||||
\setlength\itemsep{-.2em}
|
||||
\item $I_T$ is the number of parameters of the sort $T$
|
||||
\item $x^T_a$ is the $a$-th parameter of the sort $T$
|
||||
\item $U_T(a)$ is the sort of the $a$-th parameter of the sort $T$ (we have $U_T(a) < T$)
|
||||
\item $x^T_a$ is the $a$th parameter of the sort $T$
|
||||
\item $U_T(a)$ is the sort of the $a$th parameter of the sort $T$ (we have $U_T(a) < T$)
|
||||
\item $I_{U_T(a)}$ is the number of parameters of the sort $U_T(a)$ i.e. the number of arguments we have to give to make an object of sort $U_T(a)$
|
||||
\item $x^{U_T(a)}_b$ is the $b$-th parameter of the sort $U_T(a)$
|
||||
\item $v_T(a,b)$ is the index of the parameter of the sort $T$ given as the $b$-th parameter of the $a$-th parameter of the sort $T$ (we have $v_T(a,b) < a$)
|
||||
\item $x^{U_T(a)}_b$ is the $b$th parameter of the sort $U_T(a)$
|
||||
\item $v_T(a,b)$ is the index of the parameter of the sort $T$ given as the $b$th parameter of the $a$th parameter of the sort $T$ (we have $v_T(a,b) < a$)
|
||||
\item The types of parameters have to be respected, therefore we must have the equality
|
||||
\[
|
||||
U_T(v_T(a,b)) = U_{U_T(a)}(b)
|
||||
@ -1042,7 +1048,7 @@
|
||||
|
||||
\paragraph{Creating the functor $\Gamma_i$}
|
||||
|
||||
We know we can create the functors $\Gamma_i$ directly from a complete category $S$, but we will look more in detail what those functors mean related to the syntax.
|
||||
We know we can create the functors $\Gamma_i$ directly from a complete category $S$, but we will look more in detail at what those functors mean related to the syntax.
|
||||
|
||||
If we are given the category $S_{i-1}$ with objects corresponding to the $i-1$ sorts already defined.
|
||||
|
||||
@ -1058,7 +1064,7 @@
|
||||
\Gamma_i(x_b^{T_x} : T_x \to T_y)(x^{T_i}_a \in \Gamma_i(T_x)) = x^{T_i}_{v_{T_i}(a,b)}
|
||||
\]
|
||||
|
||||
This definition is redundant with that of the last paragraph, but it has the advantage of directly creating the functor $\Gamma_i$ that are used to create the functors $H_i$ and all the rest of the proof.
|
||||
This definition is redundant with that of the last paragraph, but it has the advantage of directly creating the functors $\Gamma_i$ that are used to create the functors $H_i$ and all the rest of the proof.
|
||||
|
||||
% \subsection{Non-recursive definitions}
|
||||
%
|
||||
@ -1068,11 +1074,11 @@
|
||||
|
||||
\section{Summary}
|
||||
|
||||
The initial goal of this internship was to study the transformation of GATs to GATs with only two sorts. We have only studied the transformation of sort specifications. We managed to give a formal construction of the semantics of any sort specification and of its transformation.
|
||||
The initial goal of this internship was to study the transformation of GATs to GATs with only two sorts. We have only studied the transformation of sort specifications. We managed to give a formal construction of the semantics of any sort specification and its transformation.
|
||||
|
||||
We have described a relation between both categories, which is an coreflection, i.e. an adjunction where the left adjoint is full and faithful. This adjunction allows us to build the initial model of the initial GAT from the initial model of the transformed GAT, so one can study properties of GATs with only two sorts and transpose them to any GATs.
|
||||
We have described a relation between both categories, which is a coreflection, i.e. an adjunction where the left adjoint is full and faithful. This adjunction allows us to build the initial model of the initial GAT from the initial model of the transformed GAT, so one can study the properties of GATs with only two sorts and transpose them to any GATs.
|
||||
|
||||
There is still work to do in order to make the contents of this document apply to any GAT instead of only sort specifications. There is also ways of generalizing our formal construction to descriptions more general than GATs.
|
||||
There is still work to be done to make the contents of this document apply to any GAT instead of only sort specifications. There are also ways of generalizing our formal construction to description more general than GATs like GATs with sorts mutually included one into the other.
|
||||
|
||||
|
||||
|
||||
@ -1156,25 +1162,16 @@
|
||||
|
||||
Now, we take $(g,h)$ a morphism from $(X,Y)$ to $E(Z)$.
|
||||
|
||||
The morphism $\phi^{-1}_{XYZ}(g,h)$ of $\BB_i$ from $W(X,Y)$ to $Z$ is a morphism of $\BB_{i-1}$ from $X \tl^{i-1} K_{H_iF_{i-1}} (X,Y)$ to $R_{i-1}^i(Z)$ that make a specific diagram commute. We build this morphism using the universal property of $\tl^{i-1}$, stated in the introduction of this section.
|
||||
|
||||
\[
|
||||
\phi^{-1}_{XYZ}(g,h) := \left\{g ; \square \right\}
|
||||
\]
|
||||
|
||||
\todo{Est-ce qu'il faut que j'écrive $R_{i-1}^i\phi^{-1}_{XYZ}(g,h) := ...$ pour être plus «homogène» ?}
|
||||
|
||||
Where $\square$ is a morphism $K_{H_iF_{i-1}} (X,Y) \to R_0^i Z$ in $\TSet$ defined by the following diagram:
|
||||
The morphism $\phi^{-1}_{XYZ}(g,h)$ of $\BB_i$ from $W(X,Y)$ to $Z$ is a morphism of $\BB_{i-1}$ from $X \tl^{i-1} K_{H_iF_{i-1}} (X,Y)$ to $R_{i-1}^i(Z)$ that make a specific diagram commute. We build this morphism using the universal property of $\tl^{i-1}$ stated in the introduction of this section on the morphisms $g$ and $\square$, where $\square$ is a morphism $K_{H_iF_{i-1}} (X,Y) \to R_0^i Z$ in $\TSet$ defined by the following diagram:
|
||||
|
||||
\begin{center}
|
||||
% YADE DIAGRAM PhiXYZ-1Square.json
|
||||
% GENERATED LATEX
|
||||
\input{graphs/PhiXYZ-1Square.tex}
|
||||
% END OF GENERATED LATEX
|
||||
|
||||
\end{center}
|
||||
|
||||
Finally, we check that $\phi^{-1}_{XYZ}(g,h)$ is a morphism of $\BB_i$ from $W(X,Y)$ to $Z$, i.e. that it makes the following diagram commute:
|
||||
We check that the morphism $\{g;\square\}$ verifies the property of morphisms of $\BB_i$ i.e. it makes the following diagram commute:
|
||||
|
||||
\begin{center}
|
||||
% YADE DIAGRAM PhiXYZ-1MorphismOfBi.json
|
||||
@ -1183,6 +1180,12 @@
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
Therefore, we can define $\phi^{-1}_{XYZ}(g,h)$ such that
|
||||
\[
|
||||
R_{i-1}^i\phi^{-1}_{XYZ}(g,h) := \left\{g ; \square \right\}_{i-1}
|
||||
\]
|
||||
|
||||
|
||||
\subsection{Composition $\phi_{XYZ} \circ \phi_{XYZ}^{-1}$}
|
||||
|
||||
The first component of $\phi_{XYZ} (\phi_{XYZ}^{-1}(g,h))$ is
|
||||
@ -1205,7 +1208,7 @@
|
||||
(R_0^{i-1}\{g,\square\})_\El \circ (\inj^{i-1}_2)_\El = \square_\El
|
||||
\]}
|
||||
|
||||
The diagram commutes, and so we can deduce that the second component of $\phi_{XYZ}(f)$ is $h$, by proprty of the pullback $E(Z)$
|
||||
The diagram commutes, and so we can deduce that the second component of $\phi_{XYZ}(f)$ is $h$, by property of the pullback $E(Z)$
|
||||
|
||||
\subsection{Composition $\phi_{XYZ}^{-1} \circ \phi_{XYZ}$}
|
||||
|
||||
@ -1255,7 +1258,7 @@
|
||||
&=& \left[E(f) \circ \phi_{XYZ}(\ii) \circ (g,h)\right]_1
|
||||
\end{array}\]
|
||||
|
||||
The second components are defined by the pullback properties of $E(Z)$ and $E(Z')$. The two sides that define each morphism are give separately in the two following diagrams.
|
||||
The second components are defined by the pullback properties of $E(Z)$ and $E(Z')$. The two sides that define each morphism are given separately in the two following diagrams.
|
||||
|
||||
\begin{center}
|
||||
% YADE DIAGRAM NaturalityDoublePullbackDefinition1.json
|
||||
@ -1272,7 +1275,7 @@
|
||||
\end{center}
|
||||
|
||||
The second projection of $\phi_{XYZ}(f \circ \ii \circ W(g,h))$ is defined by the pullback of $E(Z')$ commuting with the blue bottom path. And that of $\phi_{X'Y'Z'}(\ii)$ is defined by the red top path.
|
||||
both diagrams commute, and therefore, by the pullback property, we get that
|
||||
Both diagrams commute, and therefore, by the pullback property, we get that
|
||||
\[
|
||||
\phi_{X'Y'Z'}(f\circ\ii\circ W(g,h))_2 = \left[E(f) \circ \phi_{XYZ}(\ii) \circ (g,h)\right]_2
|
||||
\]
|
||||
@ -1312,7 +1315,7 @@
|
||||
|
||||
\todo{Il manque l'info $\inj_2^{i-1} \circ \en_0^{i-1} = \inj_2^0$ OU ALORS que $\inj_2^{i-1}$ se transpose dans les pullbacks aussi.}
|
||||
|
||||
The first component of the isomorphism is the following isomorphism, where $\eta_{i-1}^{FG}$ if the counit of the adjunction $F_{i-1} \vdash G_{i-1}$, that we know to be an isomorphism from the induction hypothesis.
|
||||
The first component of the isomorphism is the following isomorphism, where $\eta_{i-1}^{FG}$ if the counit of the adjunction $F_{i-1} \vdash G_{i-1}$, which we know to be an isomorphism from the induction hypothesis.
|
||||
|
||||
\begin{center}
|
||||
% YADE DIAGRAM ReflectionFGIsomorphismFirst.json
|
||||
@ -1321,7 +1324,7 @@
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
And the second component is made using the isomorphism constructed by the pullback, that makes the diagram commute.
|
||||
The second component is made using the isomorphism constructed by the pullback, which makes the diagram commute.
|
||||
\begin{center}
|
||||
% YADE DIAGRAM ReflectionFGIsomorphismSecond.json
|
||||
% GENERATED LATEX
|
||||
@ -1329,47 +1332,52 @@
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
\section{Misc}
|
||||
\subsection{Infinite construction of $\BB_i$}
|
||||
\[
|
||||
\BB_i := \left(X : \TSet, \Cstr : (a : S_{i-1}) \to \Hom_{\BB_{a-1}}(G_{a-1}\Gamma_a,R_{a-1}^i(\this)) \to X(\UU)\right)
|
||||
\]
|
||||
A morphism from $(X,\Cstr)$ to $(X', \Cstr')$ is a morphism from $X$ to $X'$ in $\TSet$ (i.e. a natural transformation $X \implies X'$) which makes the following diagram commute, for all $a$ in $S_{i-1}$.
|
||||
|
||||
\begin{center}
|
||||
% YADE DIAGRAM BiMorphismDiagram.json
|
||||
% GENERATED LATEX
|
||||
\input{graphs/BiMorphismDiagram.tex}
|
||||
% END OF GENERATED LATEX
|
||||
\end{center}
|
||||
|
||||
Identities and compositions are that of the base category $\TSet$, and categorical equalities are trivially derived from the diagram above.
|
||||
|
||||
The diagram expresses as
|
||||
\[
|
||||
\forall \gamma \in \Hom_{G_{a-1}\Gamma_a,X}, \quad \Cstr'_a(f \circ \gamma) = f_\UU(\Cstr_a \gamma)
|
||||
\]
|
||||
|
||||
\todo{Define properly the use of \this}
|
||||
|
||||
\subsection{$G$ and $F$ infinite constructions}
|
||||
|
||||
\[
|
||||
G_i(Y) = \left(\sum_{a\in S_i}H_{Y(a)}\left(\lim_{(a/S_i)*}\overline{Y_a}\right), \lambda a.\lambda \eta.(a,u (\inj_2 \star))\right)
|
||||
\]
|
||||
|
||||
where $u : \left(Y(a) \oplus 1, \inj_1\right) \to (\lim_{(a/S_i)*} \overline{Y_a})$
|
||||
|
||||
so that $\varphi_{b,f} u (\star) = \eta_\El^b(f)$
|
||||
|
||||
\[
|
||||
F_i(X,\Cstr)(a) = X(p)^{-1}\left(\Cstr_a\left(\Hom_{\BB_{a-1}}(G_{a-1}\Gamma_a,X)\right)\right)
|
||||
\]
|
||||
\[
|
||||
F_i(X,\Cstr)(f : a \to b)(X(p)(x); x \in \Cstr_a(\eta)) = \eta_\El^b(f)
|
||||
\]
|
||||
|
||||
\todo{Show that those are the same functors as those defined recursively. Prove the adjunction/reflection infinitely ?}
|
||||
% \section{Misc}
|
||||
% \subsection{Infinite construction of $\BB_i$}
|
||||
% \[
|
||||
% \BB_i := \left(X : \TSet, \Cstr : (a : S_{i-1}) \to \Hom_{\BB_{a-1}}(G_{a-1}\Gamma_a,R_{a-1}^i(\this)) \to X(\UU)\right)
|
||||
% \]
|
||||
% A morphism from $(X,\Cstr)$ to $(X', \Cstr')$ is a morphism from $X$ to $X'$ in $\TSet$ (i.e. a natural transformation $X \implies X'$) which makes the following diagram commute, for all $a$ in $S_{i-1}$.
|
||||
%
|
||||
% \begin{center}
|
||||
% % YADE DIAGRAM BiMorphismDiagram.json
|
||||
% GENERATED LATEX
|
||||
\input{graphs/BiMorphismDiagram.tex}
|
||||
% END OF GENERATED LATEX
|
||||
% % GENERATED LATEX
|
||||
% \input{graphs/BiMorphismDiagram.tex}
|
||||
% % END OF GENERATED LATEX
|
||||
% \end{center}
|
||||
%
|
||||
% Identities and compositions are that of the base category $\TSet$, and categorical equalities are trivially derived from the diagram above.
|
||||
%
|
||||
% The diagram expresses as
|
||||
% \[
|
||||
% \forall \gamma \in \Hom_{G_{a-1}\Gamma_a,X}, \quad \Cstr'_a(f \circ \gamma) = f_\UU(\Cstr_a \gamma)
|
||||
% \]
|
||||
%
|
||||
% \todo{Define properly the use of \this}
|
||||
%
|
||||
% \subsection{$G$ and $F$ infinite constructions}
|
||||
%
|
||||
% \[
|
||||
% G_i(Y) = \left(\sum_{a\in S_i}H_{Y(a)}\left(\lim_{(a/S_i)*}\overline{Y_a}\right), \lambda a.\lambda \eta.(a,u (\inj_2 \star))\right)
|
||||
% \]
|
||||
%
|
||||
% where $u : \left(Y(a) \oplus 1, \inj_1\right) \to (\lim_{(a/S_i)*} \overline{Y_a})$
|
||||
%
|
||||
% so that $\varphi_{b,f} u (\star) = \eta_\El^b(f)$
|
||||
%
|
||||
% \[
|
||||
% F_i(X,\Cstr)(a) = X(p)^{-1}\left(\Cstr_a\left(\Hom_{\BB_{a-1}}(G_{a-1}\Gamma_a,X)\right)\right)
|
||||
% \]
|
||||
% \[
|
||||
% F_i(X,\Cstr)(f : a \to b)(X(p)(x); x \in \Cstr_a(\eta)) = \eta_\El^b(f)
|
||||
% \]
|
||||
%
|
||||
% \todo{Show that those are the same functors as those defined recursively. Prove the adjunction/reflection infinitely ?}
|
||||
|
||||
\end{document}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
{"graph":{"latexPreamble":"\\newcommand\\ensuremath[1]{#1}\n\\newcommand\\BB{{\\ensuremath{\\mathcal{B}}}}\n\\newcommand\\TT{{\\ensuremath{\\mathcal{T}}}}\n\\newcommand\\UU{{\\ensuremath{\\mathcal{U}}}}\n\\newcommand\\CC{{\\ensuremath{\\mathcal{C}}}}\n\\newcommand\\El{{\\ensuremath{\\operatorname{\\mathcal{E}l}}}}\n\\newcommand\\ii{{\\ensuremath{\\mathbf{i}}}}\n\\newcommand\\Cstr{{\\ensuremath{\\operatorname{\\mathcal{C}str}}}}\n\\newcommand\\Set{{\\ensuremath{\\operatorname{\\mathcal{S}et}}}}\n\\newcommand\\Hom{{\\ensuremath{\\operatorname{\\mathcal{H}om}}}}\n\\newcommand\\this{{\\ensuremath{\\operatorname{\\texttt{this}}}}}\n\\newcommand\\Hbar{{\\ensuremath{\\overline{H}}}}\n\\newcommand\\dash{{\\;\\textrm{---}\\;}}\n\n\\newcommand\\inj{\\operatorname{inj}}\n\\newcommand\\id{\\operatorname{id}}","tabs":[{"active":true,"edges":[{"from":0,"id":4,"label":{"kind":"normal","label":"R_0^i\\inj_1^i","style":{"alignment":"left","bend":0,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":1},{"from":1,"id":5,"label":{"kind":"normal","label":"R_0^i\\{g,h\\}","style":{"alignment":"left","bend":0,"color":"black","dashed":true,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":2},{"from":0,"id":6,"label":{"kind":"normal","label":"R_0^ig","style":{"alignment":"right","bend":0.20000000000000004,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":2},{"from":3,"id":7,"label":{"kind":"normal","label":"g","style":{"alignment":"left","bend":-0.1,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":2},{"from":3,"id":8,"label":{"kind":"normal","label":"\\inj_2^i","style":{"alignment":"right","bend":0,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":1}],"nodes":[{"id":0,"label":{"isMath":true,"label":"R_0^iX","pos":[100,94],"zindex":0}},{"id":1,"label":{"isMath":true,"label":"R_0^i(X \\tl^i Y)","pos":[300,94],"zindex":0}},{"id":2,"label":{"isMath":true,"label":"R_0^iZ","pos":[300,176],"zindex":0}},{"id":3,"label":{"isMath":true,"label":"Y","pos":[500,94],"zindex":0}}],"sizeGrid":200,"title":"1"}]},"version":12}
|
||||
{"graph":{"latexPreamble":"\\newcommand\\ensuremath[1]{#1}\n\\newcommand\\BB{{\\ensuremath{\\mathcal{B}}}}\n\\newcommand\\TT{{\\ensuremath{\\mathcal{T}}}}\n\\newcommand\\UU{{\\ensuremath{\\mathcal{U}}}}\n\\newcommand\\CC{{\\ensuremath{\\mathcal{C}}}}\n\\newcommand\\El{{\\ensuremath{\\operatorname{\\mathcal{E}l}}}}\n\\newcommand\\ii{{\\ensuremath{\\mathbf{i}}}}\n\\newcommand\\Cstr{{\\ensuremath{\\operatorname{\\mathcal{C}str}}}}\n\\newcommand\\Set{{\\ensuremath{\\operatorname{\\mathcal{S}et}}}}\n\\newcommand\\Hom{{\\ensuremath{\\operatorname{\\mathcal{H}om}}}}\n\\newcommand\\this{{\\ensuremath{\\operatorname{\\texttt{this}}}}}\n\\newcommand\\Hbar{{\\ensuremath{\\overline{H}}}}\n\\newcommand\\dash{{\\;\\textrm{---}\\;}}\n\n\\newcommand\\inj{\\operatorname{inj}}\n\\newcommand\\id{\\operatorname{id}}","tabs":[{"active":true,"edges":[{"from":0,"id":7,"label":{"kind":"normal","label":"R_0^i\\inj_1^i","style":{"alignment":"left","bend":0,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":1},{"from":1,"id":8,"label":{"kind":"normal","label":"R_0^i\\{g,h\\}","style":{"alignment":"left","bend":0,"color":"black","dashed":true,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":2},{"from":0,"id":9,"label":{"kind":"normal","label":"R_0^ig","style":{"alignment":"right","bend":0.10000000000000003,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":2},{"from":3,"id":10,"label":{"kind":"normal","label":"g","style":{"alignment":"left","bend":-0.1,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":2},{"from":3,"id":11,"label":{"kind":"normal","label":"\\inj_2^i","style":{"alignment":"right","bend":0,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":1},{"from":4,"id":12,"label":{"kind":"normal","label":"\\inj_1^i","style":{"alignment":"left","bend":0,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":5},{"from":5,"id":13,"label":{"kind":"normal","label":"\\{g,h\\}","style":{"alignment":"left","bend":0,"color":"black","dashed":true,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":6},{"from":4,"id":14,"label":{"kind":"normal","label":"g","style":{"alignment":"right","bend":0.10000000000000003,"color":"black","dashed":false,"head":"default","kind":"normal","position":0.5,"tail":"none"},"zindex":0},"to":6}],"nodes":[{"id":0,"label":{"isMath":true,"label":"R_0^iX","pos":[370,84],"zindex":0}},{"id":1,"label":{"isMath":true,"label":"R_0^i(X \\tl^i Y)","pos":[551,84],"zindex":0}},{"id":2,"label":{"isMath":true,"label":"R_0^iZ","pos":[551,167],"zindex":0}},{"id":3,"label":{"isMath":true,"label":"Y","pos":[727,84],"zindex":0}},{"id":4,"label":{"isMath":true,"label":"X","pos":[100,84],"zindex":0}},{"id":5,"label":{"isMath":true,"label":"X \\tl^i Y","pos":[249,84],"zindex":0}},{"id":6,"label":{"isMath":true,"label":"Z","pos":[249,167],"zindex":0}}],"sizeGrid":200,"title":"1"}]},"version":12}
|
||||
@ -191,4 +191,6 @@
|
||||
\fancyfoot[R]{\textbf{\thepage / \pageref{LastReportPage}}}
|
||||
\pagestyle{fancy}
|
||||
|
||||
\usepackage{titling}
|
||||
|
||||
\addbibresource{Bilibibio.bib}
|
||||
Loading…
x
Reference in New Issue
Block a user