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.AbelianModuli.HilbertConstruction.Tensor.SectionModules |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.FunctionsBaseChange |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RingPushoutTensorComparison |
| 4 | |
| 5 | /-! # Tensor Section Comparison -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.TensorSectionComparison |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The tensor comparison is bijective on affine opens after affine base change. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S X Y P : Scheme.{u}} |
| 18 | |
| 19 | def morphismGlobalAlgebra (g : Y ⟶ S) : CommAlgCat.{u} Γ(S, ⊤) := |
| 20 | letI := g.appTop.hom.toAlgebra |
| 21 | .of Γ(S, ⊤) Γ(Y, ⊤) |
| 22 | |
| 23 | theorem cartesianGlobalCoefficient_compatibility |
| 24 | {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ S} {g : Y ⟶ S} (H : IsPullback a b f g) : |
| 25 | b.appTop.hom.comp (algebraMap Γ(S, ⊤) (morphismGlobalAlgebra g)) = |
| 26 | a.appTop.hom.comp f.appTop.hom := by |
| 27 | have h := congrArg (fun k : P ⟶ S => k.appTop) H.w |
| 28 | simp only [Scheme.Hom.comp_appTop] at h |
| 29 | exact congrArg CommRingCat.Hom.hom h.symm |
| 30 | |
| 31 | def baseChangeTensorSectionComparison |
| 32 | {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ S} {g : Y ⟶ S} (H : IsPullback a b f g) := |
| 33 | Tensor.SectionModules.tensorSectionModuleComparison a f.appTop.hom (morphismGlobalAlgebra g) b.appTop.hom |
| 34 | (cartesianGlobalCoefficient_compatibility H) |
| 35 | |
| 36 | theorem affineOpen_tensorComparison_bijective [IsAffine S] [IsAffine Y] |
| 37 | {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ S} {g : Y ⟶ S} |
| 38 | (H : IsPullback a b f g) (U : X.Opens) (hU : IsAffineOpen U) : |
| 39 | Function.Bijective ((baseChangeTensorSectionComparison H).app (.op U)) := by |
| 40 | let B := morphismGlobalAlgebra g |
| 41 | let A := Coefficient.AlgebraPresheaf.coefficientAlgebraSections f.appTop.hom U |
| 42 | let C := Coefficient.AlgebraPresheaf.coefficientAlgebraSections (a.appTop.hom.comp f.appTop.hom) (a ⁻¹ᵁ U) |
| 43 | let i : B →ₐ[Γ(S, ⊤)] C := |
| 44 | (Coefficient.AlgebraPullback.coefficientAlgebraGlobalRestriction _ B b.appTop.hom |
| 45 | (cartesianGlobalCoefficient_compatibility H) (a ⁻¹ᵁ U)).hom |
| 46 | let j : A →ₐ[Γ(S, ⊤)] C := (Coefficient.AlgebraPullback.coefficientAlgebraPullbackApp a f.appTop.hom U).hom |
| 47 | have h : IsPushout (CommRingCat.ofHom (algebraMap Γ(S, ⊤) B)) |
| 48 | (CommRingCat.ofHom (algebraMap Γ(S, ⊤) A)) |
| 49 | (CommRingCat.ofHom i.toRingHom) (CommRingCat.ofHom j.toRingHom) := |
| 50 | (Open.FunctionsBaseChange.affineOpen_isPushout_functions H U hU).flip |
| 51 | exact RingPushoutTensorComparison.tensorLift_bijective_of_isPushout i j h |
| 52 | |
| 53 | theorem affineOpen_tensorComparison_isIso [IsAffine S] [IsAffine Y] |
| 54 | {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ S} {g : Y ⟶ S} |
| 55 | (H : IsPullback a b f g) (U : X.Opens) (hU : IsAffineOpen U) : |
| 56 | IsIso ((baseChangeTensorSectionComparison H).app (.op U)) := |
| 57 | (ConcreteCategory.isIso_iff_bijective _).mpr (affineOpen_tensorComparison_bijective H U hU) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.TensorSectionComparison |