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 Mathlib.RingTheory.Finiteness.Prod |
| 2 | import Mathlib.LinearAlgebra.Basis.Prod |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ScalarKoszul.KoszulComplex |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Biproducts |
| 5 | |
| 6 | /-! # Finite Terms -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ScalarKoszul.FiniteTerms |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual scalar Koszul terms are finite free when the coefficient module is finite free, and the final degree-zero term identifies with that coefficient module. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | universe u |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | |
| 17 | def scalarKoszulConsTermIso (M : ModuleCat.{u} R) (r : R) (rs : List R) (i : ℤ) : |
| 18 | (KoszulComplex.scalarKoszulComplex M (r :: rs)).X i ≅ |
| 19 | ModuleCat.of R ((KoszulComplex.scalarKoszulComplex M rs).X (i + 1) × (KoszulComplex.scalarKoszulComplex M rs).X i) := |
| 20 | HomologicalComplex.homotopyCofiber.XIsoBiprod (r • 𝟙 (KoszulComplex.scalarKoszulComplex M rs)) i (i + 1) rfl ≪≫ |
| 21 | ModuleCat.biprodIsoProd _ _ |
| 22 | |
| 23 | theorem scalarKoszulComplex_finite_free (M : ModuleCat.{u} R) |
| 24 | [Module.Finite R M] [Module.Free R M] (rs : List R) : |
| 25 | ∀ i, Module.Finite R ((KoszulComplex.scalarKoszulComplex M rs).X i) ∧ |
| 26 | Module.Free R ((KoszulComplex.scalarKoszulComplex M rs).X i) := by |
| 27 | induction rs with |
| 28 | | nil => |
| 29 | intro i |
| 30 | by_cases hi : i = 0 |
| 31 | · subst i |
| 32 | let e := (HomologicalComplex.singleObjXSelf (.up ℤ) 0 M).symm.toLinearEquiv |
| 33 | exact ⟨Module.Finite.equiv e, Module.Free.of_equiv e⟩ |
| 34 | · have : Subsingleton ((KoszulComplex.scalarKoszulComplex M []).X i) := |
| 35 | ModuleCat.subsingleton_of_isZero (HomologicalComplex.isZero_single_obj_X (.up ℤ) 0 M i hi) |
| 36 | exact ⟨inferInstance, inferInstance⟩ |
| 37 | | cons r rs ih => |
| 38 | intro i |
| 39 | have : Module.Finite R ((KoszulComplex.scalarKoszulComplex M rs).X (i + 1)) := (ih (i + 1)).1 |
| 40 | have : Module.Free R ((KoszulComplex.scalarKoszulComplex M rs).X (i + 1)) := (ih (i + 1)).2 |
| 41 | have : Module.Finite R ((KoszulComplex.scalarKoszulComplex M rs).X i) := (ih i).1 |
| 42 | have : Module.Free R ((KoszulComplex.scalarKoszulComplex M rs).X i) := (ih i).2 |
| 43 | let e : ((KoszulComplex.scalarKoszulComplex M rs).X (i + 1) × (KoszulComplex.scalarKoszulComplex M rs).X i) ≃ₗ[R] |
| 44 | (KoszulComplex.scalarKoszulComplex M (r :: rs)).X i := |
| 45 | (scalarKoszulConsTermIso M r rs i).symm.toLinearEquiv |
| 46 | exact ⟨Module.Finite.equiv e, Module.Free.of_equiv e⟩ |
| 47 | |
| 48 | def mappingConeSndIsoOfZeroNext (C : CochainComplex (ModuleCat.{u} R) ℤ) |
| 49 | (f : C ⟶ C) (i : ℤ) (hz : IsZero (C.X (i + 1))) : |
| 50 | (CochainComplex.mappingCone f).X i ≅ C.X i where |
| 51 | hom := (CochainComplex.mappingCone.snd f).v i i (add_zero i) |
| 52 | inv := (CochainComplex.mappingCone.inr f).f i |
| 53 | hom_inv_id := by |
| 54 | have hf : (CochainComplex.mappingCone.fst f).1.v i (i + 1) rfl = 0 := hz.eq_of_tgt _ _ |
| 55 | have h := CochainComplex.mappingCone.id_X f i (i + 1) rfl |
| 56 | rw [hf, zero_comp, zero_add] at h |
| 57 | exact h |
| 58 | inv_hom_id := CochainComplex.mappingCone.inr_f_snd_v f i |
| 59 | |
| 60 | def scalarKoszulZeroTermIso (M : ModuleCat.{u} R) : |
| 61 | ∀ rs : List R, (KoszulComplex.scalarKoszulComplex M rs).X 0 ≅ M |
| 62 | | [] => HomologicalComplex.singleObjXSelf (.up ℤ) 0 M |
| 63 | | r :: rs => by |
| 64 | exact mappingConeSndIsoOfZeroNext (KoszulComplex.scalarKoszulComplex M rs) |
| 65 | (r • 𝟙 (KoszulComplex.scalarKoszulComplex M rs)) 0 |
| 66 | (KoszulComplex.scalarKoszulComplex_isZero_X M rs 1 (Or.inr (by decide))) ≪≫ |
| 67 | scalarKoszulZeroTermIso M rs |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ScalarKoszul.FiniteTerms |