# What upstream says This project starts from the `lean/` folder of [openai/math](https://github.com/openai/math) at `3344da59991ed94f9ba711217b29c1d760badfa6` (2026-11-24), and of it only the import closure of the CM Hodge Comparator challenge and its solution. Three of upstream's texts about it follow, unchanged: `lean/README.md`, `lean/docs/032.md` (family 032's Lean scope) and `lean/ComparatorChallenges/README.md`. `README.md` here is this project's. Links in them are relative to upstream's `lean/` and do not all resolve here. ## lean/README.md ### Lean formalizations This directory contains Lean formalizations of some results in this repository. They are organized in a single large library, so we recommend compiling only small portions at a time. See the [Comparator README](ComparatorChallenges/README.md) for more information about how to verify the results. #### Technical note: mmap Compiling the entire library may fail if Linux's `vm.max_map_count` is too low. One workaround is to build Lean with the CMake option `-DMMAP=OFF`; it may also be necessary to set the environment variable `GLIBC_TUNABLES` to `glibc.malloc.mmap_max=0:glibc.malloc.arena_max=1` when running Lean or Lake. ## lean/docs/032.md ### The rational Hodge conjecture for CM abelian varieties The following describes the scope of the Lean formalization related to the following accompanying paper(s): - [The rational Hodge conjecture for CM abelian varieties](../../preprints/The-rational-Hodge-conjecture-for-CM-abelian-varieties-October-6-2026/paper.pdf) #### Scope The formalization proves that every rational Hodge class on a complex CM abelian variety is algebraic. For a smooth integral projective group scheme $X$ over $\mathbb C$ with the stated complex-multiplication data and every $p\ge0$, each rational Hodge class of degree $2p$ is a rational linear combination of cycle classes of codimension-$p$ algebraic subvarieties. The result applies in every dimension and codimension. The complex-multiplication hypothesis is expressed on geometric rational $H^1$: it is a finite direct sum of rank-one vector spaces over CM number fields, and their diagonal action preserves the holomorphic Hodge filtration under the rational-to-de Rham comparison. The fields may differ among the summands. The paper's consequences for the Tate conjecture over finite fields and the Hodge standard conjecture in arbitrary characteristic are outside this selected statement. We thank the contributors to [HodgeConjecture](https://github.com/Paul-Lez/HodgeConjecture) (which itself adapts [sphere-six-complex](https://github.com/deancureton/sphere-six-complex) and [mathlib4](https://github.com/leanprover-community/mathlib4)) for their Lean statement of the Hodge conjecture, which was used for the Comparator challenge. #### Comparator links | Result | Comparator statement | | --- | --- | | Rational Hodge classes on CM abelian varieties are algebraic | [Challenge.lean](../ComparatorChallenges/HodgeConjectureCMAbelianVarieties/Challenge.lean) | ## lean/ComparatorChallenges/README.md ### [Comparator](https://github.com/leanprover/comparator) challenges Install `comparator`, `landrun`, and `lean4export`, and make them available on `PATH`. Then, from `lean/`: ```sh lake update lake exe cache get lake env comparator ComparatorChallenges/QuasiRiemannHypothesis.json ```