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.Morphisms.Smooth |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 3 | |
| 4 | /-! # Open Restriction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Section.OpenRestriction.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # LineBundleCycles: the actual restricted section on compatible open neighborhoods -/ |
| 11 | |
| 12 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 13 | |
| 14 | variable {X Y : Scheme.{0}} (p : Y ⟶ X) (s : X ⟶ Y) (hs : s ≫ p = 𝟙 X) |
| 15 | (U : Y.Opens) (V : X.Opens) (hV : V ≤ s ⁻¹ᵁ U) (hU : U ≤ p ⁻¹ᵁ V) |
| 16 | |
| 17 | def sectionOpenProjection : U.toScheme ⟶ V.toScheme := Y.homOfLE hU ≫ morphismRestrict p V |
| 18 | |
| 19 | def sectionOpenMap : V.toScheme ⟶ U.toScheme := X.homOfLE hV ≫ morphismRestrict s U |
| 20 | |
| 21 | theorem sectionOpenProjection_ι : sectionOpenProjection p U V hU ≫ V.ι = U.ι ≫ p := by |
| 22 | change (Y.homOfLE hU ≫ morphismRestrict p V) ≫ V.ι = _ |
| 23 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, Scheme.homOfLE_ι] |
| 24 | |
| 25 | theorem sectionOpenMap_ι : sectionOpenMap s U V hV ≫ U.ι = V.ι ≫ s := by |
| 26 | change (X.homOfLE hV ≫ morphismRestrict s U) ≫ U.ι = _ |
| 27 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, Scheme.homOfLE_ι] |
| 28 | |
| 29 | include hs in |
| 30 | theorem sectionOpen_retraction : sectionOpenMap s U V hV ≫ sectionOpenProjection p U V hU = 𝟙 V.toScheme := by |
| 31 | apply (cancel_mono V.ι).mp |
| 32 | rw [Category.assoc, sectionOpenProjection_ι, ← Category.assoc, sectionOpenMap_ι, |
| 33 | Category.assoc, hs, Category.comp_id, Category.id_comp] |
| 34 | |
| 35 | include hs hU hV in |
| 36 | theorem sectionOpen_preimage : s ⁻¹ᵁ U = V := by |
| 37 | apply le_antisymm _ hV |
| 38 | intro x hx |
| 39 | have hy := hU hx |
| 40 | change p (s x) ∈ V at hy |
| 41 | have he : p (s x) = x := congrArg (fun f => f x) hs |
| 42 | exact he ▸ hy |
| 43 | |
| 44 | instance sectionOpenProjection_smooth [Smooth p] : Smooth (sectionOpenProjection p U V hU) := by |
| 45 | change Smooth (Y.homOfLE hU ≫ morphismRestrict p V) |
| 46 | infer_instance |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Section.OpenRestriction.BundleCycles |