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.IntersectionTheory.ProjectionFormula.Affine.SupportStalk |
| 2 | import Mathlib.RingTheory.Localization.Algebra |
| 3 | |
| 4 | /-! # Closed Stalk Kernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ClosedStalkKernel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! For a surjective affine coordinate map, the kernel of its |
| 11 | actual scheme stalk map is the localized coordinate kernel. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | variable {R S : Type} [CommRing R] [CommRing S] (f : R →+* S) |
| 19 | (hf : Function.Surjective f) (q : Spec (.of S)) |
| 20 | |
| 21 | include hf |
| 22 | |
| 23 | theorem kernel : RingHom.ker ((Spec.map (CommRingCat.ofHom f)).stalkMap q).hom = |
| 24 | (RingHom.ker f).map (StructureSheaf.toStalk R (PrimeSpectrum.comap f q)).hom := by |
| 25 | let p : Spec (.of R) := (Spec.map (CommRingCat.ofHom f)) q |
| 26 | let Rp := (Spec (.of R)).presheaf.stalk p |
| 27 | let Sq := (Spec (.of S)).presheaf.stalk q |
| 28 | let : Algebra R Rp := (StructureSheaf.toStalk R p).hom.toAlgebra |
| 29 | let : Algebra S Sq := (StructureSheaf.toStalk S q).hom.toAlgebra |
| 30 | let : IsLocalization p.asIdeal.primeCompl Rp := by |
| 31 | change IsLocalization p.asIdeal.primeCompl ((structurePresheafInCommRingCat R).stalk p) |
| 32 | infer_instance |
| 33 | let : IsLocalization q.asIdeal.primeCompl Sq := by |
| 34 | change IsLocalization q.asIdeal.primeCompl ((structurePresheafInCommRingCat S).stalk q) |
| 35 | infer_instance |
| 36 | have hmap : p.asIdeal.primeCompl.map f = q.asIdeal.primeCompl := |
| 37 | Ideal.map_primeCompl_comap_of_surjective f hf q.asIdeal |
| 38 | have he : ((Spec.map (CommRingCat.ofHom f)).stalkMap q).hom = |
| 39 | (IsLocalization.map Sq f (hmap.symm ▸ p.asIdeal.primeCompl.le_comap_map) : Rp →+* Sq) := by |
| 40 | apply IsLocalization.ringHom_ext p.asIdeal.primeCompl |
| 41 | apply RingHom.ext |
| 42 | intro r |
| 43 | change (Spec.map (CommRingCat.ofHom f)).stalkMap q (StructureSheaf.toStalk R p r) = |
| 44 | (IsLocalization.map Sq f (hmap.symm ▸ p.asIdeal.primeCompl.le_comap_map) : Rp →+* Sq) |
| 45 | (algebraMap R Rp r) |
| 46 | rw [IsLocalization.map_eq] |
| 47 | exact AlgebraicGeometry.stalkMap_toStalk_apply (CommRingCat.ofHom f) q r |
| 48 | rw [he] |
| 49 | exact IsLocalization.ker_map Sq f hmap |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ClosedStalkKernel |