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.AbelianModuli.ReferenceFamily.Finite.CoefficientSpecLimit |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LimitBaseChange |
| 3 | |
| 4 | /-! # Coefficient Limit -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Finite.CoefficientLimit |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Constant families over arbitrary coefficient spectra are actual |
| 11 | inverse limits of their families over finite-type coefficient spectra. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable (k : Type u) [CommRing k] |
| 17 | |
| 18 | def algebraSpecOver (R : Type u) [CommRing R] [Algebra k R] : Over (Spec (.of k)) := |
| 19 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap k R))) |
| 20 | |
| 21 | def algebraSpecMap {R T : Type u} [CommRing R] [CommRing T] [Algebra k R] [Algebra k T] |
| 22 | (f : R →ₐ[k] T) : algebraSpecOver k T ⟶ algebraSpecOver k R := |
| 23 | Over.homMk (Spec.map (CommRingCat.ofHom f.toRingHom)) (by |
| 24 | change Spec.map (CommRingCat.ofHom f.toRingHom) ≫ |
| 25 | Spec.map (CommRingCat.ofHom (algebraMap k R)) = Spec.map (CommRingCat.ofHom (algebraMap k T)) |
| 26 | rw [← Spec.map_comp] |
| 27 | congr 1 |
| 28 | ext x |
| 29 | exact f.commutes x) |
| 30 | |
| 31 | variable (R : Type u) [CommRing R] [Algebra k R] |
| 32 | |
| 33 | def finiteCoefficientOverDiagram : (Finset R)ᵒᵖ ⥤ Over (Spec (.of k)) where |
| 34 | obj s := algebraSpecOver k (CoefficientDiagram.finiteCoefficientRing k R s.unop) |
| 35 | map {s t} f := algebraSpecMap k (Subalgebra.inclusion |
| 36 | (Algebra.adjoin_mono (show (t.unop : Set R) ⊆ (s.unop : Set R) from leOfHom f.unop))) |
| 37 | map_id s := by |
| 38 | apply Over.OverMorphism.ext |
| 39 | change Spec.map (𝟙 (.of (CoefficientDiagram.finiteCoefficientRing k R s.unop))) = 𝟙 _ |
| 40 | exact Spec.map_id _ |
| 41 | map_comp f g := by |
| 42 | apply Over.OverMorphism.ext |
| 43 | dsimp only [algebraSpecMap] |
| 44 | change Spec.map _ = Spec.map _ ≫ Spec.map _ |
| 45 | rw [← Spec.map_comp] |
| 46 | congr 1 |
| 47 | |
| 48 | def finiteCoefficientOverCone : Cone (finiteCoefficientOverDiagram k R) where |
| 49 | pt := algebraSpecOver k R |
| 50 | π := { |
| 51 | app s := algebraSpecMap k (CoefficientDiagram.finiteCoefficientRing k R s.unop).val |
| 52 | naturality := by |
| 53 | intro s t f |
| 54 | apply Over.OverMorphism.ext |
| 55 | change _ = Spec.map _ ≫ Spec.map _ |
| 56 | rw [← Spec.map_comp] |
| 57 | congr 1 } |
| 58 | |
| 59 | def finiteCoefficientOverConeUnderlying_isLimit : |
| 60 | IsLimit ((Over.forget (Spec (.of k))).mapCone (finiteCoefficientOverCone k R)) := |
| 61 | CoefficientSpecLimit.finiteCoefficientSpecCone_isLimit k R |
| 62 | |
| 63 | def finiteCoefficientFamilyCone (X : Over (Spec (.of k))) : |
| 64 | Cone (finiteCoefficientOverDiagram k R ⋙ Over.pullback X.hom ⋙ Over.forget X.left) := by |
| 65 | classical |
| 66 | exact LimitBaseChange.baseChangedSchemeCone X.hom (finiteCoefficientOverCone k R) |
| 67 | |
| 68 | def finiteCoefficientFamilyCone_isLimit (X : Over (Spec (.of k))) : |
| 69 | IsLimit (finiteCoefficientFamilyCone k R X) := by |
| 70 | classical |
| 71 | exact LimitBaseChange.baseChangedSchemeCone_isLimit X.hom (finiteCoefficientOverCone k R) |
| 72 | (finiteCoefficientOverConeUnderlying_isLimit k R) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Finite.CoefficientLimit |