Skip to content

Commit

Permalink
feat: fix web blueprint (#27)
Browse files Browse the repository at this point in the history
* feat: fix web blueprint

* feat: link Lean declarations in blueprint

* chore: remove pdf
  • Loading branch information
Vtec234 authored Nov 14, 2024
1 parent 8d6ab9b commit 69744a3
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 68 deletions.
12 changes: 5 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
.lake/*
.cache/*
## Blueprint
/blueprint/print/print.log
/blueprint/web/
/blueprint/src/print.pdf
/blueprint/src/web.paux
/blueprint/src/web.pdf
/blueprint/src/web.bbl
/blueprint/print/
blueprint/web/
blueprint/print/
blueprint/src/print.pdf
blueprint/lean_decls
## Docs
docs/_includes/sorries.md
## TeX
*.paux
*.aux
*.lof
*.log
Expand Down
Empty file removed blueprint/lean_decls
Empty file.
Binary file removed blueprint/print/print.pdf
Binary file not shown.
21 changes: 21 additions & 0 deletions blueprint/src/chapter/all.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
% This file collects all the blueprint chapters.
% It is not supposed to be built standalone:
% see web.tex and print.tex instead.

\title{Groupoid Model of HoTT in Lean 4}
\author{Authors}

\begin{document}
\maketitle

\section{Natural Models}
\input{chapter/natural_model}
\section{The Groupoid Model}
\input{chapter/groupoid_model}
\section{Polynomial Endofunctors}
\input{chapter/polynomial}

\bibliography{refs.bib}{}
\bibliographystyle{alpha}

\end{document}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ \subsection{Classifying display maps}
\medskip

\begin{defn}[Pointed]
\lean{CategoryTheory.PCat} \leanok
We will take the category of pointed small categories $\ptcat$
to have objects as pairs $(\catC \in \cat, c \in \catC)$
and morphisms as pairs
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
\medskip

\begin{defn}[Polynomial endofunctor]
\label{polynomial_endofunctor}
\label{polynomial_endofunctor} \lean{UvPoly} \leanok
Let $\catC$ be a locally Cartesian closed category
(in our case, presheaves on the category of contexts).
This means for each morphism $t : B \to A$ we have an adjoint triple
Expand Down Expand Up @@ -39,7 +39,7 @@
\medskip

\begin{prop}[Characterising property of Polynomial Endofunctors]
\label{polynomial_endofunctor_property}
\label{polynomial_endofunctor_property} \lean{UvPoly.equiv} \leanok
The data of a map into the polynomial applied to an object in $\catC$
% https://q.uiver.app/#q=WzAsMixbMCwwLCJcXEdhIl0sWzEsMCwiXFxQb2x5e3R9IFkiXSxbMCwxXV0=
\[\begin{tikzcd}
Expand Down Expand Up @@ -780,4 +780,3 @@
Then we simply unfold the computation for each of $\Poly{\kappa}$
and $\Star{\rho}$.
\end{proof}

22 changes: 1 addition & 21 deletions blueprint/src/print.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,4 @@
\input{macros/common}
\input{macros/print}

\title{A Groupoidal Natural Model of HoTT in Lean 4}
\author{Sina Hazratpour, Joseph Hua}

\begin{document}
\maketitle

\section{Natural Models}
\input{natural_model}

\section{The Groupoid Model}
\input{groupoid_model}

\section{Polynomial Endofunctors}
\input{polynomial}


\bibliography{refs.bib}{}
\bibliographystyle{alpha}


\end{document}
\input{chapter/all}
28 changes: 0 additions & 28 deletions blueprint/src/web.bbl

This file was deleted.

11 changes: 2 additions & 9 deletions blueprint/src/web.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

\usepackage{amssymb, amsthm, amsmath}
\usepackage{hyperref}
\usepackage[showmore, dep_graph]{blueprint}

\usepackage[showmore, dep_graph,thms=defn+prop+lemma+cor]{blueprint}

\input{macros/common}
\input{macros/web}
Expand All @@ -18,10 +17,4 @@
\github{https://github.com/sinhp/groupoid_model_in_lean4}
\dochome{https://sinhp.github.io/groupoid_model_in_lean4/docs}

\title{Groupoid Model of HoTT in Lean 4}
\author{Authors}

\begin{document}
\maketitle
% \input{content}
\end{document}
\input{chapter/all}
16 changes: 16 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
bashInteractive
typst
texlive.combined.scheme-full
python3
graphviz
];
};
});
}

0 comments on commit 69744a3

Please sign in to comment.