# HoTT/book

A textbook on informal homotopy type theory
TeX Python Coq Mathematica Shell Makefile Other
Switch branches/tags
Nothing to show
mikeshulman Merge pull request #987 from iblech/keep-old-builds-for-a-while-longer
Keep old builds for a while longer, in an effort to fix #986
Latest commit 29279f5 Apr 19, 2018
 Failed to load latest commit information. coq_introduction Jun 4, 2016 cover/torus Jun 27, 2013 etc/ci Apr 19, 2018 other May 24, 2013 .gitattributes Apr 13, 2013 .gitignore Nov 2, 2016 .travis.yml Jul 29, 2016 CONTRIBUTING.md Jun 2, 2015 CONVENTIONS.txt Nov 2, 2016 GIT_CHEATSHEET.txt Apr 27, 2013 Makefile Mar 30, 2018 README.md Apr 2, 2018 back.tex Jun 17, 2013 basics.tex Apr 18, 2018 blurb.tex Jun 19, 2013 bmpsize-hack.tex Apr 16, 2014 build-nightlies Aug 6, 2015 categories.tex Oct 12, 2017 cleveref.sty Mar 28, 2014 cover-a4.tex Apr 16, 2014 cover-hires-back-bw.png Jun 4, 2013 cover-hires-back.png Jun 4, 2013 cover-hires-bw.png Jun 4, 2013 cover-hires-front-bw.png Jun 4, 2013 cover-hires-front.png Jun 4, 2013 cover-hires.png Jun 4, 2013 cover-letter.tex Apr 16, 2014 cover-lores-back-bw.png Jun 19, 2013 cover-lores-back.png Jun 19, 2013 cover-lores-front-bw.png Jun 19, 2013 cover-lores-front.png Jun 19, 2013 cover-lores.png Jun 19, 2013 cover-lulu-hardcover.png Jun 18, 2014 cover-lulu-hardcover.tex Jun 4, 2014 cover-lulu-paperback.png Jun 18, 2014 cover-lulu-paperback.tex Jun 4, 2014 equivalences.tex Apr 18, 2018 errata.tex Apr 19, 2018 exercise_solutions.tex Mar 14, 2018 filter-errata Aug 5, 2013 formal.tex Apr 18, 2018 front.tex Dec 31, 2014 frontpage.tex Jun 4, 2013 geometry.sty Mar 8, 2013 halpha.bst May 21, 2013 hits.tex Apr 18, 2018 hlevels.tex Apr 18, 2018 homotopy.tex Apr 18, 2018 hott-a4-exercises.tex Apr 5, 2018 hott-a4.tex Jun 20, 2013 hott-ebook.tex Dec 17, 2014 hott-letter-exercises.tex Apr 2, 2018 hott-letter.tex Jun 17, 2013 hott-online.tex Jun 17, 2013 hott-ustrade.tex Jun 17, 2013 ifxetex.sty Mar 8, 2013 induction.tex Apr 18, 2018 introduction.tex Dec 4, 2015 logic.tex Apr 18, 2018 macros.tex Mar 30, 2018 main.labelnumbers.first-edition Jul 3, 2013 main.tex Mar 30, 2018 mark-errata Nov 27, 2013 mathpartir.sty Jun 21, 2013 opt-a4.tex Nov 22, 2013 opt-bastard.tex Jun 17, 2013 opt-black-white.tex Apr 14, 2014 opt-color.tex Apr 14, 2014 opt-cover.tex Jun 4, 2013 opt-ebook.tex Nov 22, 2013 opt-exerciseperpage.tex Mar 30, 2018 opt-letter.tex Nov 22, 2013 opt-no-bastard.tex Jun 17, 2013 opt-no-cover.tex Jun 4, 2013 opt-ustrade.tex Nov 22, 2013 preface.tex Jun 10, 2013 preliminaries.tex Apr 18, 2018 reals.tex Aug 6, 2017 references.bib Oct 15, 2017 setmath.tex Apr 18, 2018 symbols.tex Jan 29, 2016 torus-hires-bw.png Jun 5, 2013 torus-lores-bw.png Jun 19, 2013

This is a textbook on informal homotopy type theory. It is part of the Univalent foundations of mathematics project that took place at the Institute for Advanced Study in 2012/13.

## Distribution

Compiled and printed versions of the book are available at the homotopy type theory website, and nightly builds are available on the github wiki.

## Prerequisites and compilation

To compile the book for yourself you need a fairly new version of LaTeX. Texlive 2012 is confirmed to work. You might need to install some packages; see main.tex for packages that are used by the book.

BasicTeX, which is a minimalistic version of MacTeX, is confirmed to work once the following packages have been installed: tlmgr, install, braket, comment, courier, enumitem, helvetic, mathpazo, nextpage, ntheorem, palatino, rsfs, stmaryrd, symbol, titlesec, wallpaper, wasy, wasysym, xstring, zapfding.

You also need the make utility. The book is a fairly complex piece of LaTeX code. Also, the file version.tex is generated on the fly, so you will need the make utility with which you can compile the main files, as follows:

• make hott-online.pdf -- the book appropriate for online reading, with colors and green links
• make hott-ebook.pdf -- the book with small margins, suitable for ebook readers
• make hott-letter.pdf hott-cover.pdf -- the book in black & white, letter paper format, for printing at home, as well as a color cover (just two pages)
• make hott-letter-exercises.pdf -- the book in black & white, letter paper format, but with exercises one-per-page
• make hott-a4.pdf hott-a4.pdf -- the book in black & white, A4 paper format, for printing at home, as well as a color cover (just two pages)
• make hott-a4-exercises.pdf -- the book in black & white, A4 paper format, but with exercises one-per-page
• make hott-ustrade.pdf cover-lulu-hardcover.pdf cover-lulu-paperback.pdf -- the book in US Trade format, without cover, used for the bound copy available at http://lulu.com/
• make exercise_solutions.pdf -- compile (some) solutions to exercises
• make errata.pdf -- Errata for the HoTT Book, first edition

If you do not have make (for example, because you are on MacOS and you did not install the XCode command-line utilities), you can still fake it as follows. Create the file version.tex and put in it (where "Joe Hacker" should be replaced with your name):

\newcommand{\OPTversion}{Joe-Hacker-version}


Then use whatever tools you normally do to compile LaTeX. The main LaTeX files are called hott-XXX.tex. But you really should have make, you know.

Once make is run so that version.tex gets generated, you need not run make again. You can just perform the usual LaTeX cycle from your favorite editor.