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