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.HilbertScheme.Presentations.Local.MorphismFactorization |
| 2 | import Mathlib.CategoryTheory.Comma.Over.Basic |
| 3 | |
| 4 | /-! # Mono Recognition -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.MonoRecognition |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Affine lifting properties determine actual scheme monomorphisms and their isomorphisms over a common target. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {S : Scheme.{u}} {M Z T W : Over S} |
| 17 | |
| 18 | theorem overMono_lift_of_affine (j : Z ⟶ M) [Mono j] (x : T ⟶ M) |
| 19 | (h : ∀ (R : CommRingCat.{u}) (f : Spec R ⟶ S) (a : Over.mk f ⟶ T), |
| 20 | ∃ b : Over.mk f ⟶ Z, b ≫ j = a ≫ x) : |
| 21 | ∃! g : T ⟶ Z, g ≫ j = x := by |
| 22 | obtain ⟨g, hg, _⟩ := HilbertScheme.Presentations.Local.MorphismFactorization.lift_of_openCover T.left.affineOpenCover.openCover x.left j.left (by |
| 23 | intro i |
| 24 | change T.left.affineOpenCover.I₀ at i |
| 25 | let a : Over.mk (T.left.affineOpenCover.f i ≫ T.hom) ⟶ T := |
| 26 | Over.homMk (T.left.affineOpenCover.f i) |
| 27 | obtain ⟨b, hb⟩ := h (T.left.affineOpenCover.X i) _ a |
| 28 | exact ⟨b.left, congrArg Over.Hom.left hb⟩) |
| 29 | let l : T ⟶ Z := Over.homMk g (by |
| 30 | rw [← j.w, ← Category.assoc, hg] |
| 31 | exact x.w) |
| 32 | have hl : l ≫ j = x := Over.OverMorphism.ext hg |
| 33 | exact ⟨l, hl, fun k hk => (cancel_mono j).mp (hk.trans hl.symm)⟩ |
| 34 | |
| 35 | theorem overMono_iso_of_affine_lifts (j : Z ⟶ M) (k : W ⟶ M) [Mono j] [Mono k] |
| 36 | (h : ∀ (R : CommRingCat.{u}) (f : Spec R ⟶ S) (x : Over.mk f ⟶ M), |
| 37 | (∃ a : Over.mk f ⟶ Z, a ≫ j = x) ↔ (∃ b : Over.mk f ⟶ W, b ≫ k = x)) : |
| 38 | ∃ e : Z ≅ W, e.hom ≫ k = j := by |
| 39 | obtain ⟨g, hg, _⟩ := overMono_lift_of_affine k j (fun R f a => (h R f (a ≫ j)).mp ⟨a, rfl⟩) |
| 40 | obtain ⟨l, hl, _⟩ := overMono_lift_of_affine j k (fun R f b => (h R f (b ≫ k)).mpr ⟨b, rfl⟩) |
| 41 | have hgl : g ≫ l = 𝟙 Z := by |
| 42 | apply (cancel_mono j).mp |
| 43 | rw [Category.assoc, hl, hg, Category.id_comp] |
| 44 | have hlg : l ≫ g = 𝟙 W := by |
| 45 | apply (cancel_mono k).mp |
| 46 | rw [Category.assoc, hg, hl, Category.id_comp] |
| 47 | exact ⟨⟨g, l, hgl, hlg⟩, hg⟩ |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.MonoRecognition |