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.ProperResidueOpen |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.ProperResidueSupport |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.FamilyReindex |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.FamilyMap |
| 5 | |
| 6 | /-! # Proper Residue Open Family -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.ProperResidueOpenFamily.Cycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! # LineBundleCycles: the entire actual finite proper-intersection difference commutes with open restriction -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 15 | |
| 16 | variable {X Y : Scheme.{0}} (i : Y ⟶ X) [IsOpenImmersion i] |
| 17 | |
| 18 | def openCodimensionOneEmbedding : {y : Y // coheight y = 1} ↪ {x : X // coheight x = 1} where |
| 19 | toFun y := ⟨i y, (coheight_eq_of_isOpenImmersion i).trans y.property⟩ |
| 20 | inj' _ _ h := Subtype.ext (i.isOpenEmbedding.injective (congrArg Subtype.val h)) |
| 21 | |
| 22 | def openPointCycleRestriction : (X →₀ ℚ) →+ (Y →₀ ℚ) := |
| 23 | Finsupp.comapDomain.addMonoidHom i.isOpenEmbedding.injective |
| 24 | |
| 25 | variable [IsIntegral X] [IsIntegral Y] |
| 26 | [AlgebraicGeometry.IsNoetherian X] [AlgebraicGeometry.IsNoetherian Y] |
| 27 | (L : LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle X) (a g : X.functionFieldˣ) |
| 28 | (hproper : Disjoint (L.rationalSectionPointDivisorWithCoefficient a).support (Ord.BundleCycles.principalDivisor X g.val).support) |
| 29 | (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 30 | (hNormalY : ∀ y : Y, IsIntegrallyClosed (Y.presheaf.stalk y)) |
| 31 | |
| 32 | def openRestrictedProperResidueFamily : {x : X // coheight x = 1} →₀ (Y →₀ ℚ) := |
| 33 | (ProperResidueFamily.Cycles.properLineBundleResidueFamily L a g hproper hNormal).mapRange |
| 34 | (openPointCycleRestriction i) (openPointCycleRestriction i).map_zero |
| 35 | |
| 36 | theorem openRestrictedProperResidueFamily_comap : |
| 37 | Finsupp.comapDomain (openCodimensionOneEmbedding i) |
| 38 | (openRestrictedProperResidueFamily i L a g hproper hNormal) |
| 39 | (openCodimensionOneEmbedding i).injective.injOn = |
| 40 | ProperResidueFamily.Cycles.properLineBundleResidueFamily (L.pullback i) (L.openPullbackSectionCoefficient i a) |
| 41 | (Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits i g) (ProperResidueOpen.Cycles.openProperSection L i a g hproper) hNormalY := by |
| 42 | ext y z |
| 43 | exact congrArg (fun c : Y →₀ ℚ => c z) |
| 44 | (ProperResidueOpen.Cycles.properLineBundleResidueContribution_open L i a g hproper hNormal hNormalY y) |
| 45 | |
| 46 | omit hNormalY [IsIntegral Y] [AlgebraicGeometry.IsNoetherian Y] in |
| 47 | theorem openRestrictedProperResidueFamily_support : |
| 48 | ((openRestrictedProperResidueFamily i L a g hproper hNormal).support : Set {x : X // coheight x = 1}) ⊆ |
| 49 | Set.range (openCodimensionOneEmbedding i) := by |
| 50 | intro x hx |
| 51 | have him : x.val ∈ Set.range i := by |
| 52 | by_contra hn |
| 53 | exact (Finsupp.mem_support_iff.mp hx) |
| 54 | (ProperResidueSupport.Cycles.properLineBundleResidueContribution_open_off_image i L a g hproper hNormal x hn) |
| 55 | obtain ⟨y, hy⟩ := him |
| 56 | have hc : coheight y = 1 := (coheight_eq_of_isOpenImmersion i).symm.trans |
| 57 | ((congrArg coheight hy).trans x.property) |
| 58 | exact ⟨⟨y, hc⟩, Subtype.ext hy⟩ |
| 59 | |
| 60 | theorem properLineBundleResidueCycle_open : |
| 61 | Finsupp.comapDomain i (ProperResidueFamily.Cycles.properLineBundleResidueCycle L a g hproper hNormal) i.isOpenEmbedding.injective.injOn = |
| 62 | ProperResidueFamily.Cycles.properLineBundleResidueCycle (L.pullback i) (L.openPullbackSectionCoefficient i a) |
| 63 | (Open.FunctionFieldUnits.BundleCycles.openFunctionFieldUnits i g) (ProperResidueOpen.Cycles.openProperSection L i a g hproper) hNormalY := by |
| 64 | let F := ProperResidueFamily.Cycles.properLineBundleResidueFamily L a g hproper hNormal |
| 65 | let C := openPointCycleRestriction i |
| 66 | let G := openRestrictedProperResidueFamily i L a g hproper hNormal |
| 67 | have hm := Finite.FamilyMap.BundleCycles.finiteFamily_sum_map F C |
| 68 | have hs := Finite.FamilyReindex.BundleCycles.finiteFamily_sum_comap (openCodimensionOneEmbedding i) G |
| 69 | (openRestrictedProperResidueFamily_support i L a g hproper hNormal) |
| 70 | have he := openRestrictedProperResidueFamily_comap i L a g hproper hNormal hNormalY |
| 71 | change C (F.sum (fun _ m => m)) = _ |
| 72 | exact hm.symm.trans (hs.trans (congrArg (fun f => f.sum (fun _ m => m)) he)) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.ProperResidueOpenFamily.Cycles |