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