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 Mathlib.Algebra.Category.Ring.FilteredColimits |
| 2 | import Mathlib.Algebra.Category.Ring.Colimits |
| 3 | import Mathlib.CategoryTheory.Limits.Types.Filtered |
| 4 | import Mathlib.CategoryTheory.Category.Preorder |
| 5 | import Mathlib.RingTheory.FiniteType |
| 6 | |
| 7 | /-! # Coefficient Diagram -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Finite.CoefficientDiagram |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Every coefficient algebra is the actual filtered colimit of the |
| 14 | subalgebras generated by its finite sets of elements. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | |
| 18 | universe u |
| 19 | variable (k R : Type u) [CommRing k] [CommRing R] [Algebra k R] |
| 20 | |
| 21 | def finiteCoefficientRing (s : Finset R) : Subalgebra k R := Algebra.adjoin k (s : Set R) |
| 22 | |
| 23 | instance finiteCoefficientRing_finiteType (s : Finset R) : |
| 24 | Algebra.FiniteType k (finiteCoefficientRing k R s) := |
| 25 | Algebra.FiniteType.adjoin_of_finite s.finite_toSet |
| 26 | |
| 27 | instance finiteCoefficientRing_noetherian [IsNoetherianRing k] (s : Finset R) : |
| 28 | IsNoetherianRing (finiteCoefficientRing k R s) := Algebra.FiniteType.isNoetherianRing k _ |
| 29 | |
| 30 | def finiteCoefficientDiagram : Finset R ⥤ CommRingCat.{u} where |
| 31 | obj s := .of (finiteCoefficientRing k R s) |
| 32 | map {s t} f := CommRingCat.ofHom (Subalgebra.inclusion |
| 33 | (Algebra.adjoin_mono (show (s : Set R) ⊆ (t : Set R) from leOfHom f))).toRingHom |
| 34 | map_id _ := by ext; rfl |
| 35 | map_comp _ _ := by ext; rfl |
| 36 | |
| 37 | def finiteCoefficientCocone : Cocone (finiteCoefficientDiagram k R) where |
| 38 | pt := .of R |
| 39 | ι := { |
| 40 | app s := CommRingCat.ofHom (finiteCoefficientRing k R s).val.toRingHom |
| 41 | naturality := by intro s t f; ext; rfl } |
| 42 | |
| 43 | def finiteCoefficientCocone_isColimit : IsColimit (finiteCoefficientCocone k R) := by |
| 44 | classical |
| 45 | let : ReflectsColimit (finiteCoefficientDiagram k R) (forget CommRingCat) := |
| 46 | reflectsColimit_of_reflectsIsomorphisms _ _ |
| 47 | apply isColimitOfReflects (forget CommRingCat) |
| 48 | apply Types.FilteredColimit.isColimitOf' |
| 49 | · intro x |
| 50 | change R at x |
| 51 | refine ⟨{x}, ⟨x, Algebra.subset_adjoin (Finset.mem_singleton_self x)⟩, rfl⟩ |
| 52 | · intro i x y h |
| 53 | refine ⟨i, 𝟙 i, ?_⟩ |
| 54 | exact Subtype.ext h |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Finite.CoefficientDiagram |