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.ArithmeticGeometry.Descent.CMVariety.GeometricPrincipalCoefficients |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Coefficient.OpenImmersionStages |
| 3 | import OAI.ArithmeticGeometry.Models.SpreadingOut.SmoothGeometricIntegrality |
| 4 | |
| 5 | /-! # Good Open Coefficient Models -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.GoodOpenCoefficientModels.Abelian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A smooth geometrically irreducible scheme has a dense affine open |
| 12 | with a geometrically integral coefficient model. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | open OAI.ArithmeticGeometry.Models.SpreadingOut.SmoothGeometricIntegrality.Construction OAI.AlgebraicGeometry.PELModuli.IntegralModel.Coefficient.OpenImmersionStages.Coefficients |
| 18 | |
| 19 | def affineLocalizationInclusion |
| 20 | (K A : Type) [Field K] [CommRing A] [Algebra K A] (b : A) : |
| 21 | Models.SpreadingOut.Affine.Construction.affineOver K (Localization.Away b) ⟶ Models.SpreadingOut.Affine.Construction.affineOver K A := |
| 22 | Over.homMk (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away b)))) (by |
| 23 | change Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away b))) ≫ |
| 24 | Spec.map (CommRingCat.ofHom (algebraMap K A)) = |
| 25 | Spec.map (CommRingCat.ofHom (algebraMap K (Localization.Away b))) |
| 26 | rw [← Spec.map_comp] |
| 27 | congr 1) |
| 28 | |
| 29 | instance affineLocalizationInclusion_open |
| 30 | (K A : Type) [Field K] [CommRing A] [Algebra K A] (b : A) : |
| 31 | IsOpenImmersion (affineLocalizationInclusion K A b).left := |
| 32 | IsOpenImmersion.of_isLocalization b |
| 33 | |
| 34 | theorem good_open_model_from_affine_open |
| 35 | (R K A : Type) [CommRing R] [Field K] [IsAlgClosed K] [CharZero K] [Algebra R K] |
| 36 | [CommRing A] [IsDomain A] [Algebra K A] [Algebra.FiniteType K A] |
| 37 | (X : Over (Spec (.of K))) [Smooth X.hom] [IsIntegral X.left] |
| 38 | (j : Models.SpreadingOut.Affine.Construction.affineOver K A ⟶ X) [IsOpenImmersion j.left] : |
| 39 | ∃ (W : Over (Spec (.of K))) (f : W ⟶ X) (M : AlgebraicGeometry.PELModuli.IntegralModel.Coefficient.Models.Coefficients.CoefficientModel R K W), |
| 40 | IsAffine W.left ∧ IsOpenImmersion f.left ∧ IsDominant f.left ∧ |
| 41 | GeometricallyConnected M.model.hom ∧ GeometricallyIrreducible M.model.hom := by |
| 42 | obtain ⟨b, hb, M, hconn, hirr⟩ := GeometricPrincipalCoefficients.Abelian.geometrically_integral_affine_has_geometric_principal_model R K A |
| 43 | let W := Models.SpreadingOut.Affine.Construction.affineOver K (Localization.Away b) |
| 44 | let f : W ⟶ X := affineLocalizationInclusion K A b ≫ j |
| 45 | have : IsDomain (Localization.Away b) := Localization.Away.isDomain hb |
| 46 | have : Nonempty W.left := inferInstanceAs (Nonempty (Spec (.of (Localization.Away b)))) |
| 47 | have : IsOpenImmersion f.left := inferInstanceAs |
| 48 | (IsOpenImmersion ((affineLocalizationInclusion K A b).left ≫ j.left)) |
| 49 | have hdom : IsDominant f.left := by |
| 50 | rw [isDominant_iff, DenseRange] |
| 51 | exact f.left.isOpenEmbedding.isOpen_range.dense (Set.range_nonempty _) |
| 52 | exact ⟨W, f, M, inferInstanceAs (IsAffine (Spec (.of (Localization.Away b)))), |
| 53 | inferInstance, hdom, hconn, hirr⟩ |
| 54 | |
| 55 | theorem smooth_integral_has_good_open_coefficient_model |
| 56 | (R K : Type) [CommRing R] [Field K] [IsAlgClosed K] [CharZero K] [Algebra R K] |
| 57 | (X : Over (Spec (.of K))) [Smooth X.hom] [IsIntegral X.left] : |
| 58 | ∃ (W : Over (Spec (.of K))) (f : W ⟶ X) (M : AlgebraicGeometry.PELModuli.IntegralModel.Coefficient.Models.Coefficients.CoefficientModel R K W), |
| 59 | IsAffine W.left ∧ IsOpenImmersion f.left ∧ IsDominant f.left ∧ |
| 60 | GeometricallyConnected M.model.hom ∧ GeometricallyIrreducible M.model.hom := by |
| 61 | classical |
| 62 | let x : X.left := Classical.choice inferInstance |
| 63 | obtain ⟨_, ⟨U, hU, rfl⟩, hxU, -⟩ := |
| 64 | X.left.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ x) isOpen_univ |
| 65 | let V : X.left.Opens := U |
| 66 | let Y := Models.SpreadingOut.OpenOver.Construction.overOpen X V |
| 67 | have : IsAffine Y.left := hU |
| 68 | have : Nonempty V.toScheme := ⟨⟨x, hxU⟩⟩ |
| 69 | have hVI : IsIntegral V.toScheme := isIntegral_of_isOpenImmersion V.ι |
| 70 | have : IsIntegral Y.left := hVI |
| 71 | obtain ⟨φ, hφ⟩ := Spec.map_surjective (Y.left.isoSpec.inv ≫ Y.hom) |
| 72 | let A := Γ(Y.left, ⊤) |
| 73 | let : Algebra K A := φ.hom.toAlgebra |
| 74 | let e : Y ≅ Models.SpreadingOut.Affine.Construction.affineOver K A := Over.isoMk Y.left.isoSpec (by |
| 75 | change Y.left.isoSpec.hom ≫ Spec.map φ = Y.hom |
| 76 | rw [hφ, Iso.hom_inv_id_assoc]) |
| 77 | let j : Models.SpreadingOut.Affine.Construction.affineOver K A ⟶ X := e.inv ≫ Models.SpreadingOut.OpenOver.Construction.overOpenInclusion X V |
| 78 | have : IsIso e.inv.left := inferInstanceAs (IsIso ((Over.forget _).map e.inv)) |
| 79 | have : IsOpenImmersion j.left := inferInstanceAs |
| 80 | (IsOpenImmersion (e.inv.left ≫ (Models.SpreadingOut.OpenOver.Construction.overOpenInclusion X V).left)) |
| 81 | have hs : Smooth (Models.SpreadingOut.Affine.Construction.affineOver K A).hom := by |
| 82 | rw [← j.w] |
| 83 | infer_instance |
| 84 | have hfp : LocallyOfFinitePresentation (Spec.map (CommRingCat.ofHom (algebraMap K A))) := |
| 85 | inferInstanceAs (LocallyOfFinitePresentation (Models.SpreadingOut.Affine.Construction.affineOver K A).hom) |
| 86 | have : Algebra.FinitePresentation K A := (LocallyOfFinitePresentation.SpecMap_iff _).mp hfp |
| 87 | have : Algebra.FiniteType K A := inferInstance |
| 88 | exact good_open_model_from_affine_open R K A X j |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.ArithmeticGeometry.Descent.CMVariety.GoodOpenCoefficientModels.Abelian |