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.HilbertScheme.Presentations.Localized.QuotientFlatness |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.ClosedFiberFlatness |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | |
| 5 | /-! # Closed Fiber Flatness -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.ClosedFiberFlatness |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The residue obstruction criterion at actual stalks of an affine chart |
| 12 | whose point lies above the closed point of a Noetherian local base. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | variable (A S : CommRingCat.{u}) [IsLocalRing A] [IsNoetherianRing A] |
| 18 | variable [Algebra A S] [IsNoetherianRing S] |
| 19 | |
| 20 | theorem affine_closedFiber_stalk_flat (p : PrimeSpectrum S) |
| 21 | (hp : Spec.map (CommRingCat.ofHom (algebraMap A S)) p = IsLocalRing.closedPoint A) |
| 22 | (I : Ideal A) (hI : I ≠ ⊤) |
| 23 | [Module.Flat (A ⧸ I) (S ⧸ I.map (algebraMap A S))] |
| 24 | (hinj : Function.Injective (IdealTensor.Obstruction.idealTensorMultiplication A A S I)) : |
| 25 | Flat ((Spec S).fromSpecStalk p ≫ Spec.map (CommRingCat.ofHom (algebraMap A S))) := by |
| 26 | let q : Spec S := p |
| 27 | let T : Type u := (Spec S).presheaf.stalk q |
| 28 | let : IsLocalRing T := inferInstanceAs (IsLocalRing ((Spec S).presheaf.stalk q)) |
| 29 | let : Algebra S T := (StructureSheaf.toStalk S p).hom.toAlgebra |
| 30 | let : IsLocalization.AtPrime T p.asIdeal := StructureSheaf.IsLocalization.to_stalk S p |
| 31 | let : Algebra A T := ((algebraMap S T).comp (algebraMap A S)).toAlgebra |
| 32 | let : IsScalarTower A S T := IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 33 | have he : Spec.map (CommRingCat.ofHom (algebraMap A T)) = |
| 34 | (Spec S).fromSpecStalk p ≫ Spec.map (CommRingCat.ofHom (algebraMap A S)) := by |
| 35 | erw [Spec.fromSpecStalk_eq'] |
| 36 | erw [← Spec.map_comp] |
| 37 | rfl |
| 38 | have : IsLocalHom (algebraMap A T) := by |
| 39 | apply (IsLocalRing.isLocalHom_iff_comap_closedPoint _).mpr |
| 40 | change Spec.map (CommRingCat.ofHom (algebraMap A T)) (IsLocalRing.closedPoint T) = _ |
| 41 | rw [he] |
| 42 | erw [Scheme.Hom.comp_apply, Scheme.fromSpecStalk_closedPoint] |
| 43 | exact hp |
| 44 | have : IsNoetherianRing T := IsLocalization.isNoetherianRing p.asIdeal.primeCompl T inferInstance |
| 45 | have : Module.Flat A T := Localized.QuotientFlatness.localized_flat_of_idealTensor_injective A S T |
| 46 | p.asIdeal.primeCompl I hI hinj |
| 47 | rw [← he, Flat.SpecMap_iff] |
| 48 | exact inferInstanceAs (Module.Flat A T) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.ClosedFiberFlatness |