[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"s1SEKwNS8t":3},"\u003Cp align=\"center\">\u003Cimg src=\"logo.png\" alt=\"Tengoku\" width=\"200\">\u003C/p>\n\u003Ch1 align=\"center\">Tengoku (天国)\u003C/h1>\n\u003Cp align=\"center\">\u003Cem>An AI-first formal mathematics library for Lean 4 agentic theorem provers.\u003C/em>\u003C/p>\n\u003Cp align=\"center\">\n\u003Ca href=\"lean-toolchain\">\u003Cimg src=\"https://img.shields.io/badge/dynamic/regex?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcompetemath%2Ftengoku%2Fmain%2Flean-toolchain&search=v%5B0-9.%5D%2B%28-rc%5B0-9%5D%2B%29%3F&label=Lean%204&color=blue\" alt=\"Lean 4 toolchain\">\u003C/a>\n\u003Ca href=\"https://competemath.com/tengoku\">\u003Cimg src=\"https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcompetemath.com%2Fapi%2Ftengoku%2Fstats&query=%24.trusted&label=trusted%20theorems&color=2e7d32\" alt=\"Trusted theorems\">\u003C/a>\n\u003C/p>\n\n## About\nFormal mathematics is mathematics that a computer can check, step by step. It is scattered across hundreds of separate\nprojects, written for different versions of the language, Lean 4. Tengoku brings them together in one verified library\non one version, so that agentic theorem provers can use all of it at once. A theorem in Tengoku is declared trusted (or Leak-trusted) \nif it compiles from scratch in the self-contained Tengoku tree, on one of the pinned Lean toolchains listed in the badges \nabove, with no sorry, only the standard 3 axioms, and passing checks intended to catch contradictory assumptions.\n\nOne of the things we would like to see is that Tengoku significantly improves the proving capacity of an [ATP](https://en.wikipedia.org/wiki/Automated_theorem_proving), compared\nto when it uses Mathlib. We also hope that the unification of many disparate libraries makes it easier for ATPs to bridge\nseemingly unrelated mathematics, and the discovery of new mathematics. Finally, we hope Tengoku acts as a continuously improving, \nreliable context for automated theorem provers. By reliable, we mean a system designed to be exceptionally cynical of all dependencies, even the Lean 4 kernel and elaboration ecosystem - [why](docs/why-cynical.md) and [how](docs/reliability.md) we do that.\n\n(Tengoku can be interpreted to mean sky kingdom, or heavenly abode. This represents our ambition for the useful knowledge in this repository to reach the skies.)\n\n## Try it\n[Leak](https://competemath.com/about/leak) is the intended interface to Tengoku.\n\n- **Add the MCP tools to your agent** (free, no sign-up): [Leak I](https://github.com/mikael-bashir/leak-i) searches\n  (Loogle + Moogle + ChromaDB), [Leak II](https://github.com/mikael-bashir/leak-ii) steps through proofs (Pantograph service with efficient proof state switching),\n  [Leak IV](https://github.com/mikael-bashir/leak-iv) verifies a script (Lean kernel daemon). All of these services use the Tengoku\n  environment, and are provided like this to make it easy for the community to experiment - no SLA or uptime guarantee is provided.\n  \u003Cdetails>\u003Csummary>Connection URLs\u003C/summary>\n\n  ```\n  claude mcp add --transport sse tengoku-search https://barkingtree-leak-i.hf.space/sse\n  claude mcp add --transport sse tengoku-proof  https://barkingtree-leak-ii.hf.space/sse\n  claude mcp add --transport sse tengoku-verify https://barkingtree-leak-iv.hf.space/sse\n  ```\n\n  \u003C/details>\n- **Search it on the web:** [competemath.com/tengoku](https://competemath.com/tengoku), in plain English or by name.\n- **Run your own:** the [service code](https://github.com/mikael-bashir/leak-services).\n- **HTTP API:** [docs/api.md](docs/api.md).\n- **Download it:** clone this repository and run `scripts/cache.sh get` to download the compiled library.\n\n## Contributors\nAnyone can contribute, by hand or with AI. Because of the nature of this project, there are many indirect ways \nto contribute and support. Interacting with and providing feedback for the main [site](https://competemath.com), as\nwell as using and improving the [Leak](https://github.com/mikael-bashir/leak-services) services, all support Tengoku indirectly. \n\nWe expect that realistic contributions directly to the project via pull requests will require AI assistance. This is because \nparts of the repository change before a human can fully understand it. We understand that this creates a barrier to entry for \ncontributors due to factors beyond their control. We are not really in a position to solve this issue; if you\nwant to contribute directly, or want to learn about something that interests you, but can't because you don't \nhave access to AI tools, get in [touch](mailto:bashir.mikael@outlook.com?subject=Tengoku) - we will try to help if we have the availability. \n\nFor every other prospective contributor, you may work on whatever you wish, even if it initially doesn't\nseem like it is related to Tengoku (if you have an odd idea or need particular permissions, get in touch with the link above).\nHowever you contribute, it would be useful to make mention of what you are working on, or would like work to be directed \nat, in the [goals](GOALS.md) file.\n\n[How credit works](docs/credit.md) · [Contributing](CONTRIBUTING.md) · [How a theorem gets in](docs/how-a-pr-flows.md) · [Code of Conduct](https://github.com/competemath/.github/blob/main/CODE_OF_CONDUCT.md) · [Posting guidelines](https://github.com/competemath/.github/blob/main/POSTING.md) · [Found an issue, or have an idea?](https://github.com/competemath/tengoku/issues/new) · [Found a security problem?](SECURITY.md). \n\nIf you are unsure if an issue is a security problem, assume it is.\n\n## Learn more\n- [Why Tengoku does not trust the toolchain](docs/why-cynical.md): case studies of Lean 4 failures\n- [How Tengoku stays reliable](docs/reliability.md)\n- [Training on Tengoku](docs/for-labs.md): what labs must do, and what we ask\n- [What Tengoku guarantees](docs/why-tengoku.md)\n- [The full manual](https://competemath.com/about/tengoku)\n- [Security and licence compliance](docs/openchain/README.md) (OpenChain ISO/IEC 18974 and 5230)\n- [Acknowledgements](docs/acknowledgements.md): the projects and people Tengoku stands on\n- Cite it: [10.5281/zenodo.23050400](https://doi.org/10.5281/zenodo.23050400), or the *Cite this repository* button\n\n## Thanks\nTengoku makes extensive use of the Lean and Mathlib ecosystem - to the authors who make Tengoku possible, thank you.\n\n\u003Ca href=\"https://snyk.io\">\u003Cimg src=\"https://cdn.simpleicons.org/snyk\" height=\"18\" alt=\"Snyk\">\u003C/a>&nbsp;**Security, with [Snyk](https://snyk.io).** Tengoku is proud to be a member of Snyk's [Secure Developer Program](https://snyk.io/open-source/), which arms open-source maintainers with its advanced developer-security platform.\n\n\u003Ca href=\"https://gitar.ai\">\u003Cimg src=\"docs/img/gitar.svg\" height=\"18\" alt=\"Gitar\">\u003C/a>&nbsp;**Code review and CI repair, with [Gitar](https://gitar.ai).** Tengoku is proud to have been admitted to Gitar's open-source program, which gives open-source maintainers its AI code-review and CI-fixing agent.\n\n## Funding and affiliation\n\nTengoku is one of the services of [CompeteMath](https://competemath.com/about). CompeteMath has no intention of generating income with any of its projects. CompeteMath is not affiliated with, nor does it support, any particular organization, corporate entity, or political group. Anyone considering donating or partnering with us should know that Tengoku will not allow any influence over the governance of this repository, nor its accessibility, the integrity of its contents, or [Tengoku's goals](GOALS.md).\n\n## Badges\n\n\u003Cp align=\"center\">\n\u003Ca href=\"https://doi.org/10.5281/zenodo.23050400\">\u003Cimg src=\"https://zenodo.org/badge/DOI/10.5281/zenodo.23050400.svg\" alt=\"DOI\">\u003C/a>\n\u003Ca href=\"https://scorecard.dev/viewer/?uri=github.com/competemath/tengoku\">\u003Cimg src=\"https://api.scorecard.dev/projects/github.com/competemath/tengoku/badge\" alt=\"OpenSSF Scorecard\">\u003C/a>\n\u003Ca href=\"https://www.bestpractices.dev/projects/15102\">\u003Cimg src=\"https://www.bestpractices.dev/projects/15102/badge\" alt=\"OpenSSF Best Practices\">\u003C/a>\n\u003Ca href=\"LICENSE\">\u003Cimg src=\"https://img.shields.io/badge/licence-Apache--2.0-blue\" alt=\"Licence: Apache-2.0\">\u003C/a>\n\u003Ca href=\"https://app.fossa.com/projects/git%2Bgithub.com%2Fcompetemath%2Ftengoku?ref=badge_small\">\u003Cimg src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcompetemath%2Ftengoku.svg?type=small\" alt=\"FOSSA Status\">\u003C/a>\n\u003Ca href=\"https://sonarcloud.io/summary/new_code?id=competemath_tengoku\">\u003Cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=competemath_tengoku&amp;metric=alert_status\" alt=\"SonarQube Cloud quality gate\">\u003C/a>\n\u003Ca href=\"https://codecov.io/gh/competemath/tengoku\">\u003Cimg src=\"https://codecov.io/gh/competemath/tengoku/graph/badge.svg\" alt=\"Codecov\">\u003C/a>\n\u003C/p>\n",1792957697997]