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.FormalGeometry.Completion.FlatCompositionDescent |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.StalkFlat |
| 3 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 4 | |
| 5 | /-! # Flat Source Localizations -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Geometric.FlatSourceLocalizations |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Flatness can be checked after localizing an ambient source at the |
| 12 | image of each point. This applies to the actual Picard comparison inclusion. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem flat_stalkMap_of_flat_composition {X N Y : Scheme.{u}} |
| 20 | (h : X ⟶ N) [Flat h] (g : N ⟶ Y) [Flat (h ≫ g)] (x : X) : |
| 21 | (g.stalkMap (h x)).hom.Flat := by |
| 22 | let a : Y.presheaf.stalk (g (h x)) →+* N.presheaf.stalk (h x) := (g.stalkMap (h x)).hom |
| 23 | let b : N.presheaf.stalk (h x) →+* X.presheaf.stalk x := (h.stalkMap x).hom |
| 24 | have hb : b.Flat := Flat.stalkMap h x |
| 25 | have hab : (b.comp a).Flat := by |
| 26 | simpa only [Scheme.Hom.stalkMap_comp, CommRingCat.hom_comp] using Flat.stalkMap (h ≫ g) x |
| 27 | algebraize [a, b, b.comp a] |
| 28 | have : Module.Flat (N.presheaf.stalk (h x)) (X.presheaf.stalk x) := hb |
| 29 | have : Module.Flat (Y.presheaf.stalk (g (h x))) (X.presheaf.stalk x) := hab |
| 30 | have : IsLocalHom (algebraMap (N.presheaf.stalk (h x)) (X.presheaf.stalk x)) := |
| 31 | inferInstanceAs (IsLocalHom b) |
| 32 | have : Module.FaithfullyFlat (N.presheaf.stalk (h x)) (X.presheaf.stalk x) := |
| 33 | Module.FaithfullyFlat.of_flat_of_isLocalHom |
| 34 | exact OAI.AlgebraicGeometry.FormalGeometry.Completion.FlatCompositionDescent.Construction.flat_of_faithfullyFlat_composition (Y.presheaf.stalk (g (h x))) |
| 35 | (N.presheaf.stalk (h x)) (X.presheaf.stalk x) |
| 36 | |
| 37 | theorem flat_of_ambient_stalk_localizations {Z B Y : Scheme.{u}} |
| 38 | (i : Z ⟶ B) (p : B ⟶ Y) |
| 39 | (hloc : ∀ z : Z, Flat (pullback.fst i (B.fromSpecStalk (i z)) ≫ i ≫ p)) : |
| 40 | Flat (i ≫ p) := by |
| 41 | apply Flat.of_stalkMap |
| 42 | intro z |
| 43 | let j := B.fromSpecStalk (i z) |
| 44 | have : Flat j := OAI.AlgebraicGeometry.FormalGeometry.Completion.StalkFlat.Construction.scheme_fromSpecStalk_flat B (i z) |
| 45 | have : Flat (pullback.fst i j ≫ (i ≫ p)) := hloc z |
| 46 | obtain ⟨w, hw, _⟩ := Scheme.Pullback.exists_preimage_pullback (f := i) (g := j) |
| 47 | z (IsLocalRing.closedPoint (B.presheaf.stalk (i z))) |
| 48 | Scheme.fromSpecStalk_closedPoint.symm |
| 49 | have h := flat_stalkMap_of_flat_composition (pullback.fst i j) (i ≫ p) w |
| 50 | rwa [hw] at h |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.RepresentationTheory.Theta.Geometric.FlatSourceLocalizations |