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.AbelianModuli.HilbertConstruction.ScalarKoszul.AugmentationIdeal |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.NegativeIntervalComplex |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AugmentedDualProjectiveResolution |
| 4 | |
| 5 | /-! # Parameter Koszul Resolution -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.ParameterKoszulResolution |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The explicitly augmented scalar Koszul complex on regular maximal-ideal parameters is a finite free projective resolution of the residue field. Positive exactness follows from the independently proved regular-local acyclicity argument. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits IsLocalRing |
| 13 | universe u |
| 14 | variable {R : Type u} [CommRing R] [IsLocalRing R] [IsNoetherianRing R] |
| 15 | |
| 16 | theorem regularParameterKoszul_exact_negative (rs : List R) |
| 17 | (hreg : SequenceBasic.RingTheory.Sequence.IsRegular R rs) (hgen : SequenceBasic.Ideal.ofList rs = maximalIdeal R) : |
| 18 | ∀ i : ℤ, i < 0 → (ScalarKoszul.KoszulComplex.scalarKoszulComplex (ModuleCat.of R R) rs).ExactAt i := by |
| 19 | let K := ScalarKoszul.KoszulComplex.scalarKoszulComplex (ModuleCat.of R R) rs |
| 20 | let g := rs.length |
| 21 | let C := HilbertConstruction.Finite.NegativeIntervalComplex.negativeIntervalCochain K g |
| 22 | have hbound : ∀ i, i < -(g : ℤ) ∨ 0 < i → IsZero (K.X i) := |
| 23 | ScalarKoszul.KoszulComplex.scalarKoszulComplex_isZero_X (ModuleCat.of R R) rs |
| 24 | have hff := ScalarKoszul.FiniteTerms.scalarKoszulComplex_finite_free (ModuleCat.of R R) rs |
| 25 | have hffC := HilbertConstruction.Finite.NegativeIntervalComplex.negativeIntervalCochain_finite_free K g (fun i => (hff i).1) (fun i => (hff i).2) |
| 26 | have hfield : Cochain.FieldSupport.CochainFieldSupport C (maximalIdeal R) := by |
| 27 | apply HilbertConstruction.Finite.NegativeIntervalComplex.negativeIntervalCochain_fieldSupport K g hbound |
| 28 | intro B _ _ hnot |
| 29 | have hn : ¬ SequenceBasic.Ideal.ofList rs ≤ RingHom.ker (algebraMap R B) := by simpa only [hgen] using hnot |
| 30 | obtain ⟨h⟩ := ScalarKoszul.KoszulComplex.scalarKoszulComplex_field_contractible_off_ideal B (ModuleCat.of R R) rs hn |
| 31 | intro i |
| 32 | apply (HomologicalComplex.exactAt_iff_isZero_homology _ i).mpr |
| 33 | apply (IsZero.iff_id_eq_zero _).mpr |
| 34 | simpa only [HomologicalComplex.homologyMap_id, HomologicalComplex.homologyMap_zero] |
| 35 | using h.homologyMap_eq i |
| 36 | intro i hi |
| 37 | by_cases hlow : -(g : ℤ) ≤ i |
| 38 | · let q := (i + g).toNat |
| 39 | have hq : q < g := by dsimp [q]; omega |
| 40 | have hqi : (q : ℤ) - g = i := by dsimp [q]; omega |
| 41 | have hz := LocalCochainAcyclicity.regularLocalCochain_homology_zero_below_regular_parameters g R C |
| 42 | (fun n => (hffC n).1) (fun n => (hffC n).2) rs rfl hreg hgen hfield q hq |
| 43 | have he := (HilbertConstruction.Finite.NegativeIntervalComplex.negativeIntervalCochain_exactAt_iff K g q (Nat.le_of_lt hq) hbound).mp |
| 44 | ((C.exactAt_iff_isZero_homology q).mpr hz) |
| 45 | simpa only [hqi] using he |
| 46 | · exact HomologicalComplex.ExactAt.of_isZero (hbound i (Or.inl (lt_of_not_ge hlow))) |
| 47 | |
| 48 | def scalarKoszulChainComplex (rs : List R) : ChainComplex (ModuleCat.{u} R) ℕ := |
| 49 | (ScalarKoszul.KoszulComplex.scalarKoszulComplex (ModuleCat.of R R) rs).restriction ComplexShape.embeddingDownNat |
| 50 | |
| 51 | def regularParameterKoszulResolution (rs : List R) |
| 52 | (hreg : SequenceBasic.RingTheory.Sequence.IsRegular R rs) (hgen : SequenceBasic.Ideal.ofList rs = maximalIdeal R) : |
| 53 | HilbertConstruction.Projective.ResolutionBasic.ProjectiveResolution (ModuleCat.of R (ResidueField R)) := by |
| 54 | let K := ScalarKoszul.KoszulComplex.scalarKoszulComplex (ModuleCat.of R R) rs |
| 55 | let C := scalarKoszulChainComplex rs |
| 56 | let e := ComplexShape.embeddingDownNat |
| 57 | letI : K.IsStrictlySupported e := { |
| 58 | isZero := fun i hi => by |
| 59 | have hip : 0 < i := by |
| 60 | by_contra hn |
| 61 | obtain ⟨n, rfl⟩ := Int.exists_eq_neg_ofNat (le_of_not_gt hn) |
| 62 | exact hi n rfl |
| 63 | exact ScalarKoszul.KoszulComplex.scalarKoszulComplex_isZero_X (ModuleCat.of R R) rs i (Or.inr hip) } |
| 64 | have hproj (n : ℕ) : Projective (C.X n) := by |
| 65 | have hff := ScalarKoszul.FiniteTerms.scalarKoszulComplex_finite_free (ModuleCat.of R R) rs (-(n : ℤ)) |
| 66 | have : Module.Finite R (C.X n) := hff.1 |
| 67 | have : Module.Free R (C.X n) := hff.2 |
| 68 | infer_instance |
| 69 | have hexa (n : ℕ) (hn : 0 < n) : C.ExactAt n := by |
| 70 | apply (SupportedComplexRestriction.strictlySupported_restriction_exactAt_iff e K n).mpr |
| 71 | exact regularParameterKoszul_exact_negative rs hreg hgen (-(n : ℤ)) (by omega) |
| 72 | let E : cokernel (C.d 1 0) ≅ ModuleCat.of R (ResidueField R) := |
| 73 | ScalarKoszul.AugmentationIdeal.scalarKoszulCokernelQuotientIso rs ≪≫ (Submodule.quotEquivOfEq _ _ hgen).toModuleIso |
| 74 | exact AugmentedDualProjectiveResolution.projectiveResolutionOfCokernelIso C hproj hexa E |
| 75 | |
| 76 | theorem regularParameterKoszulResolution_complex (rs : List R) |
| 77 | (hreg : SequenceBasic.RingTheory.Sequence.IsRegular R rs) (hgen : SequenceBasic.Ideal.ofList rs = maximalIdeal R) : |
| 78 | (regularParameterKoszulResolution rs hreg hgen).complex = scalarKoszulChainComplex rs := rfl |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.ParameterKoszulResolution |