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.Group.Smooth |
| 2 | |
| 3 | /-! # Flat Translation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.FlatTranslation.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Flatness propagates along actual commuting automorphisms. |
| 10 | The general transport argument is adapted from FlatTranslations. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | /-- A commuting pair of automorphisms transports a source open on which |
| 17 | a morphism is flat. -/ |
| 18 | theorem flat_preimage_of_commuting_isos |
| 19 | {X Y : Scheme.{u}} (f : X ⟶ Y) (α : X ≅ X) (β : Y ≅ Y) |
| 20 | (hcomm : α.hom ≫ f = f ≫ β.hom) |
| 21 | (U : X.Opens) [Flat (U.ι ≫ f)] : |
| 22 | Flat ((α.hom ⁻¹ᵁ U).ι ≫ f) := by |
| 23 | have hflat : Flat ((α.hom ∣_ U) ≫ (U.ι ≫ f)) := inferInstance |
| 24 | have heq : (α.hom ∣_ U) ≫ (U.ι ≫ f) = |
| 25 | ((α.hom ⁻¹ᵁ U).ι ≫ f) ≫ β.hom := by |
| 26 | rw [← Category.assoc, morphismRestrict_ι, Category.assoc, hcomm, Category.assoc] |
| 27 | rw [heq] at hflat |
| 28 | have : Flat ((((α.hom ⁻¹ᵁ U).ι ≫ f) ≫ β.hom) ≫ β.inv) := inferInstance |
| 29 | simpa only [Category.assoc, Iso.hom_inv_id, Category.comp_id] using this |
| 30 | |
| 31 | /-- If commuting source/target automorphisms act transitively on closed |
| 32 | source points, flatness on one nonempty source open implies global flatness. -/ |
| 33 | theorem flat_of_transitive_automorphisms |
| 34 | {X Y : Scheme.{u}} [JacobsonSpace X] (f : X ⟶ Y) |
| 35 | (htrans : ∀ (x y : X), IsClosed {x} → IsClosed {y} → |
| 36 | ∃ (α : X ≅ X) (β : Y ≅ Y), α.hom x = y ∧ α.hom ≫ f = f ≫ β.hom) |
| 37 | (U : X.Opens) (hU : (U : Set X).Nonempty) [Flat (U.ι ≫ f)] : |
| 38 | Flat f := by |
| 39 | have : IsZariskiLocalAtSource @AlgebraicGeometry.Flat := |
| 40 | HasRingHomProperty.instIsZariskiLocalAtSource (Q := @RingHom.Flat) |
| 41 | let I := {V : X.Opens // Flat (V.ι ≫ f)} |
| 42 | let V : I → X.Opens := Subtype.val |
| 43 | have htop : iSup V = ⊤ := by |
| 44 | by_contra hne |
| 45 | have hex : ∃ x : X, x ∉ iSup V := by |
| 46 | by_contra! h |
| 47 | apply hne |
| 48 | exact le_antisymm le_top (fun x _ => h x) |
| 49 | obtain ⟨x₀, hx₀⟩ := hex |
| 50 | obtain ⟨x, hx, hxc⟩ := nonempty_inter_closedPoints |
| 51 | (Z := ((iSup V : X.Opens) : Set X)ᶜ) ⟨x₀, hx₀⟩ |
| 52 | (iSup V).isOpen.isClosed_compl.isLocallyClosed |
| 53 | obtain ⟨y, hy, hyc⟩ := nonempty_inter_closedPoints hU U.isOpen.isLocallyClosed |
| 54 | obtain ⟨α, β, hxy, hcomm⟩ := htrans x y hxc hyc |
| 55 | let W := α.hom ⁻¹ᵁ U |
| 56 | have hW : Flat (W.ι ≫ f) := flat_preimage_of_commuting_isos f α β hcomm U |
| 57 | have hxW : x ∈ W := by |
| 58 | change α.hom x ∈ U |
| 59 | rwa [hxy] |
| 60 | exact hx ((le_iSup V ⟨W, hW⟩) hxW) |
| 61 | exact IsZariskiLocalAtSource.of_iSup_eq_top |
| 62 | (P := @AlgebraicGeometry.Flat) (f := f) V htop (fun i => i.prop) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.FlatTranslation.Construction |