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 Mathlib.AlgebraicGeometry.Scheme |
| 2 | |
| 3 | /-! # Stalk Retraction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.StalkRetraction.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An actual scheme retraction gives an actual retraction of local rings, |
| 10 | with the point transport explicitly included in the section map. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | variable {X Y : Scheme} (i : X ⟶ Y) (r : Y ⟶ X) (h : i ≫ r = 𝟙 X) (x : X) |
| 18 | |
| 19 | def retractionStalkPointIso : X.presheaf.stalk (r (i x)) ≅ X.presheaf.stalk x := |
| 20 | X.presheaf.stalkCongr (.of_eq (congrArg (fun f : X ⟶ X => f x) h)) |
| 21 | |
| 22 | def retractionStalkSection : X.presheaf.stalk x ⟶ Y.presheaf.stalk (i x) := |
| 23 | (retractionStalkPointIso i r h x).inv ≫ r.stalkMap (i x) |
| 24 | |
| 25 | theorem retractionStalkSection_retract : |
| 26 | retractionStalkSection i r h x ≫ i.stalkMap x = 𝟙 (X.presheaf.stalk x) := by |
| 27 | have hc : (i ≫ r).stalkMap x = (retractionStalkPointIso i r h x).hom := by |
| 28 | rw [Scheme.Hom.stalkMap_congr_hom (i ≫ r) (𝟙 X) h x, Scheme.Hom.stalkMap_id] |
| 29 | change (retractionStalkPointIso i r h x).hom ≫ 𝟙 _ = _ |
| 30 | exact Category.comp_id _ |
| 31 | unfold retractionStalkSection |
| 32 | rw [Category.assoc, ← Scheme.Hom.stalkMap_comp, hc] |
| 33 | exact (retractionStalkPointIso i r h x).inv_hom_id |
| 34 | |
| 35 | end |
| 36 | |
| 37 | end OAI.AlgebraicGeometry.CycleClass.Thom.StalkRetraction.Constructions |