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.AbelianModuli.HilbertConstruction.Coherent.ModulePullbacks |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Image |
| 3 | |
| 4 | /-! # Open Comparison Span -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coherent.OpenComparisonSpan |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules |
| 11 | universe u |
| 12 | |
| 13 | /-- The comparison is an actual fiber product inside the quasicoherent |
| 14 | direct image of one restriction. The two maps become isomorphisms on the |
| 15 | specified open subset and realize the supplied comparison there. -/ |
| 16 | theorem exists_coherent_comparison_span |
| 17 | {X : Scheme.{u}} [IsLocallyNoetherian X] |
| 18 | (U : X.Opens) [QuasiCompact U.ι] |
| 19 | (M N : X.Modules) [M.IsQuasicoherent] [N.IsQuasicoherent] |
| 20 | [M.IsFiniteType] [N.IsFiniteType] |
| 21 | (e : M.restrict U.ι ≅ N.restrict U.ι) : |
| 22 | ∃ (K : X.Modules) (a : K ⟶ M) (b : K ⟶ N), |
| 23 | K.IsQuasicoherent ∧ K.IsFiniteType ∧ |
| 24 | IsIso ((restrictFunctor U.ι).map a) ∧ |
| 25 | IsIso ((restrictFunctor U.ι).map b) ∧ |
| 26 | (restrictFunctor U.ι).map a ≫ e.hom = (restrictFunctor U.ι).map b := by |
| 27 | let F := restrictFunctor U.ι |
| 28 | let G := pushforward U.ι |
| 29 | let adj := restrictAdjunction U.ι |
| 30 | let Q := G.obj (F.obj N) |
| 31 | let a : M ⟶ Q := adj.unit.app M ≫ G.map e.hom |
| 32 | let b : N ⟶ Q := adj.unit.app N |
| 33 | have : Q.IsQuasicoherent := |
| 34 | Quasicoherent.Image.quasiCompact_separated_directImage_quasicoherent U.ι (F.obj N) |
| 35 | have ha : IsIso (F.map a) := by |
| 36 | dsimp only [a] |
| 37 | rw [F.map_comp] |
| 38 | infer_instance |
| 39 | have hb : IsIso (F.map b) := by |
| 40 | dsimp only [b, F, adj] |
| 41 | infer_instance |
| 42 | have : PreservesLimits F := Module.RestrictionLimits.moduleRestrictFunctor_preservesLimits U.ι |
| 43 | have hsquare := (IsPullback.of_hasPullback a b).map F |
| 44 | refine ⟨pullback a b, pullback.fst a b, pullback.snd a b, |
| 45 | ModulePullbacks.modulePullback_quasicoherent a b, ModulePullbacks.modulePullback_finiteType a b, |
| 46 | hsquare.isIso_fst_of_isIso, hsquare.isIso_snd_of_isIso, ?_⟩ |
| 47 | have ha' : F.map a ≫ adj.counit.app (F.obj N) = e.hom := by |
| 48 | dsimp only [a] |
| 49 | rw [F.map_comp, Category.assoc] |
| 50 | change F.map (adj.unit.app M) ≫ (G ⋙ F).map e.hom ≫ |
| 51 | adj.counit.app (F.obj N) = e.hom |
| 52 | rw [adj.counit.naturality] |
| 53 | change F.map (adj.unit.app M) ≫ adj.counit.app (F.obj M) ≫ e.hom = e.hom |
| 54 | have ht : F.map (adj.unit.app M) ≫ adj.counit.app (F.obj M) = 𝟙 _ := |
| 55 | adj.left_triangle_components M |
| 56 | rw [← Category.assoc, ht, Category.id_comp] |
| 57 | have hb' : F.map b ≫ adj.counit.app (F.obj N) = 𝟙 _ := |
| 58 | adj.left_triangle_components N |
| 59 | have h := congrArg (fun t => t ≫ adj.counit.app (F.obj N)) hsquare.w |
| 60 | simpa only [Category.assoc, ha', hb', Category.comp_id] using h |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coherent.OpenComparisonSpan |