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.PELModuli.IntegralModel.QuasicoherentPushforward |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.CoherentBinaryBiproduct |
| 3 | import Mathlib.CategoryTheory.Limits.Shapes.Pullback.IsPullback.Basic |
| 4 | |
| 5 | /-! # Coherent Comparison -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.CoherentComparison |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Coherent comparison spans extending actual isomorphisms on an open subset. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open _root_.AlgebraicGeometry.Scheme.Modules OAI.AlgebraicGeometry.SheafCohomology.Projective.CoherentBinaryBiproduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | def modulePullbackKernelIso {X : Scheme.{u}} {M N Q : X.Modules} |
| 19 | (a : M ⟶ Q) (b : N ⟶ Q) : |
| 20 | kernel (biprod.desc a (-b)) ≅ pullback a b := |
| 21 | limit.isoLimitCone ⟨_, Abelian.PullbackToBiproductIsKernel.isLimitPullbackToBiproduct a b⟩ |
| 22 | |
| 23 | theorem modulePullback_quasicoherent {X : Scheme.{u}} {M N Q : X.Modules} |
| 24 | [M.IsQuasicoherent] [N.IsQuasicoherent] [Q.IsQuasicoherent] |
| 25 | (a : M ⟶ Q) (b : N ⟶ Q) : (pullback a b).IsQuasicoherent := by |
| 26 | have : (M ⊞ N).IsQuasicoherent := SheafCohomology.Projective.CoherentBinaryBiproduct.module_biprod_quasicoherent M N |
| 27 | exact (SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent X).prop_of_iso (modulePullbackKernelIso a b) |
| 28 | (SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_kernel (biprod.desc a (-b))) |
| 29 | |
| 30 | theorem modulePullback_finiteType {X : Scheme.{u}} [IsLocallyNoetherian X] |
| 31 | {M N Q : X.Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] |
| 32 | [Q.IsQuasicoherent] [M.IsFiniteType] [N.IsFiniteType] |
| 33 | (a : M ⟶ Q) (b : N ⟶ Q) : (pullback a b).IsFiniteType := by |
| 34 | have : (M ⊞ N).IsQuasicoherent := SheafCohomology.Projective.CoherentBinaryBiproduct.module_biprod_quasicoherent M N |
| 35 | have : (M ⊞ N).IsFiniteType := SheafCohomology.Projective.CoherentBinaryBiproduct.module_biprod_finiteType M N |
| 36 | have := SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isFiniteType_kernel (biprod.desc a (-b)) |
| 37 | exact SheafCohomology.Projective.FiniteTypeIso.finiteType_of_iso (modulePullbackKernelIso a b) |
| 38 | |
| 39 | /-- The comparison is an actual fiber product inside the quasicoherent |
| 40 | direct image of one restriction. The two maps become isomorphisms on the |
| 41 | specified open subset and realize the supplied comparison there. -/ |
| 42 | theorem exists_coherent_comparison_span |
| 43 | {X : Scheme.{u}} [IsLocallyNoetherian X] |
| 44 | (U : X.Opens) [QuasiCompact U.ι] |
| 45 | (M N : X.Modules) [M.IsQuasicoherent] [N.IsQuasicoherent] |
| 46 | [M.IsFiniteType] [N.IsFiniteType] |
| 47 | (e : M.restrict U.ι ≅ N.restrict U.ι) : |
| 48 | ∃ (K : X.Modules) (a : K ⟶ M) (b : K ⟶ N), |
| 49 | K.IsQuasicoherent ∧ K.IsFiniteType ∧ |
| 50 | IsIso ((restrictFunctor U.ι).map a) ∧ |
| 51 | IsIso ((restrictFunctor U.ι).map b) ∧ |
| 52 | (restrictFunctor U.ι).map a ≫ e.hom = (restrictFunctor U.ι).map b := by |
| 53 | let F := restrictFunctor U.ι |
| 54 | let G := pushforward U.ι |
| 55 | let adj := restrictAdjunction U.ι |
| 56 | let Q := G.obj (F.obj N) |
| 57 | let a : M ⟶ Q := adj.unit.app M ≫ G.map e.hom |
| 58 | let b : N ⟶ Q := adj.unit.app N |
| 59 | have : Q.IsQuasicoherent := |
| 60 | QuasicoherentPushforward.quasicoherent_pushforward_of_quasiCompact_separated U.ι (F.obj N) |
| 61 | have ha : IsIso (F.map a) := by |
| 62 | dsimp only [a] |
| 63 | rw [F.map_comp] |
| 64 | infer_instance |
| 65 | have hb : IsIso (F.map b) := by |
| 66 | dsimp only [b, F, adj] |
| 67 | infer_instance |
| 68 | have : PreservesLimits F := SheafCohomology.Projective.ModuleRestrictLimits.Scheme.Modules.restrictFunctor_preservesLimits U.ι |
| 69 | have hsquare := (IsPullback.of_hasPullback a b).map F |
| 70 | refine ⟨pullback a b, pullback.fst a b, pullback.snd a b, |
| 71 | modulePullback_quasicoherent a b, modulePullback_finiteType a b, |
| 72 | hsquare.isIso_fst_of_isIso, hsquare.isIso_snd_of_isIso, ?_⟩ |
| 73 | have ha' : F.map a ≫ adj.counit.app (F.obj N) = e.hom := by |
| 74 | dsimp only [a] |
| 75 | rw [F.map_comp, Category.assoc] |
| 76 | change F.map (adj.unit.app M) ≫ (G ⋙ F).map e.hom ≫ |
| 77 | adj.counit.app (F.obj N) = e.hom |
| 78 | rw [adj.counit.naturality] |
| 79 | change F.map (adj.unit.app M) ≫ adj.counit.app (F.obj M) ≫ e.hom = e.hom |
| 80 | have ht : F.map (adj.unit.app M) ≫ adj.counit.app (F.obj M) = 𝟙 _ := |
| 81 | adj.left_triangle_components M |
| 82 | rw [← Category.assoc, ht, Category.id_comp] |
| 83 | have hb' : F.map b ≫ adj.counit.app (F.obj N) = 𝟙 _ := |
| 84 | adj.left_triangle_components N |
| 85 | have h := congrArg (fun t => t ≫ adj.counit.app (F.obj N)) hsquare.w |
| 86 | simpa only [Category.assoc, ha', hb', Category.comp_id] using h |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.CoherentComparison |