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 | |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | |
| 8 | import HodgeConjecture.Lemmas.AlgebraicGeometry.Cycle.Component.SingularClosedFiltration |
| 9 | import HodgeConjecture.Lemmas.AlgebraicGeometry.ClosedImmersion.SourceOpen |
| 10 | import HodgeConjecture.Lemmas.AlgebraicGeometry.Cycle.Component.ClosedPointDimension |
| 11 | import Mathlib.RingTheory.DedekindDomain.Basic |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.Cycle.ComponentSmoothClosedLift |
| 14 | |
| 15 | open _root_.AlgebraicGeometry |
| 16 | |
| 17 | /-! |
| 18 | # The smooth-locus closed lift of an integral cycle component |
| 19 | |
| 20 | The ambient open is the complement of the first canonical singular-boundary support, and |
| 21 | the smooth locus embeds closed in it. Its constant relative dimension is `d-p`, by smooth |
| 22 | equidimensionality together with the coheight formula for a closed point of the integral |
| 23 | component. |
| 24 | -/ |
| 25 | |
| 26 | noncomputable section |
| 27 | |
| 28 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 29 | |
| 30 | section |
| 31 | |
| 32 | variable (X : Over (Spec ↧ℂ)) |
| 33 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) |
| 34 | |
| 35 | /-- Let `X` be a smooth integral projective scheme over `ℂ`, let `x` be a scheme point, and let `Z` |
| 36 | be its reduced closure in `X`. This is the Zariski open subset `X \ Z_sing`, obtained by |
| 37 | removing the singular locus of `Z`, viewed as a closed subset of `X`. -/ |
| 38 | def cycleComponentSmoothLocusAmbientOpen : X.left.Opens := |
| 39 | (_root_.OAI.AlgebraicGeometry.Cycle.ComponentSingularClosedFiltration.cycleComponentSingularAmbientClosedFiltration X x 0).compl |
| 40 | |
| 41 | /-- Let `X` be a smooth integral projective scheme over `ℂ`, let `x` be a scheme point, and let `Z` |
| 42 | be its reduced closure in `X`. This is the open subscheme `X \ Z_sing` together with its |
| 43 | structure morphism to `Spec ℂ`, restricted from that of `X`. -/ |
| 44 | abbrev cycleComponentSmoothLocusAmbientOpenOver : Over (Spec ↧ℂ) := |
| 45 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X (cycleComponentSmoothLocusAmbientOpen X x) |
| 46 | |
| 47 | instance cycleComponentSmoothLocusAmbientOpenOver_locallyOfFiniteType : |
| 48 | LocallyOfFiniteType (cycleComponentSmoothLocusAmbientOpenOver X x).hom := by |
| 49 | change LocallyOfFiniteType ((cycleComponentSmoothLocusAmbientOpen X x).ι ≫ X.hom) |
| 50 | infer_instance |
| 51 | |
| 52 | instance cycleComponentSmoothLocusAmbientOpenInclusion_isImmersion : |
| 53 | IsImmersion |
| 54 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X (cycleComponentSmoothLocusAmbientOpen X x)).left := by |
| 55 | change IsImmersion (cycleComponentSmoothLocusAmbientOpen X x).ι |
| 56 | infer_instance |
| 57 | |
| 58 | /-- Let `X` be a smooth integral projective scheme over `ℂ`, let `x` be a scheme point, and let `Z` |
| 59 | be its reduced closure in `X`. The smooth locus `Z_reg` is closed in `X \ Z_sing`. This is its |
| 60 | closed immersion into that open subscheme, obtained by restricting the inclusion `Z → X`. -/ |
| 61 | def cycleComponentSmoothLocusClosedLift : |
| 62 | (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom).smoothLocus.toScheme ⟶ |
| 63 | (cycleComponentSmoothLocusAmbientOpen X x).toScheme := |
| 64 | _root_.OAI.AlgebraicGeometry.ClosedImmersion.SourceOpen.closedImmersionSourceOpenLift (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x) (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom).smoothLocus |
| 65 | |
| 66 | set_option backward.isDefEq.respectTransparency false in |
| 67 | set_option backward.defeqAttrib.useBackward true in |
| 68 | instance cycleComponentSmoothLocusClosedLift_isClosedImmersion : |
| 69 | IsClosedImmersion (cycleComponentSmoothLocusClosedLift X x) := by |
| 70 | dsimp [cycleComponentSmoothLocusClosedLift] |
| 71 | infer_instance |
| 72 | |
| 73 | omit [IsIntegral X.left] [Smooth X.hom] in |
| 74 | @[reassoc (attr := simp)] |
| 75 | theorem cycleComponentSmoothLocusClosedLift_ι : |
| 76 | cycleComponentSmoothLocusClosedLift X x ≫ (cycleComponentSmoothLocusAmbientOpen X x).ι = |
| 77 | (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom).smoothLocus.ι ≫ _root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x := |
| 78 | _root_.OAI.AlgebraicGeometry.ClosedImmersion.SourceOpen.closedImmersionSourceOpenLift_ι _ _ |
| 79 | |
| 80 | /-- Let `X` be a smooth integral projective scheme over `ℂ`, let `x` be a scheme point, and let `Z` |
| 81 | be its reduced closure in `X`. This is the closed immersion `Z_reg → X \ Z_sing` as a morphism |
| 82 | of schemes over `ℂ`; both structure maps are induced by that of `X`. -/ |
| 83 | def cycleComponentSmoothLocusClosedLiftOver : |
| 84 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.cycleComponentSmoothLocusOver X x ⟶ |
| 85 | cycleComponentSmoothLocusAmbientOpenOver X x := |
| 86 | Over.homMk (cycleComponentSmoothLocusClosedLift X x) (by |
| 87 | change cycleComponentSmoothLocusClosedLift X x ≫ |
| 88 | ((cycleComponentSmoothLocusAmbientOpen X x).ι ≫ X.hom) = |
| 89 | ((_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom).smoothLocus.ι ≫ |
| 90 | _root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x) ≫ X.hom |
| 91 | rw [← Category.assoc, cycleComponentSmoothLocusClosedLift_ι]) |
| 92 | |
| 93 | instance cycleComponentSmoothLocusClosedLiftOver_isClosedImmersion : |
| 94 | IsClosedImmersion (cycleComponentSmoothLocusClosedLiftOver X x).left := by |
| 95 | change IsClosedImmersion (cycleComponentSmoothLocusClosedLift X x) |
| 96 | infer_instance |
| 97 | |
| 98 | variable {d p : ℕ} [SmoothOfRelativeDimension d X.hom] |
| 99 | |
| 100 | /-- The ambient open retains the original smooth relative dimension. These stay generic in |
| 101 | `d`: they are instances, found by resolution, and narrowing them to `dim X.left` would make |
| 102 | them fire less often. -/ |
| 103 | instance cycleComponentSmoothLocusAmbientOpen_smoothOfRelativeDimension : |
| 104 | SmoothOfRelativeDimension d ((cycleComponentSmoothLocusAmbientOpen X x).ι ≫ X.hom) := by |
| 105 | simpa only [Nat.zero_add] using smoothOfRelativeDimension_comp 0 d |
| 106 | (cycleComponentSmoothLocusAmbientOpen X x).ι X.hom |
| 107 | |
| 108 | instance cycleComponentSmoothLocusAmbientOpenOver_smoothOfRelativeDimension : |
| 109 | SmoothOfRelativeDimension d (cycleComponentSmoothLocusAmbientOpenOver X x).hom := by |
| 110 | change SmoothOfRelativeDimension d |
| 111 | ((cycleComponentSmoothLocusAmbientOpen X x).ι ≫ X.hom) |
| 112 | infer_instance |
| 113 | |
| 114 | namespace ComplexPoint |
| 115 | |
| 116 | /-- Let `X` be a smooth integral projective scheme over `ℂ`, let `x` be a scheme point, and let `Z` |
| 117 | be its reduced closure in `X`. This is `Z(ℂ)` as a closed subset of the analytic space `X(ℂ)`, |
| 118 | namely the complex points whose underlying scheme points lie in `Z`. -/ |
| 119 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.cycleComponentAnalyticClosedSupport : Closeds (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) := |
| 120 | ⟨_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentSupport X x, _root_.OAI.AlgebraicGeometry.Cycle.SupportEq.isClosed_cycleComponentSupport X x⟩ |
| 121 | |
| 122 | end ComplexPoint |
| 123 | end |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.AlgebraicGeometry.Cycle.ComponentSmoothClosedLift |