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.LineBundle.CanonicalRationalRestriction |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.GenericCoefficientGlobalFrame |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.GlobalDivisor |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.RationalRestrictionOpenRegular |
| 5 | |
| 6 | /-! # Restriction Global Frame -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.RestrictionGlobalFrame.Cycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! # LineBundleCycles: the actual restricted rational section agrees with ordinary restriction in every global frame -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 15 | |
| 16 | variable {X : Scheme.{0}} [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 17 | {L : LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle X} (e : L.sheaf ≅ DivisorClass.Chern.Line.Bundles.Construction.structureModule X) |
| 18 | (a : X.functionFieldˣ) (x : X) (hx : coheight x = 1) |
| 19 | [IsIntegrallyClosed (X.presheaf.stalk x)] |
| 20 | |
| 21 | theorem rationalSectionUnitNeighborhood_globalFrame |
| 22 | (D : L.RationalSectionUnitNeighborhood a x) |
| 23 | (hb : X.ord (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e).val x = 0) : |
| 24 | D.restrictionCoefficient * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient |
| 25 | (PullbackIso.Cycles.lineBundlePullbackGlobalTrivialization e (CycleClass.Geometric.GenericPoint.reducedSupportι (irreducibleSetEquivPoints.symm x))) = |
| 26 | RationalNormalUnitRestriction.BundleCycles.normalRationalRestriction X x hx (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e) hb := by |
| 27 | let i := CycleClass.Geometric.GenericPoint.reducedSupportι (irreducibleSetEquivPoints.symm x) |
| 28 | let Z := CycleClass.Geometric.GenericPoint.reducedSupportScheme (irreducibleSetEquivPoints.symm x) |
| 29 | let ep := PullbackIso.Cycles.lineBundlePullbackGlobalTrivialization e i |
| 30 | let r := GlobalFrame.Cycles.lineBundleGlobalFrame e D.openSet D.localSection |
| 31 | have hr : IsUnit r := GenericCoefficientGlobalFrame.Cycles.lineBundleGlobalFrame_isUnit_of_localFrame e x D.openSet D.subordinate |
| 32 | D.localSection (D.localSection_coordinate.symm ▸ D.unit.isUnit) |
| 33 | have hc : L.genericSectionCoefficient D.openSet D.localSection = a.val := |
| 34 | (L.genericSectionCoefficient_eq_local x D.openSet D.subordinate D.localSection).trans D.localSection_coefficient |
| 35 | have hg : (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e).val = X.germToFunctionField D.openSet r := by |
| 36 | rw [GenericCoefficientGlobalFrame.Cycles.genericSectionCoefficient_globalFrame e, hc] |
| 37 | exact mul_comm _ _ |
| 38 | have hn := Normal.RationalRestrictionOpenRegular.BundleCycles.normalRationalRestriction_openRegular X x hx |
| 39 | (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e) hb D.openSet D.point_mem r |
| 40 | (hr.map (X.presheaf.germ D.openSet x D.point_mem).hom) hg |
| 41 | have hp := Module.PullbackUnitSections.BundleCycles.lineBundlePullbackGlobalTrivialization_section i e D.openSet D.localSection |
| 42 | have hpg := GenericCoefficientGlobalFrame.Cycles.genericSectionCoefficient_globalFrame ep (i ⁻¹ᵁ D.openSet) |
| 43 | (Module.OpenPullbackSections.BundleCycles.moduleSectionPullbackOnOpen i L.sheaf D.openSet D.localSection) |
| 44 | have hv : Z.germToFunctionField (i ⁻¹ᵁ D.openSet) (i.app D.openSet r) = |
| 45 | (GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient ep).val * D.restrictionCoefficient.val := |
| 46 | (congrArg (Z.germToFunctionField (i ⁻¹ᵁ D.openSet)) hp).symm.trans hpg |
| 47 | apply Units.ext |
| 48 | change D.restrictionCoefficient.val * (GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient ep).val = _ |
| 49 | exact (mul_comm _ _).trans (hv.symm.trans hn.symm) |
| 50 | |
| 51 | theorem rationalSectionRestrictionCoefficient_globalFrame |
| 52 | (ha : L.rationalSectionPointDivisorWithCoefficient a x = 0) : |
| 53 | L.rationalSectionRestrictionCoefficient a x hx ha * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient |
| 54 | (PullbackIso.Cycles.lineBundlePullbackGlobalTrivialization e (CycleClass.Geometric.GenericPoint.reducedSupportι (irreducibleSetEquivPoints.symm x))) = |
| 55 | RationalNormalUnitRestriction.BundleCycles.normalRationalRestriction X x hx (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e) |
| 56 | ((GlobalDivisor.Cycles.lineBundleGlobal_section_order e a x).symm.trans ha) := by |
| 57 | let D := Classical.choice (L.rationalSectionUnitNeighborhood_nonempty a x hx ha) |
| 58 | rw [L.rationalSectionRestrictionCoefficient_eq a x hx ha D] |
| 59 | exact rationalSectionUnitNeighborhood_globalFrame e a x hx D _ |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.RestrictionGlobalFrame.Cycles |