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.Divisors.LineBundles.Normal.RationalRestrictionNaturality |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Point.SupportOpenCycle |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Point.SupportDivisorRestriction |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Open.FunctionFieldUnits |
| 5 | |
| 6 | /-! # Restriction Open Divisor -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.RestrictionOpenDivisor.BundleCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! # LineBundleCycles: actual ordinary restricted principal divisors commute with open restriction -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 15 | |
| 16 | variable {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] |
| 17 | [AlgebraicGeometry.IsNoetherian X] [AlgebraicGeometry.IsNoetherian Y] |
| 18 | (i : Y ⟶ X) [IsOpenImmersion i] |
| 19 | |
| 20 | omit [IsIntegral X] [IsIntegral Y] [AlgebraicGeometry.IsNoetherian X] [AlgebraicGeometry.IsNoetherian Y] in |
| 21 | include i in |
| 22 | theorem openNormalStructure (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) : |
| 23 | ∀ y : Y, IsIntegrallyClosed (Y.presheaf.stalk y) := fun y => |
| 24 | letI := hNormal (i y) |
| 25 | IsIntegrallyClosed.of_equiv (asIso (i.stalkMap y)).commRingCatIsoToRingEquiv |
| 26 | |
| 27 | omit [IsIntegral X] [IsIntegral Y] in |
| 28 | theorem pointSupportPrincipalDivisor_open (y : Y) |
| 29 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme (irreducibleSetEquivPoints.symm (i y))).functionField) : |
| 30 | Finsupp.comapDomain i (Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm (i y)) g) |
| 31 | i.isOpenEmbedding.injective.injOn = |
| 32 | Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm y) (Point.SupportMap.BundleCycles.pointSupportFunctionFieldMap i y g) := by |
| 33 | have hs : i ⁻¹' (irreducibleSetEquivPoints.symm (i y) : Set X) = |
| 34 | (irreducibleSetEquivPoints.symm y : Set Y) := |
| 35 | (Open.SupportRestriction.BundleCycles.openRestrictedSupport_coe i (irreducibleSetEquivPoints.symm (i y))).symm.trans |
| 36 | (congrArg (fun W : IrreducibleCloseds Y => (W : Set Y)) (Open.SupportGenericPoint.BundleCycles.openRestrictedSupport_pointClosure i y)) |
| 37 | exact Point.SupportDivisorRestriction.BundleCycles.pointSupportPrincipalDivisor_comap i y i.isOpenEmbedding.injective hs |
| 38 | (fun _ => inferInstance) (fun _ => coheight_eq_of_isOpenImmersion (Point.SupportMap.BundleCycles.pointSupportMap i y)) g |
| 39 | |
| 40 | theorem normalRationalRestriction_principal_open (y : Y) (hx : coheight (i y) = 1) (hy : coheight y = 1) |
| 41 | [IsIntegrallyClosed (X.presheaf.stalk (i y))] [IsIntegrallyClosed (Y.presheaf.stalk y)] |
| 42 | (g : X.functionFieldˣ) (hg : X.ord g.val (i y) = 0) |
| 43 | (hg' : Y.ord (Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits i g).val y = 0) : |
| 44 | Finsupp.comapDomain i |
| 45 | (Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm (i y)) |
| 46 | (RationalNormalUnitRestriction.BundleCycles.normalRationalRestriction X (i y) hx g hg).val) i.isOpenEmbedding.injective.injOn = |
| 47 | Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm y) |
| 48 | (RationalNormalUnitRestriction.BundleCycles.normalRationalRestriction Y y hy (Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits i g) hg').val := by |
| 49 | have hd := pointSupportPrincipalDivisor_open i y (RationalNormalUnitRestriction.BundleCycles.normalRationalRestriction X (i y) hx g hg).val |
| 50 | have hr := RationalRestrictionNaturality.BundleCycles.normalRationalRestriction_morphism i (genericPoint_eq_of_isOpenImmersion i) y hy hx g hg hg' |
| 51 | exact hd.trans (congrArg (Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm y)) hr) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.RestrictionOpenDivisor.BundleCycles |