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.Properties |
| 2 | import Mathlib.AlgebraicGeometry.Stalk |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | |
| 5 | /-! # Local Domain Components -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.LocalDomainComponents |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Irreducible components of schemes with domain stalks |
| 13 | |
| 14 | These are general scheme-theoretic lemmas with an explicit, local-domain |
| 15 | hypothesis. They do not assert that smoothness implies that hypothesis. |
| 16 | The key observation is that the generalizations of a point form an |
| 17 | irreducible set when its actual local ring is a domain. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace Set |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {X : Scheme.{u}} |
| 25 | |
| 26 | /-- The generalizations of a point form an irreducible set if the actual |
| 27 | stalk at that point is a domain. -/ |
| 28 | theorem isIrreducible_generalizations_of_stalkDomain (x : X) |
| 29 | [IsDomain (X.presheaf.stalk x)] : IsIrreducible {y : X | y ⤳ x} := by |
| 30 | rw [← X.range_fromSpecStalk] |
| 31 | simpa only [Set.image_univ] using |
| 32 | (IrreducibleSpace.isIrreducible_univ (Spec (X.presheaf.stalk x))).image |
| 33 | (X.fromSpecStalk x) (X.fromSpecStalk x).continuous.continuousOn |
| 34 | |
| 35 | /-- Two irreducible components containing a point with domain local ring |
| 36 | are necessarily the same component. -/ |
| 37 | theorem irreducibleComponents_eq_of_mem_of_stalkDomain |
| 38 | (x : X) [IsDomain (X.presheaf.stalk x)] |
| 39 | {Z W : Set X} (hZ : Z ∈ irreducibleComponents X) |
| 40 | (hW : W ∈ irreducibleComponents X) (hxZ : x ∈ Z) (hxW : x ∈ W) : Z = W := by |
| 41 | let G : Set X := {y : X | y ⤳ x} |
| 42 | have hG : IsIrreducible (closure G) := |
| 43 | (isIrreducible_generalizations_of_stalkDomain x).closure |
| 44 | have hsub (T : Set X) (hT : T ∈ irreducibleComponents X) (hxT : x ∈ T) : |
| 45 | T ⊆ closure G := by |
| 46 | have hη := hT.1.isGenericPoint_genericPoint (isClosed_of_mem_irreducibleComponents T hT) |
| 47 | have hηG : hT.1.genericPoint ∈ G := hη.specializes hxT |
| 48 | rw [← hη] |
| 49 | exact closure_mono (singleton_subset_iff.mpr hηG) |
| 50 | have hZG : Z ⊆ closure G := hsub Z hZ hxZ |
| 51 | have hWG : W ⊆ closure G := hsub W hW hxW |
| 52 | exact subset_antisymm (hZG.trans (hW.2 hG hWG)) (hWG.trans (hZ.2 hG hZG)) |
| 53 | |
| 54 | /-- Distinct irreducible components are disjoint if all actual stalks are domains. -/ |
| 55 | theorem irreducibleComponents_disjoint_of_stalkDomains |
| 56 | (hlocal : ∀ x : X, IsDomain (X.presheaf.stalk x)) |
| 57 | {Z W : Set X} (hZ : Z ∈ irreducibleComponents X) |
| 58 | (hW : W ∈ irreducibleComponents X) (hne : Z ≠ W) : Disjoint Z W := by |
| 59 | rw [Set.disjoint_left] |
| 60 | intro x hxZ hxW |
| 61 | let := hlocal x |
| 62 | exact hne (irreducibleComponents_eq_of_mem_of_stalkDomain x hZ hW hxZ hxW) |
| 63 | |
| 64 | /-- With finitely many components, domain stalks make each irreducible |
| 65 | component an open as well as a closed subset. -/ |
| 66 | theorem isOpen_irreducibleComponent_of_stalkDomains |
| 67 | (hlocal : ∀ x : X, IsDomain (X.presheaf.stalk x)) |
| 68 | (hfinite : (irreducibleComponents X).Finite) |
| 69 | {Z : Set X} (hZ : Z ∈ irreducibleComponents X) : IsOpen Z := by |
| 70 | have heq : Z = (⋃₀ (irreducibleComponents X \ {Z}))ᶜ := by |
| 71 | ext x |
| 72 | constructor |
| 73 | · intro hxZ hx |
| 74 | rcases hx with ⟨W, ⟨hW, hWZ⟩, hxW⟩ |
| 75 | exact (Set.disjoint_left.mp |
| 76 | (irreducibleComponents_disjoint_of_stalkDomains hlocal hW hZ |
| 77 | (by simpa only [Set.mem_singleton_iff] using hWZ))) hxW hxZ |
| 78 | · intro hx |
| 79 | have hxc : x ∈ ⋃₀ irreducibleComponents X := by |
| 80 | rw [sUnion_irreducibleComponents] |
| 81 | trivial |
| 82 | rcases hxc with ⟨W, hW, hxW⟩ |
| 83 | by_cases hWZ : W = Z |
| 84 | · exact hWZ ▸ hxW |
| 85 | · exact False.elim (hx ⟨W, ⟨hW, by simpa only [Set.mem_singleton_iff] using hWZ⟩, hxW⟩) |
| 86 | rw [heq, isOpen_compl_iff, Set.sUnion_eq_biUnion] |
| 87 | exact hfinite.sdiff.isClosed_biUnion fun W hW => |
| 88 | isClosed_of_mem_irreducibleComponents W hW.1 |
| 89 | |
| 90 | /-- A scheme whose actual local rings are domains is reduced. -/ |
| 91 | theorem isReduced_of_stalkDomains |
| 92 | (hlocal : ∀ x : X, IsDomain (X.presheaf.stalk x)) : IsReduced X := by |
| 93 | let (x : X) : IsDomain (X.presheaf.stalk x) := hlocal x |
| 94 | exact isReduced_of_isReduced_stalk X |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.Foundations.Scheme.LocalDomainComponents |