{"id":17273050,"url":"https://github.com/mo271/formalbook","last_synced_at":"2026-03-06T03:32:35.844Z","repository":{"id":65250250,"uuid":"537006181","full_name":"mo271/FormalBook","owner":"mo271","description":"Formalizing \"Proofs from THE BOOK\"","archived":false,"fork":false,"pushed_at":"2024-12-11T07:41:21.000Z","size":362,"stargazers_count":63,"open_issues_count":1,"forks_count":12,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-07-05T08:02:20.288Z","etag":null,"topics":["formal-proofs","lean","mathematics"],"latest_commit_sha":null,"homepage":"http://firsching.ch/FormalBook/","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mo271.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-15T12:01:05.000Z","updated_at":"2025-06-25T03:15:59.000Z","dependencies_parsed_at":"2024-10-16T23:27:48.116Z","dependency_job_id":null,"html_url":"https://github.com/mo271/FormalBook","commit_stats":null,"previous_names":["mo271/formalbook"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mo271/FormalBook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo271%2FFormalBook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo271%2FFormalBook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo271%2FFormalBook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo271%2FFormalBook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mo271","download_url":"https://codeload.github.com/mo271/FormalBook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo271%2FFormalBook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545551,"owners_count":23625476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formal-proofs","lean","mathematics"],"created_at":"2024-10-15T08:50:05.591Z","updated_at":"2026-03-06T03:32:35.811Z","avatar_url":"https://github.com/mo271.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Formal BOOK\n\n\u003e 🚀 **Pull Requests Welcome!** 🎉\n\u003e\n\u003e We warmly welcome contributions from everyone.\n\u003e No experience is necessary, and partial proofs help with LaTex are appreciated!\n\n\nA collaborative, work-in-progress attempt to formalize [Proofs from THE BOOK](https://link.springer.com/book/10.1007/978-3-662-57265-8) using [Lean4](https://leanprover.github.io/lean4/doc/whatIsLean.html).\n\n\n![Formal Proofs from THE BOOK](formal_proofs_form_the_book.svg)\n\n## Structure\n\nFor each chapter in the book (we follow the latest, sixth edition), there is a lean source file containing as many formalized definitions, lemmas, theorems and proofs as we can reasonably currently formalize using [Lean's mathlib4](https://github.com/leanprover-community/mathlib4).\n\nThe goal is to make the formalizations of the proofs as close as possible to the proofs in the book, even if a different proof for a theorem might already be present in mathlib or is more suitable for formalization.\n\nWe follow the [naming conventions](https://github.com/leanprover-community/mathlib4/wiki/Porting-wiki#naming-convention) and [code style](https://leanprover-community.github.io/contribute/style.html) of mathlib4.\n\n## Blueprint\n\nCheckout the [project's blueprint](https://firsching.ch/FormalBook)!\n\n## Installation\n\nThis project uses Lean 4. You first need to [install elan and lean](https://leanprover.github.io/lean4/doc/setup.html) and then run\n```shell\nlake exe cache get\nlake build\ncode .\n```\n\nThe last step only opens vscode in case you want to use that.\n\n## Contributing\n\nContributions are most welcome! Feel free to\n  - grab a chapter that is not yet formalized and formalize\n    - definitions, (if not yet in mathlib)\n    - statements and\n    - proofs\n  - partial proofs with new `sorry` are also great!\n  - fill in [`sorry`s](https://github.com/search?q=repo%3Amo271%2FFormalBook+sorry+path%3A*.lean\u0026type=code) in lean files\n  - fill in ['TODO's](https://github.com/search?q=repo%3Amo271%2FFormalBook+TODO+path%3A*.tex\u0026type=code) in LaTeX files in the [blueprint](https://firsching.ch/FormalBook)\n  - suggest improvements to proofs/code golf\n  - correct typos/formatting/linting\n\nSee [`CONTRIBUTING.md`](CONTRIBUTING.md) for details.\n\n## Update\n\nTo update the mathlib dependency, run the following two commands:\nDownload the latest lean-toolchain file from the Mathlib4 repository\n```bash\ncurl -L https://raw.githubusercontent.com/leanprover-community/mathlib4/master/lean-toolchain -o lean-toolchain\n```\n\nUpdate the Mathlib dependencies and ensure doc-gen is also updated\nThe `-Kenv=dev` flag ensures that the development environment is updated, including doc-gen\n```\nlake -Kenv=dev update\n```\n\n## Authors\n\nA list of contributors can be found here: [AUTHORS](AUTHORS.md)\nor look at the [github stats](https://github.com/mo271/FormalBook/graphs/contributors).\n\n\nSome contributions come the repo\n[FordUniver/thebook.lean](https://github.com/FordUniver/thebook.lean),\nwhich also has a nice [blog](https://thebook.zib.de/) on the proofs formalized there.\n\n\n## License\n\nApache 2.0; see [`LICENSE`](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmo271%2Fformalbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmo271%2Fformalbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmo271%2Fformalbook/lists"}