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.StalkPrimeSupportOrder |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Point.SupportDivisorRestriction |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Geometric.ResidueNaturality |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.StalkNormalReciprocity |
| 5 | |
| 6 | /-! # Stalk Support Divisor -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.StalkSupportDivisor.BundleCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # LineBundleCycles: complete prime-support divisors and residues on the actual stalk spectrum |
| 14 | -/ |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 17 | |
| 18 | variable (X : Scheme) [AlgebraicGeometry.IsNoetherian X] (x : X) (p : Spec (X.presheaf.stalk x)) |
| 19 | |
| 20 | theorem pointSupportPrincipalDivisor_fromSpecStalk |
| 21 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme (StalkPrimeSupport.BundleCycles.stalkPrimeGlobalSupport X x p)).functionField) : |
| 22 | Finsupp.comapDomain (X.fromSpecStalk x) |
| 23 | (Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (StalkPrimeSupport.BundleCycles.stalkPrimeGlobalSupport X x p) g) |
| 24 | (X.fromSpecStalk x).isEmbedding.injective.injOn = |
| 25 | Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm p) |
| 26 | (Point.SupportMap.BundleCycles.pointSupportFunctionFieldMap (X.fromSpecStalk x) p g) := by |
| 27 | let : IsIso (Point.SupportMap.BundleCycles.pointSupportFunctionFieldMap (X.fromSpecStalk x) p) := |
| 28 | StalkPrimeSupportOrder.BundleCycles.pointSupportFunctionFieldMap_fromSpecStalk_isIso X x p |
| 29 | exact Point.SupportDivisorRestriction.BundleCycles.pointSupportPrincipalDivisor_comap (X.fromSpecStalk x) p |
| 30 | (X.fromSpecStalk x).isEmbedding.injective (StalkPrimeSupportOrder.BundleCycles.pointSupport_fromSpecStalk_preimage X x p) |
| 31 | (StalkPrimeSupportOrder.BundleCycles.pointSupportMap_fromSpecStalk_stalkMap_isIso X x p) |
| 32 | (StalkPrimeSupportOrder.BundleCycles.pointSupportMap_fromSpecStalk_coheight X x p) g |
| 33 | |
| 34 | variable [IsIntegral X] (hNormal : ∀ y : X, IsIntegrallyClosed (X.presheaf.stalk y)) |
| 35 | |
| 36 | theorem normalResidueContribution_fromSpecStalk (hp : coheight p = 1) (g h : X.functionFieldˣ) : |
| 37 | Finsupp.comapDomain (X.fromSpecStalk x) |
| 38 | (ResidueCycleFamily.BundleCycles.normalResidueContribution X hNormal g h |
| 39 | ⟨X.fromSpecStalk x p, (StalkLocalization.BundleCycles.fromSpecStalk_coheight X x p).trans hp⟩) |
| 40 | (X.fromSpecStalk x).isEmbedding.injective.injOn = |
| 41 | letI := hNormal x |
| 42 | ResidueCycleFamily.BundleCycles.normalResidueContribution (Spec (X.presheaf.stalk x)) |
| 43 | (Affine.ProperReciprocity.BundleCycles.affineNormal_stalk_integrallyClosed (X.presheaf.stalk x)) |
| 44 | (Units.map (StalkRationalOrder.BundleCycles.stalkFunctionFieldMap X x).hom.toMonoidHom g) |
| 45 | (Units.map (StalkRationalOrder.BundleCycles.stalkFunctionFieldMap X x).hom.toMonoidHom h) ⟨p, hp⟩ := by |
| 46 | let hD : IsDomain (X.presheaf.stalk x) := inferInstance |
| 47 | let := hNormal x |
| 48 | let := hNormal (X.fromSpecStalk x p) |
| 49 | let hP : IsIntegrallyClosed ((Spec (X.presheaf.stalk x)).presheaf.stalk p) := |
| 50 | @Affine.ProperReciprocity.BundleCycles.affineNormal_stalk_integrallyClosed (X.presheaf.stalk x) inferInstance hD (hNormal x) p |
| 51 | let : IsIso ((X.fromSpecStalk x).stalkMap p) := StalkLocalization.BundleCycles.fromSpecStalk_stalkMap_isIso X x p |
| 52 | let : IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (X.fromSpecStalk x) (StalkLocalization.BundleCycles.fromSpecStalk_genericPoint X x)) := |
| 53 | StalkRationalOrder.BundleCycles.stalkFunctionFieldMap_isIso X x |
| 54 | unfold ResidueCycleFamily.BundleCycles.normalResidueContribution |
| 55 | rw [pointSupportPrincipalDivisor_fromSpecStalk X x p] |
| 56 | exact congrArg (Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm p)) |
| 57 | (Geometric.ResidueNaturality.BundleCycles.normalPointResidueFunction_morphism (X.fromSpecStalk x) (StalkLocalization.BundleCycles.fromSpecStalk_genericPoint X x) p hp |
| 58 | ((StalkLocalization.BundleCycles.fromSpecStalk_coheight X x p).trans hp) g h) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.Divisors.LineBundles.StalkSupportDivisor.BundleCycles |