This is an implementation of internal categories in Lean using the math-lib libraries.
These instructions were adapted from this document
First, install Lean. Open a terminal.
-
Go the the directory where you would like this package to live.
-
Run
git clone https://github.com/goodlyrottenapple/lean-internal-cats.git. -
This creates a directory named
lean-internal-cats. Enter it withcd lean-internal-cats. -
Type
leanpkg configureto getleanpkgready for use in this project. -
Type
update-mathlibto get mathlib ready for use in this project. -
Type
leanpkg buildto compile everything, this should only take a few seconds. -
launch VScode, either through your application menu or by typing
code -
On the main screen, or in the File menu, click "Open folder" (just "Open" on a Mac), and choose the folder
lean-internal-cats(not one of its subfolders). -
Using the file explorer on the left-hand side, explore everthing you want in
lean-internal-cats/src