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.IntersectionTheory.ProjectionFormula.BrutalFiltrationQuotient |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SplitSequenceCochain |
| 3 | |
| 4 | /-! # Brutal Connecting Map -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BrutalConnectingMap |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The connecting cochain between adjacent columns of the tail filtration. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CochainComplex _root_.CochainComplex.HomComplex |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BrutalFiltration OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BrutalFiltrationQuotient |
| 18 | |
| 19 | variable (R : Type) [CommRing R] (A : CochainComplex (ModuleCat.{0} R) ℤ) (p : ℤ) |
| 20 | |
| 21 | def retraction (n : ℤ) : (BrutalFiltration.complex R A ((p + 1 : ℤ) : EInt)).X n ⟶ (BrutalFiltration.complex R A (p : EInt)).X n := |
| 22 | (BrutalFiltrationQuotient.splitting R A p n).r |
| 23 | |
| 24 | def sectionMap (n : ℤ) : (BrutalFiltrationQuotient.quotient R A p).X n ⟶ (BrutalFiltration.complex R A ((p + 1 : ℤ) : EInt)).X n := |
| 25 | (BrutalFiltrationQuotient.splitting R A p n).s |
| 26 | |
| 27 | @[reassoc] |
| 28 | theorem retraction_toComplex (n : ℤ) (hn : n ≠ -(p + 1)) : |
| 29 | retraction R A p n ≫ (BrutalFiltration.toComplex R A (p : EInt)).f n = |
| 30 | (BrutalFiltration.toComplex R A ((p + 1 : ℤ) : EInt)).f n := by |
| 31 | have hz : (BrutalFiltrationQuotient.projection R A p).f n = 0 := |
| 32 | (HomologicalComplex.isZero_single_obj_X (.up ℤ) (-(p + 1)) (A.X (-(p + 1))) n hn).eq_of_tgt _ _ |
| 33 | have hr : retraction R A p n ≫ (BrutalFiltrationQuotient.stageMap R A p).f n = 𝟙 _ := by |
| 34 | have h : retraction R A p n ≫ (BrutalFiltrationQuotient.stageMap R A p).f n = |
| 35 | 𝟙 _ - (BrutalFiltrationQuotient.projection R A p).f n ≫ sectionMap R A p n := (BrutalFiltrationQuotient.splitting R A p n).r_f |
| 36 | simpa only [hz, zero_comp, sub_zero] using h |
| 37 | have hi : (BrutalFiltrationQuotient.stageMap R A p).f n ≫ (BrutalFiltration.toComplex R A ((p + 1 : ℤ) : EInt)).f n = |
| 38 | (BrutalFiltration.toComplex R A (p : EInt)).f n := rfl |
| 39 | rw [← hi, ← Category.assoc, hr, Category.id_comp] |
| 40 | |
| 41 | @[reassoc] |
| 42 | theorem section_toComplex : |
| 43 | sectionMap R A p (-(p + 1)) ≫ (BrutalFiltration.toComplex R A ((p + 1 : ℤ) : EInt)).f (-(p + 1)) = |
| 44 | (HomologicalComplex.singleObjXSelf (.up ℤ) (-(p + 1)) (A.X (-(p + 1)))).hom := by |
| 45 | have hs : sectionMap R A p (-(p + 1)) ≫ (BrutalFiltrationQuotient.projection R A p).f (-(p + 1)) = 𝟙 _ := |
| 46 | (BrutalFiltrationQuotient.splitting R A p (-(p + 1))).s_g |
| 47 | have hp : (BrutalFiltrationQuotient.projection R A p).f (-(p + 1)) = |
| 48 | (BrutalFiltration.toComplex R A ((p + 1 : ℤ) : EInt)).f (-(p + 1)) ≫ |
| 49 | (HomologicalComplex.singleObjXSelf (.up ℤ) (-(p + 1)) (A.X (-(p + 1)))).inv := |
| 50 | HomologicalComplex.mkHomToSingle_f _ _ |
| 51 | rw [hp] at hs |
| 52 | rw [← cancel_mono (HomologicalComplex.singleObjXSelf (.up ℤ) (-(p + 1)) (A.X (-(p + 1)))).inv, |
| 53 | Category.assoc, hs, Iso.hom_inv_id] |
| 54 | |
| 55 | @[reassoc] |
| 56 | theorem projection_toTerm : |
| 57 | (BrutalFiltrationQuotient.projection R A p).f (-(p + 1)) ≫ |
| 58 | (HomologicalComplex.singleObjXSelf (.up ℤ) (-(p + 1)) (A.X (-(p + 1)))).hom = |
| 59 | (BrutalFiltration.toComplex R A ((p + 1 : ℤ) : EInt)).f (-(p + 1)) := by |
| 60 | rw [BrutalFiltrationQuotient.projection, HomologicalComplex.mkHomToSingle_f, Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 61 | |
| 62 | def boundaryCocycle : Cocycle (BrutalFiltrationQuotient.quotient R A (p + 1)) (BrutalFiltration.complex R A ((p + 1 : ℤ) : EInt)) 1 := |
| 63 | cocycleOfDegreewiseSplit (BrutalFiltrationQuotient.sequence R A (p + 1)) (BrutalFiltrationQuotient.splitting R A (p + 1)) |
| 64 | |
| 65 | def columnConnecting : Cocycle (BrutalFiltrationQuotient.quotient R A (p + 1)) (BrutalFiltrationQuotient.quotient R A p) 1 := |
| 66 | Cocycle.mk |
| 67 | ((boundaryCocycle R A p).1.comp |
| 68 | (Cochain.ofHom (BrutalFiltrationQuotient.projection R A p)) (add_zero 1)) 2 rfl (by |
| 69 | rw [δ_comp_zero_cochain (boundaryCocycle R A p).1 (Cochain.ofHom (BrutalFiltrationQuotient.projection R A p)) 2 rfl] |
| 70 | simp only [δ_ofHom, Cochain.comp_zero, |
| 71 | Cocycle.δ_eq_zero, Cochain.zero_comp, add_zero]) |
| 72 | |
| 73 | theorem columnConnecting_value : |
| 74 | (HomologicalComplex.singleObjXSelf (.up ℤ) (-((p + 1) + 1)) (A.X (-((p + 1) + 1)))).inv ≫ |
| 75 | (columnConnecting R A p).1.v (-((p + 1) + 1)) (-(p + 1)) (by omega) ≫ |
| 76 | (HomologicalComplex.singleObjXSelf (.up ℤ) (-(p + 1)) (A.X (-(p + 1)))).hom = |
| 77 | A.d (-((p + 1) + 1)) (-(p + 1)) := by |
| 78 | simp only [columnConnecting, Cocycle.mk_coe, Cochain.comp_zero_cochain_v, |
| 79 | Cochain.ofHom_v, boundaryCocycle, cocycleOfDegreewiseSplit, Cochain.mk_v] |
| 80 | change _ ≫ (sectionMap R A (p + 1) (-((p + 1) + 1)) ≫ |
| 81 | (BrutalFiltration.complex R A (((p + 1) + 1 : ℤ) : EInt)).d (-((p + 1) + 1)) (-(p + 1)) ≫ |
| 82 | retraction R A (p + 1) (-(p + 1))) ≫ (BrutalFiltrationQuotient.projection R A p).f (-(p + 1)) ≫ _ = _ |
| 83 | simp only [Category.assoc] |
| 84 | rw [projection_toTerm, retraction_toComplex R A (p + 1) (-(p + 1)) (by omega), |
| 85 | ← (BrutalFiltration.toComplex R A (((p + 1) + 1 : ℤ) : EInt)).comm, |
| 86 | section_toComplex_assoc, Iso.inv_hom_id_assoc] |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BrutalConnectingMap |