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.AlgebraicGeometry.Cycle.LocalLocalHomology |
| 7 | import OAI.AlgebraicGeometry.ClosedImmersion.SourceOpenIs |
| 8 | import OAI.AlgebraicTopology.Support.NeighborhoodPairImage |
| 9 | |
| 10 | /-! # Smooth Pair Open Transport -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | |
| 18 | /-! |
| 19 | # Local purity neighborhoods transported out of ambient opens |
| 20 | |
| 21 | The normal-neighborhood construction uses smooth geometry alone. This module transports |
| 22 | its support pairs along an open embedding, so cohomology can still be computed with a |
| 23 | resolution on the original ambient space. The support-membership identity is purely |
| 24 | topological. |
| 25 | -/ |
| 26 | |
| 27 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.Topology _root_.TopologicalSpace |
| 28 | |
| 29 | open OAI.AlgebraicTopology.Singular |
| 30 | |
| 31 | variable (X Y : Over (Spec ↧ℂ)) |
| 32 | (i : Y ⟶ X) (m d : ℕ) |
| 33 | [SmoothOfRelativeDimension m Y.hom] [SmoothOfRelativeDimension d X.hom] |
| 34 | [IsClosedImmersion i.left] |
| 35 | |
| 36 | /-- Normal neighborhoods can be computed in any smooth auxiliary ambient open |
| 37 | and then transported to the original topological ambient space. -/ |
| 38 | theorem ComplexPoint.Basic.ComplexSchemePoint.exists_smoothClosedSupportImageNeighborhood |
| 39 | {M : Type} [TopologicalSpace M] |
| 40 | (f : ComplexPoint.Basic.ComplexSchemePoint X → M) (hf : IsOpenEmbedding f) (S : Set M) |
| 41 | (hS : f ⁻¹' S = Set.range (ComplexPoint.Basic.Point.map i)) |
| 42 | (z : ComplexPoint.Basic.ComplexSchemePoint Y) (V : Opens M) (hzV : f (ComplexPoint.Basic.Point.map i z) ∈ V) : |
| 43 | ∃ W : Opens M, W ≤ V ∧ f (ComplexPoint.Basic.Point.map i z) ∈ W ∧ |
| 44 | ∀ n : ℕ, n ≠ 2 * (d - m) → |
| 45 | IsZero (ModuleCat.of ℚ (AlgebraicTopology.Singular.Cohomology.RelativeCohomology ℚ |
| 46 | (AlgebraicTopology.LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (W : Set M) S) n)) := by |
| 47 | let V' : Opens (ComplexPoint.Basic.ComplexSchemePoint X) := ⟨f ⁻¹' V, V.isOpen.preimage hf.continuous⟩ |
| 48 | let W' := ComplexPoint.Basic.ComplexSchemePoint.smoothClosedSupportNeighborhood X Y i m d z V' hzV |
| 49 | let W : Opens M := ⟨f '' (W' : Set (ComplexPoint.Basic.ComplexSchemePoint X)), hf.isOpenMap _ W'.isOpen⟩ |
| 50 | refine ⟨W, ?_, ?_, ?_⟩ |
| 51 | · rintro _ ⟨w, hw, rfl⟩ |
| 52 | exact ComplexPoint.Basic.ComplexSchemePoint.smoothClosedSupportNeighborhood_le X Y i m d z V' hzV hw |
| 53 | · exact ⟨_, ComplexPoint.Basic.ComplexSchemePoint.mem_smoothClosedSupportNeighborhood X Y i m d z V' hzV, rfl⟩ |
| 54 | · intro n hn |
| 55 | let : Subsingleton (AlgebraicTopology.Singular.Cohomology.RelativeCohomology ℚ |
| 56 | (AlgebraicTopology.LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (W' : Set (ComplexPoint.Basic.ComplexSchemePoint X)) |
| 57 | (Set.range (ComplexPoint.Basic.Point.map i))) n) := |
| 58 | ModuleCat.subsingleton_of_isZero |
| 59 | (ComplexPoint.Basic.ComplexSchemePoint.smoothClosedSupportRelativeCohomology_isZero_of_ne X Y i m d z V' hzV n hn) |
| 60 | let e := AlgebraicTopology.Support.NeighborhoodPairImage.Singular.neighborhoodSupportPairImageCohomologyEquiv f hf.isEmbedding W' |
| 61 | (Set.range (ComplexPoint.Basic.Point.map i)) S (fun w _ => by |
| 62 | rw [← hS] |
| 63 | rfl) n |
| 64 | let : Subsingleton (AlgebraicTopology.Singular.Cohomology.RelativeCohomology ℚ |
| 65 | (AlgebraicTopology.LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (W : Set M) S) n) := e.injective.subsingleton |
| 66 | exact ModuleCat.isZero_of_subsingleton _ |
| 67 | |
| 68 | omit [SmoothOfRelativeDimension m Y.hom] in |
| 69 | /-- Fixed-dimensional source opens suffice: the target is restricted by deleting the discarded |
| 70 | closed image, while the resulting neighborhoods and pairs live in the original ambient analytic |
| 71 | space. -/ |
| 72 | theorem ComplexPoint.Basic.ComplexSchemePoint.exists_smoothClosedSourceOpenNeighborhood |
| 73 | (A : Y.left.Opens) [SmoothOfRelativeDimension m (ComplexPoint.Basic.ComplexSchemePoint.openScheme Y A).hom] |
| 74 | (z : ComplexPoint.Basic.ComplexSchemePoint (ComplexPoint.Basic.ComplexSchemePoint.openScheme Y A)) |
| 75 | (V : Opens (ComplexPoint.Basic.ComplexSchemePoint X)) |
| 76 | (hzV : ComplexPoint.Basic.Point.map (ComplexPoint.Basic.ComplexSchemePoint.openInclusion Y A ≫ i) z ∈ V) : |
| 77 | ∃ W : Opens (ComplexPoint.Basic.ComplexSchemePoint X), W ≤ V ∧ |
| 78 | ComplexPoint.Basic.Point.map (ComplexPoint.Basic.ComplexSchemePoint.openInclusion Y A ≫ i) z ∈ W ∧ |
| 79 | ∀ n : ℕ, n ≠ 2 * (d - m) → |
| 80 | IsZero (ModuleCat.of ℚ (AlgebraicTopology.Singular.Cohomology.RelativeCohomology ℚ |
| 81 | (AlgebraicTopology.LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (W : Set (ComplexPoint.Basic.ComplexSchemePoint X)) |
| 82 | (Set.range (ComplexPoint.Basic.Point.map i))) n)) := by |
| 83 | have : Smooth X.hom := SmoothOfRelativeDimension.smooth d X.hom |
| 84 | let T := ClosedImmersion.SourceOpen.closedImmersionSourceOpenTarget i.left A |
| 85 | let j := ClosedImmersion.SourceOpen.closedImmersionSourceOpenLift i.left A |
| 86 | have hj : j ≫ (ComplexPoint.Basic.ComplexSchemePoint.openScheme X T).hom = (ComplexPoint.Basic.ComplexSchemePoint.openScheme Y A).hom := by |
| 87 | change j ≫ (T.ι ≫ X.hom) = A.ι ≫ Y.hom |
| 88 | rw [← Category.assoc, ClosedImmersion.SourceOpen.closedImmersionSourceOpenLift_ι, Category.assoc, i.w] |
| 89 | let jOver : ComplexPoint.Basic.ComplexSchemePoint.openScheme Y A ⟶ ComplexPoint.Basic.ComplexSchemePoint.openScheme X T := Over.homMk j hj |
| 90 | let : IsClosedImmersion jOver.left := |
| 91 | ClosedImmersion.SourceOpen.closedImmersionSourceOpenLift_isClosedImmersion i.left A |
| 92 | have : SmoothOfRelativeDimension d (ComplexPoint.Basic.ComplexSchemePoint.openScheme X T).hom := by |
| 93 | change SmoothOfRelativeDimension d (T.ι ≫ X.hom) |
| 94 | simpa only [Nat.zero_add] using smoothOfRelativeDimension_comp 0 d T.ι X.hom |
| 95 | have : Smooth (ComplexPoint.Basic.ComplexSchemePoint.openScheme X T).hom := |
| 96 | SmoothOfRelativeDimension.smooth d (ComplexPoint.Basic.ComplexSchemePoint.openScheme X T).hom |
| 97 | let f := ComplexPoint.Basic.Point.map (ComplexPoint.Basic.ComplexSchemePoint.openInclusion X T) |
| 98 | have hS : f ⁻¹' Set.range (ComplexPoint.Basic.Point.map i) = Set.range (ComplexPoint.Basic.Point.map jOver) := by |
| 99 | rw [ComplexPoint.Basic.ComplexSchemePoint.range_map_of_isImmersion_of_comm X Y i, |
| 100 | ComplexPoint.Basic.ComplexSchemePoint.range_map_of_isImmersion_of_comm (ComplexPoint.Basic.ComplexSchemePoint.openScheme X T) (ComplexPoint.Basic.ComplexSchemePoint.openScheme Y A) jOver] |
| 101 | change _ = (ComplexPoint.Basic.Point.underlying : ComplexPoint.Basic.ComplexSchemePoint (ComplexPoint.Basic.ComplexSchemePoint.openScheme X T) → |
| 102 | (ComplexPoint.Basic.ComplexSchemePoint.openScheme X T).left) ⁻¹' Set.range j |
| 103 | rw [ClosedImmersion.SourceOpen.range_closedImmersionSourceOpenLift i.left A] |
| 104 | rfl |
| 105 | have he : f (ComplexPoint.Basic.Point.map jOver z) = ComplexPoint.Basic.Point.map (ComplexPoint.Basic.ComplexSchemePoint.openInclusion Y A ≫ i) z := by |
| 106 | change ComplexPoint.Basic.Point.map (ComplexPoint.Basic.ComplexSchemePoint.openInclusion X T) (ComplexPoint.Basic.Point.map jOver z) = _ |
| 107 | rw [← ComplexPoint.Basic.Point.map_comp_apply] |
| 108 | exact congrArg (fun k ↦ ComplexPoint.Basic.Point.map k z) |
| 109 | (Over.OverMorphism.ext (ClosedImmersion.SourceOpen.closedImmersionSourceOpenLift_ι i.left A)) |
| 110 | obtain ⟨W, hWV, hzW, hW⟩ := ComplexPoint.Basic.ComplexSchemePoint.exists_smoothClosedSupportImageNeighborhood |
| 111 | (ComplexPoint.Basic.ComplexSchemePoint.openScheme X T) (ComplexPoint.Basic.ComplexSchemePoint.openScheme Y A) jOver m d f |
| 112 | (ComplexPoint.Basic.ComplexSchemePoint.isOpenEmbedding_map_open X T) (Set.range (ComplexPoint.Basic.Point.map i)) hS z V (he ▸ hzV) |
| 113 | exact ⟨W, hWV, he ▸ hzW, hW⟩ |
| 114 | |
| 115 | omit [SmoothOfRelativeDimension m Y.hom] in |
| 116 | /-- The fixed-dimensional source-open calculation, transported through a further |
| 117 | open embedding. This is the form used by successive closed supports in a larger ambient. -/ |
| 118 | theorem ComplexPoint.Basic.ComplexSchemePoint.exists_smoothClosedSourceOpenImageNeighborhood |
| 119 | {M : Type} [TopologicalSpace M] |
| 120 | (f : ComplexPoint.Basic.ComplexSchemePoint X → M) (hf : IsOpenEmbedding f) (S : Set M) |
| 121 | (hS : f ⁻¹' S = Set.range (ComplexPoint.Basic.Point.map i)) |
| 122 | (A : Y.left.Opens) [SmoothOfRelativeDimension m (ComplexPoint.Basic.ComplexSchemePoint.openScheme Y A).hom] |
| 123 | (z : ComplexPoint.Basic.ComplexSchemePoint (ComplexPoint.Basic.ComplexSchemePoint.openScheme Y A)) |
| 124 | (V : Opens M) |
| 125 | (hzV : f (ComplexPoint.Basic.Point.map (ComplexPoint.Basic.ComplexSchemePoint.openInclusion Y A ≫ i) z) ∈ V) : |
| 126 | ∃ W : Opens M, W ≤ V ∧ |
| 127 | f (ComplexPoint.Basic.Point.map (ComplexPoint.Basic.ComplexSchemePoint.openInclusion Y A ≫ i) z) ∈ W ∧ |
| 128 | ∀ n : ℕ, n ≠ 2 * (d - m) → |
| 129 | IsZero (ModuleCat.of ℚ (AlgebraicTopology.Singular.Cohomology.RelativeCohomology ℚ |
| 130 | (AlgebraicTopology.LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (W : Set M) S) n)) := by |
| 131 | let V' : Opens (ComplexPoint.Basic.ComplexSchemePoint X) := ⟨f ⁻¹' V, V.isOpen.preimage hf.continuous⟩ |
| 132 | obtain ⟨W', hW'V', hzW', hW'⟩ := ComplexPoint.Basic.ComplexSchemePoint.exists_smoothClosedSourceOpenNeighborhood |
| 133 | X Y i m d A z V' hzV |
| 134 | let W : Opens M := ⟨f '' (W' : Set (ComplexPoint.Basic.ComplexSchemePoint X)), hf.isOpenMap _ W'.isOpen⟩ |
| 135 | refine ⟨W, ?_, ⟨_, hzW', rfl⟩, ?_⟩ |
| 136 | · rintro _ ⟨w, hw, rfl⟩ |
| 137 | exact hW'V' hw |
| 138 | · intro n hn |
| 139 | let : Subsingleton (AlgebraicTopology.Singular.Cohomology.RelativeCohomology ℚ |
| 140 | (AlgebraicTopology.LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (W' : Set (ComplexPoint.Basic.ComplexSchemePoint X)) |
| 141 | (Set.range (ComplexPoint.Basic.Point.map i))) n) := ModuleCat.subsingleton_of_isZero (hW' n hn) |
| 142 | let e := AlgebraicTopology.Support.NeighborhoodPairImage.Singular.neighborhoodSupportPairImageCohomologyEquiv f hf.isEmbedding W' |
| 143 | (Set.range (ComplexPoint.Basic.Point.map i)) S (fun w _ => by rw [← hS]; rfl) n |
| 144 | let : Subsingleton (AlgebraicTopology.Singular.Cohomology.RelativeCohomology ℚ |
| 145 | (AlgebraicTopology.LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (W : Set M) S) n) := e.injective.subsingleton |
| 146 | exact ModuleCat.isZero_of_subsingleton _ |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.AlgebraicGeometry |