[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109324":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},109324,"Stacks","AxiomMath\u002FStacks","AxiomMath","A Lean formalization of the Stacks Project","https:\u002F\u002Fstacks.axiommath.ai",null,"Lean",150,31,3,14,0,1,9,43,6,55.32,"Apache License 2.0",false,"main",true,[],"2026-11-18 16:35:04","2026-11-23 16:18:18","[![](logo.svg)](https:\u002F\u002Faxiommath.ai\u002F)\n\n# The Stacks Project in Lean\n\n* [Website](https:\u002F\u002Fstacks.axiommath.ai\u002F)\n\nA Lean 4 (v4.34.0-rc2) formalization of [the Stacks Project](https:\u002F\u002Fstacks.math.columbia.edu\u002F), the open-source reference work on algebraic geometry, built on [Mathlib](https:\u002F\u002Fgithub.com\u002Fleanprover-community\u002Fmathlib4). We have formalized every tag of the Stacks Project with formalizable content, and declarations are also tagged with the items of Grothendieck's *Éléments de géométrie algébrique* (EGA) and *Séminaire de géométrie algébrique* (SGA) that they prove (see §[EGA and SGA references](#ega-and-sga-references)). Examples, exercises and remarks that are not yet formalized are left as tasks for contributors (see §[Contributing](#contributing)). Lean's kernel checks every proof. There is no `sorry` and no `native_decide`.\n\n## Structure\n\n`import Stacks` brings in both tiers. Every proof in either tier is kernel-checked; the tiers differ in who has reviewed the code.\n\n* [StacksCore](StacksCore\u002F): human-reviewed formalizations, checked against the Stacks Project and brought to Mathlib standards of naming, generality and style.\n* [StacksFrontier](StacksFrontier\u002F): formalizations written by AI agents. This is where coverage grows fastest, and where review is most needed before code moves into StacksCore.\n\n## Finding a tag\n\nA declaration that formalizes all or part of a Stacks tag carries the attribute `@[stacks TAG]`, for example `@[stacks 00DS]`; a tag that Mathlib already covers is registered on the Mathlib declaration with `add_to_stacks TAG`. A tag can be carried by several declarations, and a comment in the attribute records which part of the tag a declaration covers when it covers only part. After `import Stacks`, the command `#stacks_tags` lists every tagged declaration with its tag, and `#stacks_tags!` also prints each statement. The [website](https:\u002F\u002Fstacks.axiommath.ai\u002F) links each tag to its Lean code, its dependencies and the Stacks Project's own statement.\n\n## EGA and SGA references\n\nDeclarations are also tagged with the numbered items of Grothendieck's *Éléments de géométrie algébrique* (EGA) and *Séminaire de géométrie algébrique* (SGA) that they prove, with `@[ega \"IV 7.8.3\"]` or `@[sga \"4 IV 4.9.4\"]`, or with `add_to_ega` \u002F `add_to_sga` for a Mathlib declaration. A declaration carries a reference exactly when it proves one of the following, and the attribute's comment says which:\n\n* the whole item: no comment;\n* a more general statement than the item: `\"more general\"`;\n* some of the item's clauses: the clauses, for example `\"(ii)\"`;\n* a special case of the item: the restriction, for example `\"affine case\"`.\n\nA declaration that is only related to an item, without proving any of these, is not tagged with it. Numbers follow the original installments: Publ. Math. IHÉS for EGA, and the standard Springer Lecture Notes editions for SGA.\n\n## Axioms\n\nProofs use only the standard axioms `propext`, `Classical.choice` and `Quot.sound`. After `import Stacks`, `#print axioms` on any declaration lists exactly what it rests on.\n\n## Building\n\n```\nlake exe cache get\nlake build\n```\n\n`lake exe cache get` downloads Mathlib's compiled files. The library itself has about 63,000 modules, so a full build takes a long time and a lot of memory; a cache service for the compiled Stacks modules is planned, so that `lake build` will not have to compile them locally.\n\n## Contributing\n\nContributions are welcome: formalizing the remaining examples, exercises and remarks, reviewing StacksFrontier code and moving it into StacksCore, formalizing directly for StacksCore, or improving existing proofs.\n\nNew formalizations and reviews are claimed before they start, so that efforts do not collide:\n\n1. Find a task on the [task board](https:\u002F\u002Fstacks.axiommath.ai\u002Fcontributing) and check the [open claims](https:\u002F\u002Fgithub.com\u002FAxiomMath\u002FStacks\u002Fissues?q=is%3Aissue+label%3Aclaim).\n2. Open a [claim](https:\u002F\u002Fgithub.com\u002FAxiomMath\u002FStacks\u002Fissues\u002Fnew?template=claim.yml) with a blueprint: the exact statement, the Lean statement you intend to prove, the declarations in this library or in Mathlib that you will use or extend, and a proof outline. The task board pre-fills it for you.\n3. A maintainer reviews the blueprint. When it is approved, the issue is labelled `blueprint-approved` and assigned to you; that is your claim.\n4. Formalize it and open a pull request that closes the issue. The maintainers review every pull request, to either tier.\n\nImprovements to existing proofs and small fixes (typos, broken proofs, documentation) need no claim; open a pull request directly. [CONTRIBUTING.md](CONTRIBUTING.md) has the conventions.\n\n## License\n\n[Apache 2.0](LICENSE). The Stacks Project itself is licensed under the GNU Free Documentation License.\n","这是一个使用Lean 4对代数几何权威开源文献《Stacks Project》进行形式化验证的数学项目。它完整形式化了所有可形式化的Stacks标签（tag），并为每个声明标注对应的EGA和SGA条目；采用双层结构：StacksCore含人工审核的高质量形式化内容，StacksFrontier由AI生成、待审核的前沿覆盖；所有证明均经Lean内核严格验证，无未完成证明（sorry）或非确定性决策。适用于数学研究者、形式化验证从业者及代数几何学习者开展可信赖的定理复用、交叉引用与自动化推理。",2,"2026-11-24 04:36:31","CREATED_QUERY"]