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.CycleClass.Thom.Closed.ImageStalkKernel |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedSurjectionKernel |
| 3 | |
| 4 | /-! # Support Kernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Affine.SupportKernel.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The original reduced support of an affine closed immersion has |
| 11 | exactly the localized defining ideal in the canonical affine stalk |
| 12 | coordinates. All comparisons use the actual maps and their squares. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.CycleClass.Thom.Closed.ImageStalkKernel.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.StalkPrimeQuotient.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedSurjectionKernel.Constructions |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | theorem map_kernel_iso {R S R' S' : CommRingCat} (a : R ≅ R') (b : S ≅ S') |
| 22 | (f : R ⟶ S) (g : R' ⟶ S') (h : a.hom ≫ g = f ≫ b.hom) : |
| 23 | (RingHom.ker f.hom).map a.hom.hom = RingHom.ker g.hom := by |
| 24 | have hc : (RingHom.ker g.hom).comap a.hom.hom = RingHom.ker f.hom := by |
| 25 | ext r |
| 26 | change g (a.hom r) = 0 ↔ f r = 0 |
| 27 | have he : g (a.hom r) = b.hom (f r) := ConcreteCategory.congr_hom h r |
| 28 | constructor |
| 29 | · intro hz |
| 30 | apply (ConcreteCategory.bijective_of_isIso b.hom).1 |
| 31 | exact (he.symm.trans hz).trans (map_zero b.hom.hom).symm |
| 32 | · intro hz |
| 33 | exact he.trans ((congrArg b.hom hz).trans (map_zero b.hom.hom)) |
| 34 | rw [← hc] |
| 35 | exact Ideal.map_comap_of_surjective _ (ConcreteCategory.bijective_of_isIso a.hom).2 _ |
| 36 | |
| 37 | theorem spec_stalk_kernel {R S : CommRingCat} (f : R ⟶ S) (hf : Function.Surjective f) (q : PrimeSpectrum S) : |
| 38 | (RingHom.ker ((Spec.map f).stalkMap q).hom).map (Spec.stalkIso R (q.comap f.hom)).hom.hom = |
| 39 | (RingHom.ker f.hom).map (algebraMap R (Localization.AtPrime (q.comap f.hom).asIdeal)) := by |
| 40 | have h := map_kernel_iso (Spec.stalkIso R (q.comap f.hom)) (Spec.stalkIso S q) |
| 41 | ((Spec.map f).stalkMap q) |
| 42 | (CommRingCat.ofHom (Localization.localRingHom (q.comap f.hom).asIdeal q.asIdeal f.hom rfl)) |
| 43 | (Scheme.arrowStalkMapSpecIso f q).hom.w |
| 44 | exact h.trans (LocalizedSurjectionKernel.Constructions.localRingHom_kernel f.hom hf q) |
| 45 | |
| 46 | variable (R S : CommRingCat) [IsDomain S] (f : R ⟶ S) (hf : Function.Surjective f) |
| 47 | |
| 48 | include hf in |
| 49 | theorem support_kernel_localization (q : PrimeSpectrum S) : |
| 50 | ((StalkPrimeQuotient.Constructions.kernelPrime (Spec R) (Geometric.StratumClosure.integralImageClosure (Spec.map f)) ((Spec.map f) q) (Closed.ImageStalkKernel.Constructions.image_mem (Spec.map f) q)).asIdeal).map |
| 51 | (Spec.stalkIso R (q.comap f.hom)).hom.hom = |
| 52 | (RingHom.ker f.hom).map (algebraMap R (Localization.AtPrime (q.comap f.hom).asIdeal)) := by |
| 53 | let : IsClosedImmersion (Spec.map f) := IsClosedImmersion.spec_of_surjective f hf |
| 54 | rw [Closed.ImageStalkKernel.Constructions.kernelPrime_eq_stalkMap_kernel] |
| 55 | exact spec_stalk_kernel f hf q |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.CycleClass.Thom.Affine.SupportKernel.Constructions |