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.Affine.TensorSectionComparison |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CoverTensorComparison |
| 3 | |
| 4 | /-! # Global Tensor Comparison -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.GlobalTensorComparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flat affine base change commutes with global functions on a quasi-compact scheme |
| 11 | with affine diagonal. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S X Y P : Scheme.{u}} [IsAffine S] [IsAffine Y] [CompactSpace X] |
| 18 | [IsAffineHom (pullback.diagonal (terminal.from X))] |
| 19 | |
| 20 | theorem flat_globalTensorComparison_isIso |
| 21 | {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ S} {g : Y ⟶ S} |
| 22 | (H : IsPullback a b f g) [Module.Flat Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra g)] : |
| 23 | IsIso ((Affine.TensorSectionComparison.baseChangeTensorSectionComparison H).app (.op ⊤)) := by |
| 24 | let C := X.affineCover.finiteSubcover |
| 25 | let U : C.I₀ → X.Opens := fun i => (C.f i).opensRange |
| 26 | have hU (i : C.I₀) : IsAffineOpen (U i) := by |
| 27 | have : IsAffine (C.X i) := by |
| 28 | change IsAffine (X.affineCover.X _) |
| 29 | infer_instance |
| 30 | exact isAffineOpen_opensRange (C.f i) |
| 31 | have hpair (i : Pairwise C.I₀) : |
| 32 | IsIso ((Affine.TensorSectionComparison.baseChangeTensorSectionComparison H).app (.op ((Pairwise.diagram U).obj i))) := by |
| 33 | apply Affine.TensorSectionComparison.affineOpen_tensorComparison_isIso H |
| 34 | cases i with |
| 35 | | single i => exact hU i |
| 36 | | pair i j => exact (hU i).inf (hU j) |
| 37 | have : Module.Flat Γ(S, ⊤) ((AlgebraSectionModules.commAlgToModules Γ(S, ⊤)).obj |
| 38 | (Affine.TensorSectionComparison.morphismGlobalAlgebra g)) := |
| 39 | (inferInstance : Module.Flat Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra g)) |
| 40 | have h := Finite.CoverTensorComparison.finiteCoverTensorComparison_isIso (AlgebraSectionModules.algebraSectionModulePresheaf f.appTop.hom) |
| 41 | (Tensor.SectionModules.inverseImageSectionModules a f.appTop.hom) (AlgebraSectionModules.algebraSectionModulePresheaf_isSheaf _) |
| 42 | (Tensor.SectionModules.inverseImageSectionModules_isSheaf _ _) ((AlgebraSectionModules.commAlgToModules Γ(S, ⊤)).obj |
| 43 | (Affine.TensorSectionComparison.morphismGlobalAlgebra g)) (Affine.TensorSectionComparison.baseChangeTensorSectionComparison H) U hpair |
| 44 | have htop : iSup U = ⊤ := C.iSup_opensRange |
| 45 | exact (congrArg (fun V : X.Opens => |
| 46 | IsIso ((Affine.TensorSectionComparison.baseChangeTensorSectionComparison H).app (.op V))) htop).mp h |
| 47 | |
| 48 | theorem flat_globalTensorComparison_bijective |
| 49 | {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ S} {g : Y ⟶ S} |
| 50 | (H : IsPullback a b f g) [Module.Flat Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra g)] : |
| 51 | Function.Bijective ((Affine.TensorSectionComparison.baseChangeTensorSectionComparison H).app (.op ⊤)) := by |
| 52 | have := flat_globalTensorComparison_isIso H |
| 53 | exact (ConcreteCategory.isIso_iff_bijective _).mp this |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.GlobalTensorComparison |