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.RestrictionGlobalDivisor |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.ResidueDifference |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.ResidueCycleFamily |
| 4 | |
| 5 | /-! # Proper Residue Contribution -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.ProperResidueContribution.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # LineBundleCycles: the actual proper-intersection difference for a rational section and a rational function -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 14 | |
| 15 | variable {X : Scheme.{0}} [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 16 | (L : LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle X) (a g : X.functionFieldˣ) |
| 17 | (hproper : Disjoint (L.rationalSectionPointDivisorWithCoefficient a).support (Ord.BundleCycles.principalDivisor X g.val).support) |
| 18 | |
| 19 | include hproper in |
| 20 | theorem properSection_function_order_zero (x : X) |
| 21 | (hx : L.rationalSectionPointDivisorWithCoefficient a x ≠ 0) : X.ord g.val x = 0 := by |
| 22 | classical |
| 23 | by_contra hg |
| 24 | exact Finset.disjoint_left.mp hproper (Finsupp.mem_support_iff.mpr hx) (Finsupp.mem_support_iff.mpr hg) |
| 25 | |
| 26 | include hproper in |
| 27 | theorem properSection_section_order_zero (x : X) (hx : X.ord g.val x ≠ 0) : |
| 28 | L.rationalSectionPointDivisorWithCoefficient a x = 0 := by |
| 29 | by_contra hs |
| 30 | exact hx (properSection_function_order_zero L a g hproper x hs) |
| 31 | |
| 32 | variable (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 33 | |
| 34 | def properLineBundleResidueContribution (x : {x : X // coheight x = 1}) : X →₀ ℚ := by |
| 35 | classical |
| 36 | let := hNormal x |
| 37 | exact if ha : L.rationalSectionPointDivisorWithCoefficient a x = 0 then |
| 38 | X.ord g.val x • L.restrictedRationalSectionPointCycle a x x.property ha |
| 39 | else |
| 40 | -(L.rationalSectionPointDivisorWithCoefficient a x • |
| 41 | Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm x.val) |
| 42 | (RationalNormalUnitRestriction.BundleCycles.normalRationalRestriction X x x.property g (properSection_function_order_zero L a g hproper x ha)).val) |
| 43 | |
| 44 | theorem properLineBundleResidueContribution_zero_section |
| 45 | (x : {x : X // coheight x = 1}) (ha : L.rationalSectionPointDivisorWithCoefficient a x = 0) : |
| 46 | letI := hNormal x |
| 47 | properLineBundleResidueContribution L a g hproper hNormal x = |
| 48 | X.ord g.val x • L.restrictedRationalSectionPointCycle a x x.property ha := by |
| 49 | unfold properLineBundleResidueContribution |
| 50 | rw [dite_eq_left ha] |
| 51 | |
| 52 | theorem properLineBundleResidueContribution_nonzero_section |
| 53 | (x : {x : X // coheight x = 1}) (ha : L.rationalSectionPointDivisorWithCoefficient a x ≠ 0) : |
| 54 | letI := hNormal x |
| 55 | properLineBundleResidueContribution L a g hproper hNormal x = |
| 56 | -(L.rationalSectionPointDivisorWithCoefficient a x • |
| 57 | Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm x.val) |
| 58 | (RationalNormalUnitRestriction.BundleCycles.normalRationalRestriction X x x.property g (properSection_function_order_zero L a g hproper x ha)).val) := by |
| 59 | unfold properLineBundleResidueContribution |
| 60 | rw [dite_eq_right ha] |
| 61 | |
| 62 | theorem properLineBundleResidueContribution_globalFrame |
| 63 | (e : L.sheaf ≅ DivisorClass.Chern.Line.Bundles.Construction.structureModule X) (x : {x : X // coheight x = 1}) : |
| 64 | properLineBundleResidueContribution L a g hproper hNormal x = |
| 65 | ResidueCycleFamily.BundleCycles.normalResidueContribution X hNormal (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e) g x := by |
| 66 | let := hNormal x |
| 67 | by_cases ha : L.rationalSectionPointDivisorWithCoefficient a x = 0 |
| 68 | · rw [properLineBundleResidueContribution_zero_section L a g hproper hNormal x ha] |
| 69 | exact (RestrictionGlobalDivisor.Cycles.normalResidue_restrictedSection_globalFrame e a x x.property ha g).symm |
| 70 | · rw [properLineBundleResidueContribution_nonzero_section L a g hproper hNormal x ha] |
| 71 | have hg := properSection_function_order_zero L a g hproper x ha |
| 72 | change _ = Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm x.val) |
| 73 | (Normal.PointResidue.BundleCycles.normalPointResidueFunction X x x.property (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e) g) |
| 74 | rw [Normal.ResidueDifference.BundleCycles.normalResidue_principal_swap X x x.property g (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e), |
| 75 | Normal.RationalRestrictionResidue.BundleCycles.normalResidue_principal_order_zero X x x.property g (a * GlobalCoordinate.Cycles.lineBundleGlobalRationalCoefficient e) hg, |
| 76 | GlobalDivisor.Cycles.lineBundleGlobal_section_order e a x] |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.ProperResidueContribution.Cycles |