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.Finite.FlatCoefficientSections |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.FiniteProjectivePurity |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Zero.CoefficientPurity |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.InternalHomCoherence |
| 5 | |
| 6 | /-! # Coefficient Local Purity -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientLocalPurity |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Native affine purity for the original negative resolution of the |
| 13 | finite flat coefficient algebra on a smooth closed subscheme. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial Opposite |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 21 | {σ : Type} [Fintype σ] [LinearOrder σ] |
| 22 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 23 | |
| 24 | variable {Y X : Scheme.{u}} (f : Y ⟶ X) [IsFinite f] [Flat f] |
| 25 | (i : X ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion i] |
| 26 | [IsLocallyNoetherian X] |
| 27 | |
| 28 | abbrev coefficients := Cech.StructurePullbackUnit.coefficients f i |
| 29 | |
| 30 | instance coefficients_quasicoherent : (coefficients f i).IsQuasicoherent := |
| 31 | IntegralComparison.Finite.MapPureTrace.coefficients_quasicoherent f i |
| 32 | instance coefficients_finiteType : (coefficients f i).IsFiniteType := |
| 33 | IntegralComparison.Finite.MapPureTrace.coefficients_finiteType f i |
| 34 | |
| 35 | variable (j : σ) (B b : ℕ) |
| 36 | abbrev source := IntegralComparison.Projective.NegativeResolution.complex (coefficients f i) j B |
| 37 | |
| 38 | instance source_quasicoherent (q : ℕ) : ((CoefficientLocalPurity.source f i j B).X q).IsQuasicoherent := |
| 39 | inferInstanceAs ((IntegralComparison.Projective.NegativeResolution.presentation |
| 40 | (IntegralComparison.Projective.NegativeResolution.state (coefficients f i) j B q).module j B).source.IsQuasicoherent) |
| 41 | |
| 42 | def internalComplex := Affine.LinearResolutionPurity.internalComplex |
| 43 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j b) (CoefficientLocalPurity.source f i j B) |
| 44 | |
| 45 | variable (U : (Proj (homogeneousSubmodule σ R)).Opens) (hU : IsAffineOpen U) |
| 46 | (k : σ) (hUk : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k) |
| 47 | |
| 48 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 49 | attribute [local instance] IntegralComparison.Finite.FlatCoefficientSections.quotientAlgebra IntegralComparison.Finite.FlatCoefficientSections.coefficientAlgebra IntegralComparison.Finite.FlatCoefficientSections.ambientAlgebra |
| 50 | |
| 51 | def quotientIso (rs : List Γ(Proj (homogeneousSubmodule σ R), U)) |
| 52 | (hrs : RingHom.ker (i.app U).hom = Ideal.ofList rs) : |
| 53 | ProjectiveResolution.DualPurity.quotient Γ(Proj (homogeneousSubmodule σ R), U) rs ≅ |
| 54 | ModuleCat.of Γ(Proj (homogeneousSubmodule σ R), U) (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) := |
| 55 | Closed.ImmersionQuotientSections.listQuotientIso i U hU rs hrs |
| 56 | |
| 57 | include hU k hUk in |
| 58 | omit [LinearOrder σ] in |
| 59 | theorem exactAt (rs : List Γ(Proj (homogeneousSubmodule σ R), U)) |
| 60 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Proj (homogeneousSubmodule σ R), U) rs) |
| 61 | (hrs : RingHom.ker (i.app U).hom = Ideal.ofList rs) (q : ℕ) (hq : q ≠ rs.length) : |
| 62 | (Affine.LocalExactness.sectionComplex (internalComplex f i j B b) U).ExactAt q := by |
| 63 | let (q : ℕ) : Projective ((AffineOpen.InternalHom.sections U hU).obj |
| 64 | ((CoefficientLocalPurity.source f i j B).X q)) := |
| 65 | Affine.ProjectiveResolutionTerms.term_projective U hU k hUk (coefficients f i) j B q |
| 66 | let : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U) := IntegralComparison.Finite.FlatCoefficientSections.finite f i U hU |
| 67 | let : Module.Projective (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U) := IntegralComparison.Finite.FlatCoefficientSections.projective f i U hU |
| 68 | exact Affine.FiniteProjectivePurity.exactAt U hU |
| 69 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j b) (CoefficientLocalPurity.source f i j B) (coefficients f i) |
| 70 | (IntegralComparison.Projective.NegativeResolution.augmentation (coefficients f i) j B) |
| 71 | (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U) (IntegralComparison.Finite.FlatCoefficientSections.chartIso f i U hU) rs hreg |
| 72 | (quotientIso i U hU rs hrs) |
| 73 | (IntegralComparison.Projective.ClosedImmersionPurity.targetTrivialization j b U hU k hUk) q hq |
| 74 | |
| 75 | include hU k hUk in |
| 76 | omit [LinearOrder σ] [Flat f] [IsLocallyNoetherian X] in |
| 77 | theorem exactAt_of_unit (hunit : RingHom.ker (i.app U).hom = ⊤) (q : ℕ) : |
| 78 | (Affine.LocalExactness.sectionComplex (internalComplex f i j B b) U).ExactAt q := by |
| 79 | let (q : ℕ) : Projective ((AffineOpen.InternalHom.sections U hU).obj |
| 80 | ((CoefficientLocalPurity.source f i j B).X q)) := |
| 81 | Affine.ProjectiveResolutionTerms.term_projective U hU k hUk (coefficients f i) j B q |
| 82 | have h1 : (i.app U).hom 1 = 0 := by |
| 83 | change (1 : Γ(Proj (homogeneousSubmodule σ R), U)) ∈ RingHom.ker (i.app U).hom |
| 84 | rw [hunit] |
| 85 | trivial |
| 86 | let : Subsingleton (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) := subsingleton_of_zero_eq_one (by simpa using h1.symm) |
| 87 | let : Subsingleton (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U) := Algebra.subsingleton (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) _ |
| 88 | exact Zero.CoefficientPurity.exactAt U hU |
| 89 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j b) (CoefficientLocalPurity.source f i j B) (coefficients f i) |
| 90 | (IntegralComparison.Projective.NegativeResolution.augmentation (coefficients f i) j B) |
| 91 | (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U) (IntegralComparison.Finite.FlatCoefficientSections.chartIso f i U hU) (ModuleCat.isZero_of_subsingleton _) q |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientLocalPurity |