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.Affine.ClosedFiberFlatness |
| 2 | |
| 3 | /-! # Affine Obstruction Flatness -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.AffineObstructionFlatness |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A proper family over a Noetherian local base is flat if each affine |
| 10 | chart has flat reduction and zero ideal-tensor obstruction. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry TensorProduct |
| 13 | |
| 14 | universe u v |
| 15 | variable (A : CommRingCat.{u}) [IsLocalRing A] [IsNoetherianRing A] |
| 16 | variable {X : Scheme.{u}} (f : X ⟶ Spec A) [IsProper f] |
| 17 | variable (C : X.AffineCover.{v} (@IsOpenImmersion)) |
| 18 | variable [∀ i, Algebra A (C.X i)] [∀ i, IsNoetherianRing (C.X i)] |
| 19 | |
| 20 | theorem proper_flat_of_affine_idealTensor_injective |
| 21 | (hC : ∀ i, Spec.map (CommRingCat.ofHom (algebraMap A (C.X i))) = C.f i ≫ f) |
| 22 | (I : Ideal A) (hI : I ≠ ⊤) |
| 23 | [∀ i, Module.Flat (A ⧸ I) ((C.X i) ⧸ I.map (algebraMap A (C.X i)))] |
| 24 | (hinj : ∀ i, Function.Injective (IdealTensor.Obstruction.idealTensorMultiplication A A (C.X i) I)) : |
| 25 | Flat f := by |
| 26 | apply ClosedFiberFlatness.proper_flat_of_closedFiberStalks A f |
| 27 | intro x hx |
| 28 | obtain ⟨i, p, hp⟩ := C.cover.exists_eq x |
| 29 | change C.I₀ at i |
| 30 | change Spec (C.X i) at p |
| 31 | change C.f i p = x at hp |
| 32 | subst x |
| 33 | have hcp : Spec.map (CommRingCat.ofHom (algebraMap A (C.X i))) p = |
| 34 | IsLocalRing.closedPoint A := by |
| 35 | rw [hC i, Scheme.Hom.comp_apply] |
| 36 | exact hx |
| 37 | have ht := Affine.ClosedFiberFlatness.affine_closedFiber_stalk_flat A (C.X i) p hcp I hI (hinj i) |
| 38 | let g := C.f i |
| 39 | let : IsOpenImmersion g := C.map_prop i |
| 40 | have : MorphismProperty.RespectsIso @Flat.{u} := |
| 41 | MorphismProperty.respectsIso_of_isStableUnderComposition |
| 42 | (fun _ _ a (_ : IsIso a) => inferInstanceAs (Flat a)) |
| 43 | apply (MorphismProperty.cancel_left_of_respectsIso (P := @Flat) |
| 44 | (Spec.map (g.stalkMap p)) ((X.fromSpecStalk (g p)) ≫ f)).mp |
| 45 | rw [← Category.assoc, Scheme.SpecMap_stalkMap_fromSpecStalk, Category.assoc] |
| 46 | simpa only [g, ← hC i] using ht |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.AffineObstructionFlatness |