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.Quotients.FiniteDescent.DenominatorLine |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.FractionalIdealFrame |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.InverseIdealEq |
| 4 | |
| 5 | /-! # Pole Line -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.PoleLine.Construction.PoleLineBundle |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The line bundle of rational functions with poles bounded by a given rational function. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {X : Scheme.{u}} [IsIntegral X] |
| 18 | |
| 19 | def stalkModules (r : X.functionField) (x : X) : |
| 20 | Submodule (X.presheaf.stalk x) X.functionField := |
| 21 | InverseIdealEq.Construction.InverseIdeal.module (DenominatorLine.Construction.DenominatorLineBundle.stalkIdeals r x) |
| 22 | |
| 23 | theorem generator (r : X.functionField) (U : X.affineOpens) [Nonempty U.1] |
| 24 | (a : Γ(X, U)) (ha : (DenominatorSheafEq.Construction.DenominatorSheaf.data r).ideal U = Ideal.span {a}) (x : U.1) : |
| 25 | stalkModules r x = Submodule.span (X.presheaf.stalk x) {(X.germToFunctionField U.1 a)⁻¹} := by |
| 26 | have hne : X.germToFunctionField U.1 a ≠ 0 := by |
| 27 | simpa only [map_zero] using (X.germToFunctionField_injective U.1).ne |
| 28 | (DenominatorLine.Construction.DenominatorLineBundle.generator_ne_zero r U a ha) |
| 29 | change InverseIdealEq.Construction.InverseIdeal.module (DenominatorLine.Construction.DenominatorLineBundle.stalkIdeals r x) = _ |
| 30 | rw [DenominatorLine.Construction.DenominatorLineBundle.stalk_generator r U a ha x] |
| 31 | have hne' : algebraMap (X.presheaf.stalk x) X.functionField |
| 32 | (X.presheaf.germ U.1 x x.2 a) ≠ 0 := by |
| 33 | rwa [X.algebraMap_germ_eq_germToFunctionField] |
| 34 | rw [InverseIdealEq.Construction.InverseIdeal.span_eq _ hne', X.algebraMap_germ_eq_germToFunctionField] |
| 35 | |
| 36 | def lineBundle {K : Type u} [Field K] [IsAlgClosed K] |
| 37 | (f : X ⟶ Spec (.of K)) [Smooth f] (r : X.functionField) : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X where |
| 38 | sheaf := FractionalIdealIs.Construction.FractionalIdealSheaf.sheaf (stalkModules r) |
| 39 | locallyTrivial x := by |
| 40 | obtain ⟨U, hxU, a, ha⟩ := DenominatorNeighborhoodLe.Construction.DenominatorNeighborhood.exists_principal f r x |
| 41 | have : Nonempty U.1 := ⟨⟨x, hxU⟩⟩ |
| 42 | change (DenominatorSheafEq.Construction.DenominatorSheaf.data r).ideal U = Ideal.span {a} at ha |
| 43 | have hne : (X.germToFunctionField U.1 a)⁻¹ ≠ 0 := inv_ne_zero (by |
| 44 | simpa only [map_zero] using (X.germToFunctionField_injective U.1).ne |
| 45 | (DenominatorLine.Construction.DenominatorLineBundle.generator_ne_zero r U a ha)) |
| 46 | have hmem (y : U.1) : (X.germToFunctionField U.1 a)⁻¹ ∈ stalkModules r y := by |
| 47 | rw [generator r U a ha y] |
| 48 | exact Submodule.mem_span_singleton_self _ |
| 49 | exact ⟨U.1, hxU, ⟨FractionalIdealFrame.Construction.FractionalIdealFrames.frameIso (stalkModules r) U.1 _ hmem hne |
| 50 | (generator r U a ha)⟩⟩ |
| 51 | |
| 52 | def canonicalSection {K : Type u} [Field K] [IsAlgClosed K] |
| 53 | (f : X ⟶ Spec (.of K)) [Smooth f] (r : X.functionField) : |
| 54 | AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X ⟶ (lineBundle f r).sheaf where |
| 55 | val.app U := ModuleCat.ofHom (R := Γ(X, U.unop)) (X := Γ(X, U.unop)) |
| 56 | (Y := Γ(FractionalIdealIs.Construction.FractionalIdealSheaf.sheaf (stalkModules r), U.unop)) |
| 57 | (FractionalIdealFrame.Construction.FractionalIdealFrames.multiply (stalkModules r) (show U.unop ≤ ⊤ from le_top) 1 |
| 58 | (fun x => InverseIdealEq.Construction.InverseIdeal.one_mem _)) |
| 59 | val.naturality {U V} h := by |
| 60 | apply ModuleCat.hom_ext |
| 61 | apply LinearMap.ext |
| 62 | intro s |
| 63 | change Γ(X, U.unop) at s |
| 64 | exact (FractionalIdealFrame.Construction.FractionalIdealFrames.multiply_natural (stalkModules r) |
| 65 | (show U.unop ≤ ⊤ from le_top) h.unop.le 1 (fun x => InverseIdealEq.Construction.InverseIdeal.one_mem _) s).symm |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.PoleLine.Construction.PoleLineBundle |