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.GroupSchemes.CoordinatePoints |
| 2 | import OAI.AlgebraicGeometry.GroupSchemes.LocalObstruction |
| 3 | |
| 4 | /-! # Finite Algebra -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.GroupSchemes.FiniteAlgebra.EtaleFinite |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite algebras over an algebraically closed field and their rational points. -/ |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable (k A : Type u) [Field k] [IsAlgClosed k] [CommRing A] |
| 15 | [Algebra k A] [Module.Finite k A] |
| 16 | |
| 17 | /-- Every maximal ideal of a finite algebra over an algebraically closed field gives a k-point. -/ |
| 18 | def pointOfMaximal (I : MaximalSpectrum A) : A →ₐ[k] k := |
| 19 | (AlgEquiv.ofBijective (Algebra.ofId k (A ⧸ I.asIdeal)) |
| 20 | (IsAlgClosed.algebraMap_bijective_of_isIntegral (k := k))).symm.toAlgHom.comp |
| 21 | (Ideal.Quotient.mkₐ k I.asIdeal) |
| 22 | |
| 23 | /-- The point just constructed has the specified maximal ideal as kernel. -/ |
| 24 | theorem pointOfMaximal_ker (I : MaximalSpectrum A) : |
| 25 | RingHom.ker (pointOfMaximal k A I).toRingHom = I.asIdeal := by |
| 26 | let e := AlgEquiv.ofBijective (Algebra.ofId k (A ⧸ I.asIdeal)) |
| 27 | (IsAlgClosed.algebraMap_bijective_of_isIntegral (k := k)) |
| 28 | change RingHom.ker (e.symm.toRingEquiv.toRingHom.comp (Ideal.Quotient.mk I.asIdeal)) = _ |
| 29 | rw [RingHom.ker_comp_of_injective _ e.symm.injective, Ideal.mk_ker] |
| 30 | |
| 31 | /-- A finite algebra with an augmentation and a unique k-point is local. -/ |
| 32 | theorem isLocalRing_of_unique_point (ε : A →ₐ[k] k) |
| 33 | (hpoint : ∀ f : A →ₐ[k] k, f = ε) : IsLocalRing A := by |
| 34 | have : Nontrivial A := ε.toRingHom.domain_nontrivial |
| 35 | have : Subsingleton (MaximalSpectrum A) := ⟨by |
| 36 | intro I J |
| 37 | apply MaximalSpectrum.ext |
| 38 | rw [← pointOfMaximal_ker k A I, ← pointOfMaximal_ker k A J, |
| 39 | hpoint (pointOfMaximal k A I), hpoint (pointOfMaximal k A J)]⟩ |
| 40 | exact IsLocalRing.of_singleton_maximalSpectrum |
| 41 | |
| 42 | omit [IsAlgClosed k] in |
| 43 | /-- An augmentation is the only point of a local finite algebra. -/ |
| 44 | theorem point_eq_of_local [IsLocalRing A] (ε f : A →ₐ[k] k) : f = ε := by |
| 45 | ext x |
| 46 | have hn := LocalObstruction.FiniteEtale.nilpotent_of_augmentation_zero k A ε |
| 47 | (x - algebraMap k A (ε x)) (by simp) |
| 48 | have hz := (hn.map f).eq_zero |
| 49 | simpa [sub_eq_zero] using hz |
| 50 | |
| 51 | /-- A finite reduced algebra over an algebraically closed field is split étale. -/ |
| 52 | theorem split_of_reduced [IsReduced A] : Algebra.IsFiniteSplit k A := by |
| 53 | have : IsArtinianRing A := isArtinian_of_tower k inferInstance |
| 54 | let e : A ≃ₐ[k] (MaximalSpectrum A → k) := |
| 55 | ((IsArtinianRing.equivPi A).restrictScalars k).trans |
| 56 | (AlgEquiv.piCongrRight fun I => |
| 57 | (AlgEquiv.ofBijective (Algebra.ofId k (A ⧸ I.asIdeal)) |
| 58 | (IsAlgClosed.algebraMap_bijective_of_isIntegral (k := k))).symm) |
| 59 | exact Algebra.IsFiniteSplit.of_algEquiv e.symm |
| 60 | |
| 61 | omit [IsAlgClosed k] in |
| 62 | /-- A one-dimensional algebra is the base field and hence split. -/ |
| 63 | theorem split_of_rank_one (hdim : Module.finrank k A = 1) : Algebra.IsFiniteSplit k A := |
| 64 | Algebra.IsFiniteSplit.of_algEquiv (AlgEquiv.ofBijective (Algebra.ofId k A) |
| 65 | (Algebra.finrank_eq_one_iff_bijective_algebraMap.mp hdim)) |
| 66 | |
| 67 | /-- A point of a finite algebra in any domain factors uniquely through the algebraically closed base. -/ |
| 68 | theorem scalar_comp_bijective {S : Type*} [CommRing S] [IsDomain S] [Algebra k S] : |
| 69 | Function.Bijective ((Algebra.ofId k S).comp : (A →ₐ[k] k) → A →ₐ[k] S) := by |
| 70 | constructor |
| 71 | · intro f g h |
| 72 | ext x |
| 73 | apply (algebraMap k S).injective |
| 74 | exact AlgHom.congr_fun h x |
| 75 | · intro f |
| 76 | have : Module.Finite k f.range := Module.Finite.of_surjective f.rangeRestrict.toLinearMap |
| 77 | f.rangeRestrict_surjective |
| 78 | let e : k ≃ₐ[k] f.range := AlgEquiv.ofBijective (Algebra.ofId k f.range) |
| 79 | (IsAlgClosed.algebraMap_bijective_of_isIntegral (k := k)) |
| 80 | refine ⟨e.symm.toAlgHom.comp f.rangeRestrict, ?_⟩ |
| 81 | ext x |
| 82 | exact congrArg Subtype.val (e.apply_symm_apply (f.rangeRestrict x)) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.GroupSchemes.FiniteAlgebra.EtaleFinite |