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.AbelianScheme.TateComparison.FormConstants |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.DifferentialScalarMap |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemeAffineCover |
| 4 | import Mathlib.RingTheory.Etale.Kaehler |
| 5 | import Mathlib.RingTheory.LocalProperties.Submodule |
| 6 | |
| 7 | /-! # Forms Affine Locality -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FormsAffineLocality |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! Actual affine-test one-forms are determined by their values on the |
| 16 | affine opens of the target, including on nonreduced test algebras. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 19 | |
| 20 | variable {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 21 | |
| 22 | theorem oneForm_localRing_zero (ω : FormConstants.OneForms X) |
| 23 | (hω : ∀ (U : X.left.Opens) (hU : IsAffineOpen U), |
| 24 | ω.val (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) |
| 25 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU) = 0) |
| 26 | (R : CommAlgCat.{0} ℂ) [IsLocalRing R] (x : FormConstants.affineComplexTest R ⟶ X) : ω.val R x = 0 := by |
| 27 | obtain ⟨U, hU, hxU, _⟩ := exists_isAffineOpen_mem_and_subset |
| 28 | (Opens.mem_top (x.left (IsLocalRing.closedPoint R))) |
| 29 | let S := ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U |
| 30 | let i : FormConstants.affineComplexTest S ⟶ X := ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU |
| 31 | have : IsOpenImmersion i.left := by |
| 32 | change IsOpenImmersion hU.fromSpec |
| 33 | infer_instance |
| 34 | have hr : Set.range x.left ⊆ Set.range i.left := by |
| 35 | rintro _ ⟨p, rfl⟩ |
| 36 | change x.left p ∈ Set.range hU.fromSpec |
| 37 | rw [hU.range_fromSpec] |
| 38 | exact ((IsLocalRing.specializes_closedPoint p).map x.left.continuous).mem_open U.isOpen hxU |
| 39 | let l := IsOpenImmersion.lift i.left x.left hr |
| 40 | have hl : l ≫ i.left = x.left := IsOpenImmersion.lift_fac _ _ _ |
| 41 | let z : FormConstants.affineComplexTest R ⟶ FormConstants.affineComplexTest S := Over.homMk l (by |
| 42 | rw [← i.w, ← Category.assoc, hl] |
| 43 | exact x.w) |
| 44 | have hz : z ≫ i = x := Over.OverMorphism.ext hl |
| 45 | obtain ⟨f, hf⟩ := DifferentialScalarMap.affineComplexMap_surjective S R z |
| 46 | have hn := ω.property S R f i |
| 47 | rw [hf, hz, hω U hU, map_zero] at hn |
| 48 | exact hn.symm |
| 49 | |
| 50 | theorem oneForm_eq_zero_of_affineOpens (ω : FormConstants.OneForms X) |
| 51 | (hω : ∀ (U : X.left.Opens) (hU : IsAffineOpen U), |
| 52 | ω.val (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) |
| 53 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU) = 0) : ω = 0 := by |
| 54 | apply Subtype.ext |
| 55 | funext R x |
| 56 | let M : ∀ (P : Ideal R) [P.IsMaximal], Type := fun P _ => KaehlerDifferential ℂ (Localization.AtPrime P) |
| 57 | let f : ∀ (P : Ideal R) [P.IsMaximal], KaehlerDifferential ℂ R →ₗ[R] M P := |
| 58 | fun P _ => KaehlerDifferential.map ℂ ℂ R (Localization.AtPrime P) |
| 59 | apply Module.eq_zero_of_localization_maximal M f (ω.val R x) |
| 60 | intro P _ |
| 61 | let S : CommAlgCat.{0} ℂ := CommAlgCat.of ℂ (Localization.AtPrime P) |
| 62 | let g : R ⟶ S := CommAlgCat.ofHom (IsScalarTower.toAlgHom ℂ R (Localization.AtPrime P)) |
| 63 | exact (DifferentialScalarMap.differentialMap_algebra R S (ω.val R x)).symm.trans |
| 64 | ((ω.property R S g x).trans (oneForm_localRing_zero ω hω S (FormConstants.affineComplexMap g ≫ x))) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | /-! Actual affine-test forms satisfy uniqueness on every open cover. -/ |
| 69 | |
| 70 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 71 | |
| 72 | variable {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 73 | |
| 74 | theorem oneForm_eq_zero_of_localRings (ω : FormConstants.OneForms X) |
| 75 | (hω : ∀ (R : CommAlgCat.{0} ℂ) [IsLocalRing R] (x : FormConstants.affineComplexTest R ⟶ X), |
| 76 | ω.val R x = 0) : ω = 0 := by |
| 77 | apply Subtype.ext |
| 78 | funext R x |
| 79 | let M : ∀ (P : Ideal R) [P.IsMaximal], Type := fun P _ => KaehlerDifferential ℂ (Localization.AtPrime P) |
| 80 | let f : ∀ (P : Ideal R) [P.IsMaximal], KaehlerDifferential ℂ R →ₗ[R] M P := |
| 81 | fun P _ => KaehlerDifferential.map ℂ ℂ R (Localization.AtPrime P) |
| 82 | apply Module.eq_zero_of_localization_maximal M f (ω.val R x) |
| 83 | intro P _ |
| 84 | let S : CommAlgCat.{0} ℂ := CommAlgCat.of ℂ (Localization.AtPrime P) |
| 85 | let g : R ⟶ S := CommAlgCat.ofHom (IsScalarTower.toAlgHom ℂ R (Localization.AtPrime P)) |
| 86 | exact (DifferentialScalarMap.differentialMap_algebra R S (ω.val R x)).symm.trans |
| 87 | ((ω.property R S g x).trans (hω S (FormConstants.affineComplexMap g ≫ x))) |
| 88 | |
| 89 | theorem formsPullback_openCover_injective {I : Type*} (Y : I → Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 90 | (i : ∀ j, Y j ⟶ X) (hi : ∀ j, IsOpenImmersion (i j).left) |
| 91 | (hcover : ∀ p : X.left, ∃ j, p ∈ Set.range (i j).left) |
| 92 | (ω η : FormConstants.OneForms X) (h : ∀ j, FormConstants.formsPullback (i j) ω = FormConstants.formsPullback (i j) η) : ω = η := by |
| 93 | apply sub_eq_zero.mp |
| 94 | apply oneForm_eq_zero_of_localRings (ω - η) |
| 95 | intro R _ x |
| 96 | obtain ⟨j, hj⟩ := hcover (x.left (IsLocalRing.closedPoint R)) |
| 97 | have : IsOpenImmersion (i j).left := hi j |
| 98 | have hr : Set.range x.left ⊆ Set.range (i j).left := by |
| 99 | rintro _ ⟨p, rfl⟩ |
| 100 | exact ((IsLocalRing.specializes_closedPoint p).map x.left.continuous).mem_open |
| 101 | (i j).left.isOpenEmbedding.isOpen_range hj |
| 102 | let l := IsOpenImmersion.lift (i j).left x.left hr |
| 103 | have hl : l ≫ (i j).left = x.left := IsOpenImmersion.lift_fac _ _ _ |
| 104 | let z : FormConstants.affineComplexTest R ⟶ Y j := Over.homMk l (by |
| 105 | rw [← (i j).w, ← Category.assoc, hl] |
| 106 | exact x.w) |
| 107 | have hz : z ≫ i j = x := Over.OverMorphism.ext hl |
| 108 | have he := congrArg (fun a : FormConstants.OneForms (Y j) => a.val R z) (h j) |
| 109 | change ω.val R (z ≫ i j) = η.val R (z ≫ i j) at he |
| 110 | rw [hz] at he |
| 111 | exact sub_eq_zero.mpr he |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FormsAffineLocality |