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.StalkRetractionScalars |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.FieldBaseStalk |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | |
| 5 | /-! # Smooth Retract -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.SmoothRetract.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Smoothness at a point descends along an actual scheme retraction over |
| 12 | a field, proved by the scalar-compatible retraction on its local rings. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.CycleClass.Thom.StalkRetractionScalars.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.FieldBaseStalk.Constructions |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | variable {K : Type} [Field K] {X Y : Scheme.{0}} |
| 22 | |
| 23 | theorem stalkBaseMap_formallySmooth_iff (f : X ⟶ Spec (CommRingCat.of K)) |
| 24 | [LocallyOfFinitePresentation f] (x : X) : |
| 25 | (StalkRetractionScalars.Constructions.stalkBaseMap f x).hom.FormallySmooth ↔ x ∈ f.smoothLocus := by |
| 26 | let b := (Spec (CommRingCat.of K)).presheaf.germ ⊤ (f x) (by trivial) |
| 27 | let : IsIso b := FieldBaseStalk.Constructions.fieldBase_germ_isIso K (f x) |
| 28 | have hb : b ≫ f.stalkMap x = StalkRetractionScalars.Constructions.stalkBaseMap f x := by |
| 29 | exact f.germ_stalkMap ⊤ x (by trivial) |
| 30 | have h := RingHom.FormallySmooth.respectsIso.cancel_left_isIso b (f.stalkMap x) |
| 31 | change (b ≫ f.stalkMap x).hom.FormallySmooth ↔ (f.stalkMap x).hom.FormallySmooth at h |
| 32 | rw [hb] at h |
| 33 | exact h |
| 34 | |
| 35 | theorem mem_smoothLocus_of_retract |
| 36 | (i : X ⟶ Y) (r : Y ⟶ X) (h : i ≫ r = 𝟙 X) |
| 37 | (f : X ⟶ Spec (CommRingCat.of K)) (g : Y ⟶ Spec (CommRingCat.of K)) |
| 38 | [LocallyOfFinitePresentation f] [LocallyOfFinitePresentation g] |
| 39 | (hi : i ≫ g = f) (hr : r ≫ f = g) (x : X) |
| 40 | (hx : i x ∈ g.smoothLocus) : x ∈ f.smoothLocus := by |
| 41 | apply (stalkBaseMap_formallySmooth_iff f x).mp |
| 42 | exact StalkRetractionScalars.Constructions.stalkBaseMap_formallySmooth_of_retract i r h f g hr x hi |
| 43 | ((stalkBaseMap_formallySmooth_iff g (i x)).mpr hx) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.SmoothRetract.Constructions |