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.Affine.IntrinsicCoefficientHom |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteCoefficient.RestrictionNormalization |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.AdjunctionGlobal |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientLocalPurity |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ProjectiveResolutionFree |
| 6 | |
| 7 | /-! # Hom Local -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomLocal |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The original finite-flat coefficient dual resolution is locally |
| 14 | the internal Hom into the actual top-form sheaf. Only ordinary affine |
| 15 | coordinate subopens are needed; the scalar global adjunction supplies |
| 16 | the intrinsic normalization. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | universe u |
| 25 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |
| 26 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 27 | |
| 28 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {n : ℕ} |
| 29 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 30 | |
| 31 | variable (X : Over (Spec (CommRingCat.of R))) {Y : Scheme.{u}} |
| 32 | (f : Y ⟶ X.left) [IsFinite f] [Flat f] |
| 33 | (i : X ⟶ IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.model R n) [IsClosedImmersion i.left] |
| 34 | (g : ℕ) [SmoothOfRelativeDimension g X.hom] [IsProper X.hom] |
| 35 | (j : Fin (n + 1)) (B : ℕ) (hB : n + 1 ≤ B) (hg : g ≤ n) |
| 36 | |
| 37 | local instance model_finiteType : LocallyOfFiniteType (IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.model R n).hom := AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ_locallyOfFiniteType |
| 38 | local instance model_noetherian : IsLocallyNoetherian (IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.model R n).left := |
| 39 | LocallyOfFiniteType.isLocallyNoetherian (IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.model R n).hom |
| 40 | |
| 41 | abbrev scalar := Global.StructureUnit.directImage i.left |
| 42 | abbrev coefficient := Cech.StructurePullbackUnit.coefficients f i.left |
| 43 | local instance : (coefficient X f i).IsQuasicoherent := IntegralComparison.Finite.MapPureTrace.coefficients_quasicoherent f i.left |
| 44 | local instance : (coefficient X f i).IsFiniteType := IntegralComparison.Finite.MapPureTrace.coefficients_finiteType f i.left |
| 45 | |
| 46 | abbrev scalarComplex := IntegralComparison.Projective.NegativeResolution.complex (scalar X i) j B |
| 47 | abbrev coefficientComplex := IntegralComparison.Projective.NegativeResolution.complex (coefficient X f i) j B |
| 48 | abbrev canonical := AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j (n + 1) |
| 49 | abbrev scalarDual := Affine.LinearResolutionPurity.internalComplex (canonical j) (scalarComplex X i j B) |
| 50 | abbrev coefficientDual := Affine.LinearResolutionPurity.internalComplex (canonical j) (coefficientComplex X f i j B) |
| 51 | abbrev sourceSheaf := (coefficientDual X f i j B).homology (n - g) |
| 52 | abbrev formSheaf := Intrinsic.ClosedFormSections.directImage R X (IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.model R n) i g |
| 53 | abbrev targetSheaf := ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (coefficient X f i) (formSheaf X i g) |
| 54 | |
| 55 | local instance : (canonical (R := R) j).IsQuasicoherent := |
| 56 | AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_quasicoherent (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower_isInvertible j (n + 1)) |
| 57 | local instance scalar_terms (q : ℕ) : ((scalarComplex X i j B).X q).IsQuasicoherent := inferInstance |
| 58 | local instance coefficient_terms (q : ℕ) : ((coefficientComplex X f i j B).X q).IsQuasicoherent := inferInstance |
| 59 | include hB in |
| 60 | omit [IsProper X.hom] in |
| 61 | theorem scalar_dual_terms (q : ℕ) : ((scalarDual X i j B).X q).IsQuasicoherent := |
| 62 | IntegralComparison.Projective.InternalHomCoherence.term (scalar X i) j B (n + 1) hB q |
| 63 | include hB in |
| 64 | omit [Flat f] [IsProper X.hom] in |
| 65 | theorem coefficient_dual_terms (q : ℕ) : ((coefficientDual X f i j B).X q).IsQuasicoherent := |
| 66 | IntegralComparison.Projective.InternalHomCoherence.term (coefficient X f i) j B (n + 1) hB q |
| 67 | |
| 68 | def scalarAdjunction : (scalarDual X i j B).homology (n - g) ≅ formSheaf X i g := by |
| 69 | letI : Smooth X.hom := SmoothOfRelativeDimension.smooth g X.hom |
| 70 | exact IntegralComparison.Projective.AdjunctionGlobal.iso X i g j B hB hg |
| 71 | |
| 72 | attribute [local instance] IntegralComparison.Finite.FlatCoefficientSections.quotientAlgebra IntegralComparison.Finite.FlatCoefficientSections.coefficientAlgebra IntegralComparison.Finite.FlatCoefficientSections.ambientAlgebra |
| 73 | |
| 74 | variable (U : (IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.space R n).Opens) (hU : IsAffineOpen U) |
| 75 | |
| 76 | include hU in |
| 77 | omit [Flat f] [IsProper X.hom] in |
| 78 | theorem coefficient_finite : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i.left U) := by |
| 79 | let : IsLocallyNoetherian X.left := LocallyOfFiniteType.isLocallyNoetherian i.left |
| 80 | exact IntegralComparison.Finite.FlatCoefficientSections.finite f i.left U hU |
| 81 | include hU in |
| 82 | omit [IsProper X.hom] in |
| 83 | theorem coefficient_projective : Module.Projective (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i.left U) := by |
| 84 | let : IsLocallyNoetherian X.left := LocallyOfFiniteType.isLocallyNoetherian i.left |
| 85 | exact IntegralComparison.Finite.FlatCoefficientSections.projective f i.left U hU |
| 86 | local instance formScalar : Module (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) Γ(formSheaf X i g, U) := |
| 87 | inferInstanceAs (Module Γ(X.left, i.left ⁻¹ᵁ U) |
| 88 | Γ(GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g, i.left ⁻¹ᵁ U)) |
| 89 | local instance formTower : IsScalarTower Γ(IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.space R n, U) (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) Γ(formSheaf X i g, U) where |
| 90 | smul_assoc a b x := by |
| 91 | change (algebraMap Γ(IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.space R n, U) (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) a * b) • x = |
| 92 | algebraMap Γ(IntegralComparison.Projective.IntrinsicOverlap.Intrinsic.space R n, U) (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) a • (b • x) |
| 93 | exact mul_smul _ _ _ |
| 94 | |
| 95 | variable (k : Fin (n + 1)) (hUk : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k) |
| 96 | |
| 97 | include hUk in |
| 98 | omit [IsProper X.hom] in |
| 99 | theorem scalar_projective (q : ℕ) : Projective ((AffineOpen.InternalHom.sections U hU).obj ((scalarComplex X i j B).X q)) := |
| 100 | Affine.ProjectiveResolutionTerms.term_projective U hU k hUk (scalar X i) j B q |
| 101 | include hUk in |
| 102 | omit [Flat f] [IsProper X.hom] in |
| 103 | theorem coefficient_term_projective (q : ℕ) : |
| 104 | Projective ((AffineOpen.InternalHom.sections U hU).obj ((coefficientComplex X f i j B).X q)) := |
| 105 | Affine.ProjectiveResolutionTerms.term_projective U hU k hUk (coefficient X f i) j B q |
| 106 | |
| 107 | def sectionIso : |
| 108 | (Affine.ModuleExactSections.sections U).obj (sourceSheaf X f i g j B) ≅ |
| 109 | (Affine.ModuleExactSections.sections U).obj (targetSheaf X f i g) := by |
| 110 | letI := formScalar X i g U |
| 111 | letI := formTower X i g U |
| 112 | letI (q : ℕ) := scalar_dual_terms X i j B hB q |
| 113 | letI (q : ℕ) := coefficient_dual_terms X f i j B hB q |
| 114 | letI := coefficient_finite X f i U hU |
| 115 | letI := coefficient_projective X f i U hU |
| 116 | letI (q : ℕ) := scalar_projective X i j B U hU k hUk q |
| 117 | letI (q : ℕ) := coefficient_term_projective X f i j B U hU k hUk q |
| 118 | exact Affine.IntrinsicCoefficientHom.iso U hU (canonical j) |
| 119 | (scalarComplex X i j B) (coefficientComplex X f i j B) (scalar X i) (coefficient X f i) |
| 120 | (IntegralComparison.Projective.NegativeResolution.augmentation (scalar X i) j B) |
| 121 | (IntegralComparison.Projective.NegativeResolution.augmentation (coefficient X f i) j B) |
| 122 | (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (i.left.app_surjective U hU) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i.left U) |
| 123 | (FiniteCoefficient.RestrictionNormalization.scalarChartIso i.left U hU) |
| 124 | (IntegralComparison.Finite.FlatCoefficientSections.chartIso f i.left U hU) (n - g) (formSheaf X i g) |
| 125 | (scalarAdjunction X i g j B hB hg) |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomLocal |