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.ExactOpenRestriction |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.SpecHomology |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ProjectiveResolutionTerms |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.QuasicoherentTruncation |
| 5 | import Mathlib.CategoryTheory.Abelian.Projective.Resolution |
| 6 | |
| 7 | /-! # Resolution -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.Resolution |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Restricting the genuine negative-twist resolution to an affine |
| 14 | coordinate subopen gives a projective resolution of the actual section |
| 15 | module of the original sheaf. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |
| 24 | |
| 25 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 26 | |
| 27 | instance chart_additive : (InternalHom.chartFunctor U hU).Additive := by |
| 28 | unfold InternalHom.chartFunctor |
| 29 | infer_instance |
| 30 | |
| 31 | instance chart_preservesFiniteLimits : PreservesFiniteLimits (InternalHom.chartFunctor U hU) := by |
| 32 | unfold InternalHom.chartFunctor |
| 33 | infer_instance |
| 34 | |
| 35 | instance chart_preservesFiniteColimits : PreservesFiniteColimits (InternalHom.chartFunctor U hU) := by |
| 36 | unfold InternalHom.chartFunctor |
| 37 | infer_instance |
| 38 | |
| 39 | instance chart_preservesHomology : (InternalHom.chartFunctor U hU).PreservesHomology := inferInstance |
| 40 | |
| 41 | theorem quasiIso {ι : Type*} {c : ComplexShape ι} {K L : HomologicalComplex X.Modules c} |
| 42 | (f : K ⟶ L) [∀ n, (K.X n).IsQuasicoherent] [∀ n, (L.X n).IsQuasicoherent] |
| 43 | [QuasiIso f] : QuasiIso (((InternalHom.sections U hU).mapHomologicalComplex c).map f) := by |
| 44 | let F := (InternalHom.chartFunctor U hU).mapHomologicalComplex c |
| 45 | let (n : ι) : ((F.obj K).X n).IsQuasicoherent := InternalHom.chart_quasicoherent U hU (K.X n) |
| 46 | let (n : ι) : ((F.obj L).X n).IsQuasicoherent := InternalHom.chart_quasicoherent U hU (L.X n) |
| 47 | have : QuasiIso (F.map f) := inferInstance |
| 48 | exact Affine.SpecHomology.quasiIso (F.map f) |
| 49 | |
| 50 | theorem single_quasicoherent (M : X.Modules) [M.IsQuasicoherent] (n : ℕ) : |
| 51 | (((ChainComplex.single₀ X.Modules).obj M).X n).IsQuasicoherent := by |
| 52 | by_cases hn : n = 0 |
| 53 | · subst n |
| 54 | exact (AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent X).prop_of_iso |
| 55 | (HomologicalComplex.singleObjXSelf (.down ℕ) 0 M).symm inferInstance |
| 56 | · exact QuasicoherentTruncation.of_isZero _ |
| 57 | (HomologicalComplex.isZero_single_obj_X (.down ℕ) 0 M n hn) |
| 58 | |
| 59 | variable (M : X.Modules) [M.IsQuasicoherent] (K : ChainComplex X.Modules ℕ) |
| 60 | [∀ n, (K.X n).IsQuasicoherent] (ε : K ⟶ (ChainComplex.single₀ X.Modules).obj M) |
| 61 | [QuasiIso ε] |
| 62 | |
| 63 | def ofAugmentation [∀ n, Projective ((InternalHom.sections U hU).obj (K.X n))] : |
| 64 | ProjectiveResolution ((InternalHom.sections U hU).obj M) := by |
| 65 | let (n : ℕ) : (((ChainComplex.single₀ X.Modules).obj M).X n).IsQuasicoherent := |
| 66 | single_quasicoherent M n |
| 67 | let F := (InternalHom.sections U hU).mapHomologicalComplex (.down ℕ) |
| 68 | have : QuasiIso (F.map ε) := AffineOpen.Resolution.quasiIso U hU ε |
| 69 | exact |
| 70 | { complex := F.obj K |
| 71 | projective n := inferInstanceAs (Projective ((InternalHom.sections U hU).obj (K.X n))) |
| 72 | π := F.map ε ≫ (HomologicalComplex.singleMapHomologicalComplex (InternalHom.sections U hU) (.down ℕ) 0).hom.app M |
| 73 | quasiIso := quasiIso_comp _ _ } |
| 74 | |
| 75 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 76 | {σ : Type} [Fintype σ] [LinearOrder σ] |
| 77 | |
| 78 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 79 | |
| 80 | def negativeResolution (M : (Proj (homogeneousSubmodule σ R)).Modules) |
| 81 | [M.IsQuasicoherent] [M.IsFiniteType] |
| 82 | (V : (Proj (homogeneousSubmodule σ R)).Opens) (hV : IsAffineOpen V) |
| 83 | (i : σ) (hVi : V ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) (j : σ) (B : ℕ) : |
| 84 | ProjectiveResolution ((InternalHom.sections V hV).obj M) := by |
| 85 | let K := IntegralComparison.Projective.NegativeResolution.complex M j B |
| 86 | let (n : ℕ) : (K.X n).IsQuasicoherent := inferInstanceAs |
| 87 | ((IntegralComparison.Projective.NegativeResolution.presentation |
| 88 | (IntegralComparison.Projective.NegativeResolution.state M j B n).module j B).source.IsQuasicoherent) |
| 89 | let (n : ℕ) : Projective ((InternalHom.sections V hV).obj (K.X n)) := |
| 90 | Affine.ProjectiveResolutionTerms.term_projective V hV i hVi M j B n |
| 91 | exact ofAugmentation V hV M K (IntegralComparison.Projective.NegativeResolution.augmentation M j B) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.Resolution |