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.NumberTheory.PadicHodge.IntegralComparison.Open.InternalHom |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.InternalHomComplex |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent |
| 4 | |
| 5 | /-! # Internal Hom -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! On an actual affine open, sections of the internal Hom are precisely |
| 12 | linear maps of the affine section modules. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 21 | |
| 22 | def chartFunctor : X.Modules ⥤ (Spec Γ(X, U)).Modules := |
| 23 | Scheme.Modules.restrictFunctor U.ι ⋙ Scheme.Modules.restrictFunctor hU.isoSpec.inv |
| 24 | |
| 25 | def sections : X.Modules ⥤ ModuleCat Γ(X, U) := |
| 26 | chartFunctor U hU ⋙ Affine.InternalHom.sections |
| 27 | |
| 28 | variable (M N : X.Modules) |
| 29 | |
| 30 | instance chart_quasicoherent [M.IsQuasicoherent] : |
| 31 | ((chartFunctor U hU).obj M).IsQuasicoherent := by |
| 32 | dsimp [chartFunctor] |
| 33 | infer_instance |
| 34 | |
| 35 | def chartEquiv : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N, U) ≃+ |
| 36 | ((chartFunctor U hU).obj M ⟶ (chartFunctor U hU).obj N) := by |
| 37 | let F := Scheme.Modules.restrictFunctor hU.isoSpec.inv |
| 38 | letI : F.IsEquivalence := inferInstanceAs |
| 39 | (Scheme.Modules.restrictFunctor hU.isoSpec.symm.hom).IsEquivalence |
| 40 | letI : F.Additive := Functor.additive_of_preserves_binary_products F |
| 41 | exact (Open.InternalHom.sectionEquiv M N U).trans |
| 42 | { toEquiv := (Functor.FullyFaithful.ofFullyFaithful F).homEquiv |
| 43 | map_add' f g := F.map_add } |
| 44 | |
| 45 | theorem chartEquiv_precomp {M' : X.Modules} (f : M ⟶ M') |
| 46 | (q : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M' N, U)) : |
| 47 | chartEquiv U hU M N ((ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomFunctoriality.Construction.sheafHomMap f (𝟙 N)).val.app (op U) q) = |
| 48 | (chartFunctor U hU).map f ≫ chartEquiv U hU M' N q := by |
| 49 | change (Scheme.Modules.restrictFunctor hU.isoSpec.inv).map |
| 50 | (Open.InternalHom.sectionEquiv M N U _) = _ |
| 51 | rw [Open.InternalHom.sectionEquiv_precomp, CategoryTheory.Functor.map_comp] |
| 52 | rfl |
| 53 | |
| 54 | def equiv [M.IsQuasicoherent] : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N, U) ≃+ |
| 55 | ((sections U hU).obj M ⟶ (sections U hU).obj N) := by |
| 56 | let M' := (chartFunctor U hU).obj M |
| 57 | let N' := (chartFunctor U hU).obj N |
| 58 | letI : M'.IsQuasicoherent := by |
| 59 | dsimp [M', chartFunctor] |
| 60 | infer_instance |
| 61 | exact (chartEquiv U hU M N).trans |
| 62 | { toEquiv := Affine.InternalHom.homEquiv M' N' |
| 63 | map_add' f g := by |
| 64 | change Affine.InternalHom.homEquiv M' N' (f + g) = |
| 65 | Affine.InternalHom.homEquiv M' N' f + Affine.InternalHom.homEquiv M' N' g |
| 66 | rw [Affine.InternalHom.homEquiv_apply, Affine.InternalHom.homEquiv_apply, |
| 67 | Affine.InternalHom.homEquiv_apply] |
| 68 | rfl } |
| 69 | |
| 70 | theorem equiv_apply [M.IsQuasicoherent] (q : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N, U)) : |
| 71 | equiv U hU M N q = Affine.InternalHom.sections.map (chartEquiv U hU M N q) := by |
| 72 | let : ((chartFunctor U hU).obj M).IsQuasicoherent := chart_quasicoherent U hU M |
| 73 | exact Affine.InternalHom.homEquiv_apply _ _ _ |
| 74 | |
| 75 | theorem precomp [M.IsQuasicoherent] {M' : X.Modules} [M'.IsQuasicoherent] |
| 76 | (f : M ⟶ M') (q : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M' N, U)) : |
| 77 | equiv U hU M N ((ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomFunctoriality.Construction.sheafHomMap f (𝟙 N)).val.app (op U) q) = |
| 78 | (sections U hU).map f ≫ equiv U hU M' N q := by |
| 79 | simp only [equiv_apply, chartEquiv_precomp, CategoryTheory.Functor.map_comp] |
| 80 | rfl |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |