Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.AlgebraicTopology.LocalHomology.FlattenedSupport |
| 7 | |
| 8 | /-! # Neighborhood Pair Image -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicTopology.Support.NeighborhoodPairImage.Singular |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Transporting neighborhood-support pairs through embeddings |
| 16 | |
| 17 | An embedding identifies a neighborhood and its support complement with their |
| 18 | images. Only equality of support membership on that neighborhood is required. Open embeddings |
| 19 | therefore transport the cofinal normal neighborhoods of auxiliary algebraic opens to the original |
| 20 | ambient space. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.Topology |
| 24 | |
| 25 | variable {M N : Type} [TopologicalSpace M] [TopologicalSpace N] |
| 26 | (f : M → N) (hf : IsEmbedding f) (W B : Set M) (S : Set N) |
| 27 | (hS : ∀ w ∈ W, w ∈ B ↔ f w ∈ S) |
| 28 | |
| 29 | /-- Let `f: M → N` be an embedding of topological spaces, with subsets `W, B ⊆ M` and `S ⊆ N`. |
| 30 | Assume `w ∈ B` if and only if `f(w) ∈ S` for every `w ∈ W`. Restriction of `f` gives this |
| 31 | homeomorphism `W \ B ≃ f(W) \ S`, with both sets carrying their subspace topologies. -/ |
| 32 | def neighborhoodSupportComplementImageHomeomorph : |
| 33 | {w : W | (w : M) ∉ B} ≃ₜ {v : f '' W | (v : N) ∉ S} := |
| 34 | (hf.homeomorphImage W).subtype fun w => not_congr (hS w w.2) |
| 35 | |
| 36 | /-- Let `f: M → N` be an embedding of topological spaces, with subsets `W, B ⊆ M` and `S ⊆ N`. |
| 37 | Assume `w ∈ B` if and only if `f(w) ∈ S` for every `w ∈ W`. This is the isomorphism of |
| 38 | topological pairs `(W, W \ B) ≅ (f(W), f(W) \ S)` whose maps on both spaces are restrictions of |
| 39 | `f`. -/ |
| 40 | def neighborhoodSupportPairImageIso : |
| 41 | LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair W B ≅ |
| 42 | LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (f '' W) S where |
| 43 | hom := TopPair.ofHom |
| 44 | (TopCat.ofHom ⟨hf.homeomorphImage W, (hf.homeomorphImage W).continuous⟩) |
| 45 | (TopCat.ofHom ⟨neighborhoodSupportComplementImageHomeomorph f hf W B S hS, |
| 46 | (neighborhoodSupportComplementImageHomeomorph f hf W B S hS).continuous⟩) |
| 47 | (by ext w; rfl) |
| 48 | inv := TopPair.ofHom |
| 49 | (TopCat.ofHom ⟨(hf.homeomorphImage W).symm, (hf.homeomorphImage W).symm.continuous⟩) |
| 50 | (TopCat.ofHom ⟨(neighborhoodSupportComplementImageHomeomorph f hf W B S hS).symm, |
| 51 | (neighborhoodSupportComplementImageHomeomorph f hf W B S hS).symm.continuous⟩) |
| 52 | (by ext w; rfl) |
| 53 | hom_inv_id := by |
| 54 | apply MorphismProperty.Arrow.Hom.ext |
| 55 | · ext w |
| 56 | exact (neighborhoodSupportComplementImageHomeomorph f hf W B S hS).left_inv w |
| 57 | · ext w |
| 58 | exact (hf.homeomorphImage W).left_inv w |
| 59 | inv_hom_id := by |
| 60 | apply MorphismProperty.Arrow.Hom.ext |
| 61 | · ext w |
| 62 | exact (neighborhoodSupportComplementImageHomeomorph f hf W B S hS).right_inv w |
| 63 | · ext w |
| 64 | exact (hf.homeomorphImage W).right_inv w |
| 65 | |
| 66 | /-- Let `f: M → N` be an embedding of topological spaces, with subsets `W, B ⊆ M` and `S ⊆ N`. |
| 67 | Assume `w ∈ B` if and only if `f(w) ∈ S` for every `w ∈ W`. Pullback along `f` gives this |
| 68 | isomorphism of rational vector spaces `H^n(f(W), f(W) \ S; ℚ) ≅ H^n(W, W \ B; ℚ)` in relative |
| 69 | singular cohomology. -/ |
| 70 | def neighborhoodSupportPairImageCohomologyIso (n : ℕ) : |
| 71 | Singular.Cohomology.RelativeCohomology ℚ (LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (f '' W) S) n ≅ |
| 72 | Singular.Cohomology.RelativeCohomology ℚ (LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair W B) n := |
| 73 | (HomologicalComplex.homologyFunctor (ModuleCat ℚ) (ComplexShape.up ℕ) n).mapIso |
| 74 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualIso |
| 75 | ((Singular.Cohomology.relativeChainFunctor ℚ).mapIso (neighborhoodSupportPairImageIso f hf W B S hS))) |
| 76 | |
| 77 | /-- Let `f: M → N` be an embedding of topological spaces, with subsets `W, B ⊆ M` and `S ⊆ N`. |
| 78 | Assume `w ∈ B` if and only if `f(w) ∈ S` for every `w ∈ W`. This rational linear equivalence |
| 79 | `H^n(f(W), f(W) \ S; ℚ) ≃ H^n(W, W \ B; ℚ)` pulls relative singular cochains back along the |
| 80 | restrictions of `f`. -/ |
| 81 | def neighborhoodSupportPairImageCohomologyEquiv (n : ℕ) : |
| 82 | Singular.Cohomology.RelativeCohomology ℚ (LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (f '' W) S) n ≃ₗ[ℚ] |
| 83 | Singular.Cohomology.RelativeCohomology ℚ (LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair W B) n := |
| 84 | (neighborhoodSupportPairImageCohomologyIso f hf W B S hS n).toLinearEquiv |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicTopology.Support.NeighborhoodPairImage.Singular |