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 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.CompactAnalyticOpen |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Intrinsic.ProjectiveAdapter |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleSmooth |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.QuasiProjectiveParameterCuts |
| 5 | import OAI.AlgebraicGeometry.Foundations.Scheme.SmoothProjectiveDecomposition |
| 6 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.CycleStratumRealization |
| 7 | import Mathlib.Topology.Connected.Clopen |
| 8 | |
| 9 | /-! # Quasi Projective Components -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.QuasiProjectiveComponents |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Compact connected analytic opens in the smooth locus of the actual |
| 16 | quasi-projective moduli scheme are actual projective open-and-closed |
| 17 | subschemes. The construction retains their inclusion in the original scheme. -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace Set |
| 20 | |
| 21 | def nativeQuasiProjectiveImmersion {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 22 | (Q : HilbertConstruction.Projective.ProjectivePresentations.QuasiProjectivePresentation X) : |
| 23 | X ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase Q.projective.dimension) := |
| 24 | Q.embedding ≫ (Intrinsic.ProjectiveAdapter.ProjectiveCoefficients.nativeProjectivePresentation Q.projective).toOverHom |
| 25 | |
| 26 | instance nativeQuasiProjectiveImmersion_isImmersion {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 27 | (Q : HilbertConstruction.Projective.ProjectivePresentations.QuasiProjectivePresentation X) : |
| 28 | IsImmersion (nativeQuasiProjectiveImmersion Q).left := |
| 29 | inferInstanceAs (IsImmersion (Q.embedding.left ≫ |
| 30 | (Intrinsic.ProjectiveAdapter.ProjectiveCoefficients.nativeProjectivePresentation Q.projective).embedding)) |
| 31 | |
| 32 | theorem exists_integral_smooth_open_containing_connected_set |
| 33 | (Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) [NoetherianSpace Y.left] [LocallyOfFiniteType Y.hom] |
| 34 | (V : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y)) (hV : IsConnected V) |
| 35 | (hsmooth : ∀ x ∈ V, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ Y.hom.smoothLocus) : |
| 36 | ∃ R : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece Y.hom, |
| 37 | IsOpenImmersion R.inclusion ∧ |
| 38 | V ⊆ range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (Over.homMk R.inclusion rfl : R.toOver ⟶ Y)) := by |
| 39 | let U := Y.hom.smoothLocus |
| 40 | have : Smooth (U.ι ≫ Y.hom) := EtaleSmooth.EtaleSmoothLocus.smooth_on_smoothLocus Y.hom |
| 41 | have : NoetherianSpace U.toScheme := U.ι.isOpenEmbedding.isInducing.noetherianSpace |
| 42 | let : ConnectedSpace V := isConnected_iff_connectedSpace.mp hV |
| 43 | let g : V → U.toScheme := fun x => ⟨ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x.val, hsmooth x.val x.property⟩ |
| 44 | have hg : Continuous g := |
| 45 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.continuous_underlying.comp continuous_subtype_val).subtype_mk _ |
| 46 | obtain ⟨x, hx⟩ := hV.nonempty |
| 47 | let y := g ⟨x, hx⟩ |
| 48 | let C := irreducibleComponent y |
| 49 | have hC : C ∈ irreducibleComponents U.toScheme := irreducibleComponent_mem_irreducibleComponents y |
| 50 | have hCo : IsOpen C := Foundations.Scheme.LocalDomainComponents.isOpen_irreducibleComponent_of_stalkDomains |
| 51 | (Foundations.Scheme.SmoothProjectiveDecomposition.smoothScheme_stalk_isDomain (U.ι ≫ Y.hom)) |
| 52 | NoetherianSpace.finite_irreducibleComponents hC |
| 53 | have hCc : IsClosed C := isClosed_of_mem_irreducibleComponents C hC |
| 54 | have hVC : range g ⊆ C := (isConnected_range hg).isPreconnected.subset_isClopen |
| 55 | ⟨hCc, hCo⟩ ⟨y, ⟨⟨x, hx⟩, rfl⟩, mem_irreducibleComponent⟩ |
| 56 | let W : U.toScheme.Opens := ⟨C, hCo⟩ |
| 57 | have : IrreducibleSpace W.toScheme := isIrreducible_iff_irreducibleSpace.mp hC.1 |
| 58 | have : IsReduced U.toScheme := Foundations.Scheme.SmoothProjectiveDecomposition.smoothScheme_isReduced (U.ι ≫ Y.hom) |
| 59 | have : IsIntegral W.toScheme := isIntegral_of_irreducibleSpace_of_isReduced _ |
| 60 | let R : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece Y.hom := { |
| 61 | carrier := W.toScheme |
| 62 | inclusion := W.ι ≫ U.ι |
| 63 | immersion := inferInstance |
| 64 | smooth := by rw [Category.assoc]; infer_instance |
| 65 | integral := inferInstance } |
| 66 | have hj : IsOpenImmersion R.inclusion := inferInstanceAs (IsOpenImmersion (W.ι ≫ U.ι)) |
| 67 | refine ⟨R, hj, ?_⟩ |
| 68 | let j : R.toOver ⟶ Y := Over.homMk R.inclusion rfl |
| 69 | have : IsOpenImmersion j.left := hj |
| 70 | intro z hz |
| 71 | change z ∈ range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j) |
| 72 | rw [ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isOpenImmersion] |
| 73 | exact ⟨⟨g ⟨z, hz⟩, hVC ⟨⟨z, hz⟩, rfl⟩⟩, rfl⟩ |
| 74 | |
| 75 | theorem exists_projective_open_piece_of_compact_connected_analytic_open |
| 76 | {Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} [LocallyOfFiniteType Y.hom] (Q : HilbertConstruction.Projective.ProjectivePresentations.QuasiProjectivePresentation Y) |
| 77 | (V : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y)) (hopen : IsOpen V) (hcompact : IsCompact V) |
| 78 | (hconnected : IsConnected V) |
| 79 | (hsmooth : ∀ x ∈ V, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ Y.hom.smoothLocus) : |
| 80 | ∃ R : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece Y.hom, |
| 81 | IsOpenImmersion R.inclusion ∧ IsClosedImmersion R.inclusion ∧ |
| 82 | Nonempty (Foundations.Scheme.SmoothProjective.ProjectivePresentation R.carrier (R.inclusion ≫ Y.hom)) ∧ |
| 83 | range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (Over.homMk R.inclusion rfl : R.toOver ⟶ Y)) = V := by |
| 84 | have : LocallyOfFiniteType Y.hom := Q.locallyFiniteType |
| 85 | have : IsNoetherian Y.left := Q.noetherian |
| 86 | have : IsSeparated Y.hom := Q.separated |
| 87 | obtain ⟨R, hj, hsub⟩ := exists_integral_smooth_open_containing_connected_set Y V hconnected hsmooth |
| 88 | let j : R.toOver ⟶ Y := Over.homMk R.inclusion rfl |
| 89 | have : IsOpenImmersion R.inclusion := hj |
| 90 | have : IsOpenImmersion j.left := hj |
| 91 | have : IsIntegral R.toOver.left := R.integral |
| 92 | have : Smooth R.toOver.hom := R.smooth |
| 93 | let U : Opens R.analyticSpace := ⟨ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j ⁻¹' V, |
| 94 | hopen.preimage (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.continuous_map j)⟩ |
| 95 | have himage : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j '' (U : Set R.analyticSpace) = V := |
| 96 | image_preimage_eq_of_subset hsub |
| 97 | have hUn : Nonempty U := by |
| 98 | obtain ⟨x, hx⟩ := hconnected.nonempty |
| 99 | obtain ⟨z, hz⟩ := hsub hx |
| 100 | exact ⟨⟨z, show ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j z ∈ V from hz.symm ▸ hx⟩⟩ |
| 101 | let : Nonempty U := hUn |
| 102 | have hUc : IsCompact (U : Set R.analyticSpace) := |
| 103 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion j).isEmbedding.isCompact_iff.mpr |
| 104 | (himage.symm ▸ hcompact) |
| 105 | let : CompactSpace U := isCompact_iff_compactSpace.mp hUc |
| 106 | let f := j ≫ nativeQuasiProjectiveImmersion Q |
| 107 | have : IsImmersion f.left := inferInstanceAs |
| 108 | (IsImmersion (j.left ≫ (nativeQuasiProjectiveImmersion Q).left)) |
| 109 | let P := CompactAnalyticOpen.projectivePresentation_of_compact_analyticOpen f U |
| 110 | have hu : (U : Set R.analyticSpace) = univ := |
| 111 | CompactAnalyticOpen.compact_analyticOpen_eq_univ_of_projective_immersion f U |
| 112 | have hrange : range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j) = V := by |
| 113 | simpa only [hu, image_univ] using himage |
| 114 | have : IsProper (R.inclusion ≫ Y.hom) := P.isProper |
| 115 | have : IsProper R.inclusion := IsProper.of_comp R.inclusion Y.hom |
| 116 | have hc : IsClosedImmersion R.inclusion := by |
| 117 | apply IsClosedImmersion.of_isPreimmersion |
| 118 | exact R.inclusion.isClosedMap.isClosed_range |
| 119 | exact ⟨R, hj, hc, ⟨P⟩, hrange⟩ |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.QuasiProjectiveComponents |