-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
313 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
\title{Tarski Universe} | ||
\taxon{Definition} | ||
\import{macros} | ||
\p{ | ||
A \strong{universe} consists of a type #{\U} of which the elements are representations of types. | ||
It is equipped with a type family #{\T} indexed by #{\U} called \strong{universal type family}. | ||
The universe is closed under all the type constructors in the sense that it comes equipped with the following structure: | ||
\ul{ | ||
\li{ | ||
#{\U} is closed under #{\Pi}, equipped with a function | ||
##{ | ||
\check{\Pi}:\Pi_{(X:\U)}(\T(X)\to\U)\to\U | ||
} | ||
for which the judgemental equality | ||
##{ | ||
\T(\check{\Pi}(X,P))\equiv\Pi_{(x:\T(X))}\T(P(x)) | ||
} | ||
holds forall #{X:\U} and #{P:\T(X)\to\U}. | ||
} | ||
\li{ | ||
#{\U} is closed under #{\Sigma}, equipped with a function | ||
##{ | ||
\check{\Sigma}:\Pi_{(X:\U)}(\T(X)\to\U)\to\U | ||
} | ||
for which the judgemental equality | ||
##{ | ||
\T(\check{\Sigma}(X,P))\equiv\Sigma_{(x:\T(X))}\T(P(x)) | ||
} | ||
holds forall #{X:\U} and #{P:\T(X)\to\U}. | ||
} | ||
\li{ | ||
#{\U} is closed under identity types, equipped with a function | ||
##{ | ||
\check{I}:\Pi_{(X:\U)}\T(X)\to\T(X)\to\U | ||
} | ||
for which the judgemental equality | ||
##{ | ||
\T(\check{I}(X,x,y))\equiv (x=y) | ||
} | ||
holds forall #{X:\U} and #{x,y:\T(X)}. | ||
} | ||
\li{ | ||
#{\U} is closed under coproducts, equipped with a function | ||
##{ | ||
\check{+}:\Pi_{(X:\U)}(\T(X)\to\U)\to\U | ||
} | ||
that satisfies the judgemental equality #{\T(X\check{+}P)\equiv\T(X)+\T(P)} | ||
} | ||
\li{ | ||
#{\U} contains elements #{\check{\unit}, \check{\void}, \check{\N} : \U} that satisfies the judgemental equality | ||
##{ | ||
\T(\check{\void})\equiv \void, | ||
\\ \T(\check{\unit})\equiv \unit, | ||
\\ \T(\check{\N})\equiv\N | ||
} | ||
} | ||
} | ||
Consider a universe #{\U} and a type #{A} in context #{\Gamma}. | ||
We say that #{A} is a type in #{\U} or that #{\U} contains #{A}, | ||
if there is an element #{\check{A}:\U} such that #{\Gamma\vdash\T(\check{A})\equiv A\space\type} holds. | ||
} | ||
\subtree{ | ||
\title{Enough Universe} | ||
\p{ | ||
Sometimes we may consider the universe #{\U} itself to be a type in some universes. | ||
If we have only one #{\U}, the \strong{Russell Paradox} may arise. | ||
Therefore we assume that there are \strong{enough universes} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
\title{Base Universe} | ||
\taxon{Definition} | ||
\import{macros} | ||
\p{ | ||
The \strong{base universee} #{\U_0} is defined using [universe postulate](thm-0013) | ||
with empty context. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
\title{Successor Universe} | ||
\taxon{Definition} | ||
\import{macros} | ||
\p{ | ||
The \strong{successor universee} #{\U^+} of a universe #{\U} is defined using [universe postulate](thm-0013) | ||
with the following contexts: | ||
##{ | ||
\vdash\U\space\type\quad X:\U\vdash\T(X)\space\type | ||
} | ||
It therefore contains the type #{\U} as well as type in #{\U}, in the following sense | ||
##{ | ||
\begin{align*} | ||
&\vdash\check{\U}:\U^+\\ | ||
&\vdash\T^+(\check{\U})\equiv\U\type\\ | ||
&X:\U\vdash\check{\T}(X):\U^+\\ | ||
&X:\U\vdash\T^+(\check{\T}(X))\equiv\T(X)\type | ||
\end{align*} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
\import{macros} | ||
\title{Observational Equality of #{\N}} | ||
\taxon{Definition} | ||
\def\eqn{\text{Eq}} | ||
\p{ | ||
The observational equality of #{\N} is a binary relation #{\eqn_\N:\N\to(\N\to\U_0)} satisfies | ||
##{ | ||
\begin{align*} | ||
\eqn_\N(0)(0) &\equiv \unit \\ | ||
\eqn_\N(0)(\succ(n)) &\equiv \void \\ | ||
\eqn_\N(\succ(m))(0) &\equiv \void \\ | ||
\eqn_\N(\succ(m))(\succ(n)) &\equiv \eqn_\N(m)(n) | ||
\end{align*} | ||
} | ||
\proof{ | ||
We define #{\eqn} by double induction on #{\N}. By the first application of induction | ||
it suffices to provide | ||
##{ | ||
\begin{align*} | ||
&E_0:\N\to\U_0 \\ | ||
&E_S:\N\to((\N\to\U_0)\to(\N\to\U_0)) | ||
\end{align*} | ||
} | ||
we define #{E_0} by induction: | ||
##{ | ||
\begin{align*} | ||
&E_0(0) \equiv\unit\\ | ||
&E_0(\succ(n)) \equiv\void | ||
\end{align*} | ||
} | ||
and also define #{E_S} by induction: | ||
##{ | ||
\begin{align*} | ||
&E_S(n,X,0)\equiv\void\\ | ||
&E_S(n,X,\succ(m))\equiv X(m) | ||
\end{align*} | ||
} | ||
Therefore we have by the computation rule for the first induction that | ||
the following judgemental equality holds. | ||
##{ | ||
\begin{align*} | ||
\eqn(0,m) &\equiv E_0(m) \\ | ||
\eqn(\succ(n),m) &\equiv E_S(n,\eqn(n),m) | ||
\end{align*} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
\title{Enough Universe} | ||
\taxon{Postulate} | ||
\import{macros} | ||
\p{ | ||
We assume that there're \strong{enough universe}, i.e., | ||
for every finite list of types in context | ||
##{ | ||
\Gamma_1\vdash A_1\space\type,\cdots,\Gamma_n\vdash A_n\space\type | ||
} | ||
there is a universe #{\U} that contains each #{A_i} in the sense that #{\U} comes equipped with | ||
##{ | ||
\Gamma_i\vdash\check{A_i}:\U | ||
} | ||
for which the following judgement holds: | ||
##{ | ||
\Gamma_i \vdash\T(\check{A_i})\equiv A_i\space\type | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.