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.AffineScheme |
| 2 | import Mathlib.Topology.Sheaves.SheafCondition.Sites |
| 3 | |
| 4 | /-! # Principal Refinement -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Affine.PrincipalRefinement.AffinePrincipalRefinement |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every covering sieve on an affine spectrum contains an actual finite principal cover whose coefficients generate the unit ideal. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (A : CommRingCat.{u}) |
| 17 | |
| 18 | def principalArrow (a : A) : (PrimeSpectrum.basicOpen a : (Spec A).Opens) ⟶ (⊤ : (Spec A).Opens) := |
| 19 | homOfLE le_top |
| 20 | |
| 21 | theorem exists_at (S : Sieve (⊤ : (Spec A).Opens)) |
| 22 | (hS : S ∈ Opens.grothendieckTopology (Spec A) ⊤) (x : PrimeSpectrum A) : |
| 23 | ∃ a : A, x ∈ PrimeSpectrum.basicOpen a ∧ S (principalArrow A a) := by |
| 24 | obtain ⟨U, f, hf, hx⟩ := hS x trivial |
| 25 | obtain ⟨_, ⟨a, rfl⟩, hxa, haU⟩ := |
| 26 | PrimeSpectrum.isTopologicalBasis_basic_opens.exists_subset_of_mem_open hx U.isOpen |
| 27 | refine ⟨a, hxa, ?_⟩ |
| 28 | let g : (PrimeSpectrum.basicOpen a : (Spec A).Opens) ⟶ U := homOfLE haU |
| 29 | have he : g ≫ f = principalArrow A a := |
| 30 | ULift.ext _ _ (Subsingleton.elim _ _) |
| 31 | exact he ▸ S.downward_closed hf g |
| 32 | |
| 33 | theorem finite_refinement (S : Sieve (⊤ : (Spec A).Opens)) |
| 34 | (hS : S ∈ Opens.grothendieckTopology (Spec A) ⊤) : |
| 35 | ∃ t : Finset A, Ideal.span (t : Set A) = ⊤ ∧ ∀ a ∈ t, S (principalArrow A a) := by |
| 36 | classical |
| 37 | choose a ha hmem using exists_at A S hS |
| 38 | have hs : Ideal.span (Set.range a) = ⊤ := by |
| 39 | apply PrimeSpectrum.iSup_basicOpen_eq_top_iff.mp |
| 40 | apply top_le_iff.mp |
| 41 | intro x _ |
| 42 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨x, ha x⟩ |
| 43 | have h1 : (1 : A) ∈ Ideal.span (Set.range a) := hs ▸ Submodule.mem_top |
| 44 | obtain ⟨t, ht, h1t⟩ := Submodule.mem_span_finite_of_mem_span h1 |
| 45 | refine ⟨t, (Ideal.eq_top_iff_one _).mpr h1t, ?_⟩ |
| 46 | intro b hb |
| 47 | obtain ⟨x, rfl⟩ := ht hb |
| 48 | exact hmem x |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Affine.PrincipalRefinement.AffinePrincipalRefinement |