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.FiniteTerms |
| 2 | |
| 3 | /-! # Lowest Term -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ScalarKoszul.LowestTerm |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The lowest Koszul term is the coefficient module. Its first differential has the explicit recursive form consisting of minus the previous differential and multiplication by the new parameter. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CochainComplex |
| 11 | universe u |
| 12 | variable {R : Type u} [CommRing R] |
| 13 | |
| 14 | def scalarKoszulLowestIndex : List R → ℤ |
| 15 | | [] => 0 |
| 16 | | _ :: rs => scalarKoszulLowestIndex rs - 1 |
| 17 | |
| 18 | def scalarKoszulNextIndex : List R → ℤ |
| 19 | | [] => 1 |
| 20 | | _ :: rs => LowestTerm.scalarKoszulLowestIndex rs |
| 21 | |
| 22 | omit [CommRing R] in |
| 23 | theorem scalarKoszulLowestIndex_eq_neg_length (rs : List R) : |
| 24 | LowestTerm.scalarKoszulLowestIndex rs = -(rs.length : ℤ) := by |
| 25 | induction rs with |
| 26 | | nil => rfl |
| 27 | | cons r rs ih => |
| 28 | simp only [LowestTerm.scalarKoszulLowestIndex, List.length_cons, Nat.cast_add, Nat.cast_one, ih] |
| 29 | omega |
| 30 | |
| 31 | omit [CommRing R] in |
| 32 | theorem scalarKoszulLowestIndex_add_one (rs : List R) : |
| 33 | LowestTerm.scalarKoszulLowestIndex rs + 1 = scalarKoszulNextIndex rs := by |
| 34 | cases rs <;> simp [LowestTerm.scalarKoszulLowestIndex, scalarKoszulNextIndex] |
| 35 | |
| 36 | def mappingConeFstIsoOfZeroCurrent (C : CochainComplex (ModuleCat.{u} R) ℤ) |
| 37 | (f : C ⟶ C) (i j : ℤ) (hij : i + 1 = j) (hz : IsZero (C.X i)) : |
| 38 | (mappingCone f).X i ≅ C.X j where |
| 39 | hom := (mappingCone.fst f).1.v i j hij |
| 40 | inv := (mappingCone.inl f).v j i (by omega) |
| 41 | hom_inv_id := by |
| 42 | have hs : (mappingCone.snd f).v i i (add_zero i) = 0 := hz.eq_of_tgt _ _ |
| 43 | have h := mappingCone.id_X f i j hij |
| 44 | rw [hs, zero_comp, add_zero] at h |
| 45 | exact h |
| 46 | inv_hom_id := mappingCone.inl_v_fst_v f j i hij |
| 47 | |
| 48 | def scalarKoszulLowestTermIso (M : ModuleCat.{u} R) : |
| 49 | ∀ rs : List R, (KoszulComplex.scalarKoszulComplex M rs).X (LowestTerm.scalarKoszulLowestIndex rs) ≅ M |
| 50 | | [] => HomologicalComplex.singleObjXSelf (.up ℤ) 0 M |
| 51 | | r :: rs => by |
| 52 | let i := LowestTerm.scalarKoszulLowestIndex rs |
| 53 | have hz : IsZero ((KoszulComplex.scalarKoszulComplex M rs).X (i - 1)) := by |
| 54 | apply KoszulComplex.scalarKoszulComplex_isZero_X M rs |
| 55 | apply Or.inl |
| 56 | have hi := scalarKoszulLowestIndex_eq_neg_length rs |
| 57 | dsimp only [i] |
| 58 | omega |
| 59 | exact mappingConeFstIsoOfZeroCurrent (KoszulComplex.scalarKoszulComplex M rs) |
| 60 | (r • 𝟙 (KoszulComplex.scalarKoszulComplex M rs)) (i - 1) i (by omega) hz ≪≫ scalarKoszulLowestTermIso M rs |
| 61 | |
| 62 | def scalarKoszulFirstMap (M : ModuleCat.{u} R) (rs : List R) : |
| 63 | M →ₗ[R] (KoszulComplex.scalarKoszulComplex M rs).X (scalarKoszulNextIndex rs) := |
| 64 | ((KoszulComplex.scalarKoszulComplex M rs).d (LowestTerm.scalarKoszulLowestIndex rs) (scalarKoszulNextIndex rs)).hom.comp |
| 65 | (LowestTerm.scalarKoszulLowestTermIso M rs).inv.hom |
| 66 | |
| 67 | theorem scalarKoszulFirstMap_cons (M : ModuleCat.{u} R) (r : R) (rs : List R) (m : M) : |
| 68 | scalarKoszulFirstMap M (r :: rs) m = |
| 69 | r • (mappingCone.inr (r • 𝟙 (KoszulComplex.scalarKoszulComplex M rs))).f (LowestTerm.scalarKoszulLowestIndex rs) |
| 70 | ((LowestTerm.scalarKoszulLowestTermIso M rs).inv m) - |
| 71 | (mappingCone.inl (r • 𝟙 (KoszulComplex.scalarKoszulComplex M rs))).v |
| 72 | (scalarKoszulNextIndex rs) (LowestTerm.scalarKoszulLowestIndex rs) |
| 73 | (by have h := scalarKoszulLowestIndex_add_one rs; omega) (scalarKoszulFirstMap M rs m) := by |
| 74 | let C := KoszulComplex.scalarKoszulComplex M rs |
| 75 | let f := r • 𝟙 C |
| 76 | let E := LowestTerm.scalarKoszulLowestTermIso M rs |
| 77 | let i := LowestTerm.scalarKoszulLowestIndex rs |
| 78 | let k := scalarKoszulNextIndex rs |
| 79 | have hik : i + 1 = k := scalarKoszulLowestIndex_add_one rs |
| 80 | have h := congrArg (fun a => E.inv ≫ a) |
| 81 | (mappingCone.inl_v_d f i (i - 1) k (by omega) (by omega)) |
| 82 | rw [Preadditive.comp_sub] at h |
| 83 | have hm := ConcreteCategory.congr_hom h m |
| 84 | change scalarKoszulFirstMap M (r :: rs) m = |
| 85 | (mappingCone.inr f).f i (r • E.inv m) - |
| 86 | (mappingCone.inl f).v k i (by omega) (scalarKoszulFirstMap M rs m) at hm |
| 87 | rw [((mappingCone.inr f).f i).hom.map_smul] at hm |
| 88 | exact hm |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ScalarKoszul.LowestTerm |