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.ProperResidueContribution |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.RestrictionOpenCycle |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.RestrictionOpenDivisor |
| 4 | |
| 5 | /-! # Proper Residue Open -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.ProperResidueOpen.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # LineBundleCycles: each actual proper-intersection contribution commutes with open restriction -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 14 | |
| 15 | variable {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] |
| 16 | [AlgebraicGeometry.IsNoetherian X] [AlgebraicGeometry.IsNoetherian Y] |
| 17 | (L : LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle X) (i : Y ⟶ X) [IsOpenImmersion i] (a g : X.functionFieldˣ) |
| 18 | (hproper : Disjoint (L.rationalSectionPointDivisorWithCoefficient a).support (Ord.BundleCycles.principalDivisor X g.val).support) |
| 19 | |
| 20 | include hproper in |
| 21 | theorem openProperSection : |
| 22 | Disjoint ((L.pullback i).rationalSectionPointDivisorWithCoefficient (L.openPullbackSectionCoefficient i a)).support |
| 23 | (Ord.BundleCycles.principalDivisor Y (Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits i g).val).support := by |
| 24 | classical |
| 25 | apply Finset.disjoint_left.mpr |
| 26 | intro y ha hg |
| 27 | have he : (L.pullback i).rationalSectionPointDivisorWithCoefficient (L.openPullbackSectionCoefficient i a) y = |
| 28 | L.rationalSectionPointDivisorWithCoefficient a (i y) := |
| 29 | congrArg (fun D : Y →₀ ℤ => D y) (L.openPullback_section_divisor i a) |
| 30 | have hga : Y.ord (Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits i g).val y ≠ 0 := Finsupp.mem_support_iff.mp hg |
| 31 | have haa : L.rationalSectionPointDivisorWithCoefficient a (i y) ≠ 0 := |
| 32 | fun hz => (Finsupp.mem_support_iff.mp ha) (he.trans hz) |
| 33 | exact hga ((Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits_order i g y).trans (ProperResidueContribution.Cycles.properSection_function_order_zero L a g hproper (i y) haa)) |
| 34 | |
| 35 | variable (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 36 | (hNormalY : ∀ y : Y, IsIntegrallyClosed (Y.presheaf.stalk y)) |
| 37 | |
| 38 | theorem properLineBundleResidueContribution_open (y : {y : Y // coheight y = 1}) : |
| 39 | Finsupp.comapDomain i |
| 40 | (ProperResidueContribution.Cycles.properLineBundleResidueContribution L a g hproper hNormal |
| 41 | ⟨i y, (coheight_eq_of_isOpenImmersion i).trans y.property⟩) i.isOpenEmbedding.injective.injOn = |
| 42 | ProperResidueContribution.Cycles.properLineBundleResidueContribution (L.pullback i) (L.openPullbackSectionCoefficient i a) |
| 43 | (Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits i g) (openProperSection L i a g hproper) hNormalY y := by |
| 44 | let := hNormal (i y) |
| 45 | let := hNormalY y |
| 46 | let x : {x : X // coheight x = 1} := ⟨i y, (coheight_eq_of_isOpenImmersion i).trans y.property⟩ |
| 47 | let C : (X →₀ ℚ) →+ (Y →₀ ℚ) := Finsupp.comapDomain.addMonoidHom i.isOpenEmbedding.injective |
| 48 | let b := L.openPullbackSectionCoefficient i a |
| 49 | let k := Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits i g |
| 50 | let hp := openProperSection L i a g hproper |
| 51 | have he : (L.pullback i).rationalSectionPointDivisorWithCoefficient b y = |
| 52 | L.rationalSectionPointDivisorWithCoefficient a (i y) := |
| 53 | congrArg (fun D : Y →₀ ℤ => D y) (L.openPullback_section_divisor i a) |
| 54 | change C (ProperResidueContribution.Cycles.properLineBundleResidueContribution L a g hproper hNormal x) = _ |
| 55 | by_cases ha : L.rationalSectionPointDivisorWithCoefficient a (i y) = 0 |
| 56 | · have ha' := he.trans ha |
| 57 | have hs := RestrictionOpenCycle.Cycles.restrictedRationalSectionPointCycle_open L i y a x.property y.property ha ha' |
| 58 | rw [ProperResidueContribution.Cycles.properLineBundleResidueContribution_zero_section L a g hproper hNormal x ha, |
| 59 | ProperResidueContribution.Cycles.properLineBundleResidueContribution_zero_section (L.pullback i) b k hp hNormalY y ha', map_zsmul] |
| 60 | exact congrArg₂ (fun n : ℤ => fun z : Y →₀ ℚ => n • z) |
| 61 | (Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits_order i g y).symm hs.symm |
| 62 | · have ha' : (L.pullback i).rationalSectionPointDivisorWithCoefficient b y ≠ 0 := |
| 63 | fun hz => ha (he.symm.trans hz) |
| 64 | have hg := ProperResidueContribution.Cycles.properSection_function_order_zero L a g hproper (i y) ha |
| 65 | have hg' := ProperResidueContribution.Cycles.properSection_function_order_zero (L.pullback i) b k hp y ha' |
| 66 | have hs := Normal.RestrictionOpenDivisor.BundleCycles.normalRationalRestriction_principal_open i y x.property y.property g hg hg' |
| 67 | rw [ProperResidueContribution.Cycles.properLineBundleResidueContribution_nonzero_section L a g hproper hNormal x ha, |
| 68 | ProperResidueContribution.Cycles.properLineBundleResidueContribution_nonzero_section (L.pullback i) b k hp hNormalY y ha', map_neg, map_zsmul] |
| 69 | exact congrArg Neg.neg (congrArg₂ (fun n : ℤ => fun z : Y →₀ ℚ => n • z) he.symm hs) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.ProperResidueOpen.Cycles |