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.FormallyUnramified |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 3 | import Lean.Util.CollectAxioms |
| 4 | |
| 5 | /-! # Pointed Lifts -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.PointedLifts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Uniqueness of a pointed lift through a separated unramified morphism. |
| 12 | The equality locus is an actual open and closed pullback of the diagonal; |
| 13 | connectedness and the common base point force it to be the whole source. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | /-- A lift through a separated unramified finite-type map is determined |
| 20 | by one point on a connected source. -/ |
| 21 | theorem pointed_unramified_lifts_unique |
| 22 | {X Y Z W : Scheme.{u}} [ConnectedSpace X] [Nonempty W] |
| 23 | (q : Y ⟶ Z) [FormallyUnramified q] [LocallyOfFiniteType q] [IsSeparated q] |
| 24 | (f g : X ⟶ Y) (hcomp : f ≫ q = g ≫ q) |
| 25 | (x₀ : W ⟶ X) (hpoint : x₀ ≫ f = x₀ ≫ g) : f = g := by |
| 26 | let p : X ⟶ pullback q q := pullback.lift f g hcomp |
| 27 | let d := pullback.diagonal q |
| 28 | let E := pullback p d |
| 29 | let e : E ⟶ X := pullback.fst p d |
| 30 | have hpoint' : x₀ ≫ p = (x₀ ≫ f) ≫ d := by |
| 31 | apply pullback.hom_ext |
| 32 | · simp only [Category.assoc, p, d, pullback.lift_fst, pullback.diagonal_fst, |
| 33 | Category.comp_id] |
| 34 | · simp only [Category.assoc, p, d, pullback.lift_snd, pullback.diagonal_snd, |
| 35 | Category.comp_id] |
| 36 | exact hpoint.symm |
| 37 | let z : W ⟶ E := pullback.lift x₀ (x₀ ≫ f) hpoint' |
| 38 | have : IsOpenImmersion e := inferInstanceAs (IsOpenImmersion (pullback.fst p d)) |
| 39 | have : IsClosedImmersion e := inferInstanceAs (IsClosedImmersion (pullback.fst p d)) |
| 40 | have he : IsClopen (Set.range e) := |
| 41 | ⟨e.isClosedEmbedding.isClosed_range, e.isOpenEmbedding.isOpen_range⟩ |
| 42 | have hne : (Set.range e).Nonempty := ⟨e (z (Classical.arbitrary W)), Set.mem_range_self _⟩ |
| 43 | have hrange : Set.range e = Set.univ := he.eq_univ hne |
| 44 | have : Surjective e := ⟨Set.range_eq_univ.mp hrange⟩ |
| 45 | have : IsIso e := (isIso_iff_isOpenImmersion_and_surjective e).mpr |
| 46 | ⟨inferInstance, inferInstance⟩ |
| 47 | have h : e ≫ p = pullback.snd p d ≫ d := pullback.condition |
| 48 | have hf := congrArg (fun k => k ≫ pullback.fst q q) h |
| 49 | have hg := congrArg (fun k => k ≫ pullback.snd q q) h |
| 50 | have hf' : e ≫ f = pullback.snd p d := by |
| 51 | simpa only [Category.assoc, p, d, pullback.lift_fst, pullback.diagonal_fst, |
| 52 | Category.comp_id] using hf |
| 53 | have hg' : e ≫ g = pullback.snd p d := by |
| 54 | simpa only [Category.assoc, p, d, pullback.lift_snd, pullback.diagonal_snd, |
| 55 | Category.comp_id] using hg |
| 56 | exact (cancel_epi e).mp (hf'.trans hg'.symm) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.PointedLifts |