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.Cycles.Functoriality.AnalyticRestriction |
| 2 | import OAI.AlgebraicGeometry.Cycles.Functoriality.ResidueDegree |
| 3 | import OAI.AlgebraicGeometry.Cycles.Functoriality.IntrinsicFiberDegree |
| 4 | import OAI.AlgebraicGeometry.Cycles.Functoriality.GenericEtale |
| 5 | |
| 6 | /-! # Restriction Degree -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Cycles.Functoriality.RestrictionDegree.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | instance openSchemeOver_isIntegral (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X.left] |
| 15 | (U : X.left.Opens) [Nonempty U] : IsIntegral (AnalyticRestriction.Construction.openSchemeOver X U).left := |
| 16 | inferInstanceAs (IsIntegral U.toScheme) |
| 17 | |
| 18 | /-- A dominant map remains dominant after restricting to a nonempty |
| 19 | target open and its nonempty inverse image. -/ |
| 20 | theorem restrictedSchemeMap_genericPoint |
| 21 | {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [IsIntegral Y.left] |
| 22 | (f : X ⟶ Y) (hη : f.left (genericPoint X.left) = genericPoint Y.left) |
| 23 | (U : Y.left.Opens) [Nonempty U] [Nonempty (f.left ⁻¹ᵁ U)] : |
| 24 | (AnalyticRestriction.Construction.restrictedSchemeMap f U).left (genericPoint (AnalyticRestriction.Construction.openSchemeOver X (f.left ⁻¹ᵁ U)).left) = |
| 25 | genericPoint (AnalyticRestriction.Construction.openSchemeOver Y U).left := by |
| 26 | apply U.ι.isOpenEmbedding.injective |
| 27 | change ((f.left ∣_ U) ≫ U.ι) (genericPoint (f.left ⁻¹ᵁ U).toScheme) = |
| 28 | U.ι (genericPoint U.toScheme) |
| 29 | rw [morphismRestrict_ι] |
| 30 | change f.left ((f.left ⁻¹ᵁ U).ι (genericPoint (f.left ⁻¹ᵁ U).toScheme)) = _ |
| 31 | rw [genericPoint_eq_of_isOpenImmersion (f.left ⁻¹ᵁ U).ι, |
| 32 | genericPoint_eq_of_isOpenImmersion U.ι, hη] |
| 33 | |
| 34 | /-- Restricting to nonempty opens leaves the generic residue degree unchanged. -/ |
| 35 | theorem restrictedSchemeMap_residueDegree |
| 36 | {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [IsIntegral Y.left] |
| 37 | (f : X ⟶ Y) (U : Y.left.Opens) [Nonempty (f.left ⁻¹ᵁ U)] : |
| 38 | (AnalyticRestriction.Construction.restrictedSchemeMap f U).left.residueDegree |
| 39 | (genericPoint (AnalyticRestriction.Construction.openSchemeOver X (f.left ⁻¹ᵁ U)).left) = |
| 40 | f.left.residueDegree (genericPoint X.left) := by |
| 41 | have h := congrArg |
| 42 | (fun k : (f.left ⁻¹ᵁ U).toScheme ⟶ Y.left => |
| 43 | k.residueDegree (genericPoint (f.left ⁻¹ᵁ U).toScheme)) (morphismRestrict_ι f.left U) |
| 44 | rw [ResidueDegree.Construction.residueDegree_post_immersion, ResidueDegree.Construction.residueDegree_pre_immersion, |
| 45 | genericPoint_eq_of_isOpenImmersion (f.left ⁻¹ᵁ U).ι] at h |
| 46 | exact h |
| 47 | |
| 48 | /-- Smoothness of an open restriction puts the entire open inside |
| 49 | the genuine smooth locus of the original morphism. -/ |
| 50 | theorem open_subset_smoothLocus {X S : Scheme} (f : X ⟶ S) |
| 51 | [LocallyOfFinitePresentation f] (U : X.Opens) [Smooth (U.ι ≫ f)] : |
| 52 | U ≤ f.smoothLocus := by |
| 53 | intro x hx |
| 54 | have h : (⟨x, hx⟩ : U) ∈ (U.ι ≫ f).smoothLocus := by |
| 55 | rw [Scheme.Hom.smoothLocus_eq_top] |
| 56 | trivial |
| 57 | rwa [← Scheme.Hom.preimage_smoothLocus_eq] at h |
| 58 | |
| 59 | /-- Actual fibers on a finite etale open have the original map's generic degree. -/ |
| 60 | theorem restrictedSchemeMap_fiber_card |
| 61 | {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [IsIntegral Y.left] |
| 62 | (f : X ⟶ Y) (hη : f.left (genericPoint X.left) = genericPoint Y.left) |
| 63 | (U : Y.left.Opens) [Nonempty U] [Nonempty (f.left ⁻¹ᵁ U)] |
| 64 | [IsFinite (f.left ∣_ U)] [Etale (f.left ∣_ U)] |
| 65 | (y : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (AnalyticRestriction.Construction.openSchemeOver Y U)) : |
| 66 | Nat.card {x : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (AnalyticRestriction.Construction.openSchemeOver X (f.left ⁻¹ᵁ U)) // |
| 67 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (AnalyticRestriction.Construction.restrictedSchemeMap f U) x = y} = |
| 68 | f.left.residueDegree (genericPoint X.left) := by |
| 69 | let : IsFinite (AnalyticRestriction.Construction.restrictedSchemeMap f U).left := inferInstanceAs (IsFinite (f.left ∣_ U)) |
| 70 | let : Etale (AnalyticRestriction.Construction.restrictedSchemeMap f U).left := inferInstanceAs (Etale (f.left ∣_ U)) |
| 71 | exact (IntrinsicFiberDegree.Construction.native_fiber_card_eq_residueDegree (AnalyticRestriction.Construction.restrictedSchemeMap f U) |
| 72 | (restrictedSchemeMap_genericPoint f hη U) y).trans |
| 73 | (restrictedSchemeMap_residueDegree f U) |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.Cycles.Functoriality.RestrictionDegree.Construction |