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.AbelianSingleRowTotal |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.TotalFlip |
| 3 | |
| 4 | /-! # Single Total -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Functor.SingleTotal |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Applying an additive complex-valued functor to one coefficient |
| 11 | degree gives the original coefficient complex with its actual shift. |
| 12 | The identification is natural in transformations of those functors. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.CohomologyConcentrationNaturality |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u v w z |
| 21 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 22 | {D : Type w} [Category.{z} D] [Abelian D] [HasCoproducts.{0} D] |
| 23 | (F : C ⥤ CochainComplex D ℕ) [F.Additive] (M : C) (c : ℕ) |
| 24 | |
| 25 | def bicomplex : HomologicalComplex₂ D (.up ℕ) (.up ℕ) := |
| 26 | (F.mapHomologicalComplex (.up ℕ)).obj ((single C (.up ℕ) c).obj M) |
| 27 | |
| 28 | omit [HasCoproducts.{0} D] in |
| 29 | theorem off_degree (p q : ℕ) (hq : q ≠ c) : |
| 30 | IsZero (((bicomplex F M c).flip.X p).X q) := |
| 31 | (HomologicalComplex.eval D (.up ℕ) p).map_isZero |
| 32 | (F.map_isZero (isZero_single_obj_X (.up ℕ) c M q hq)) |
| 33 | |
| 34 | def rowIso : (bicomplex F M c).X c ≅ F.obj M := |
| 35 | F.mapIso (singleObjXSelf (.up ℕ) c M) |
| 36 | |
| 37 | def homologyIso (n : ℕ) : |
| 38 | ((bicomplex F M c).total (.up ℕ)).homology (n + c) ≅ (F.obj M).homology n := |
| 39 | (homologyMapIso ((bicomplex F M c).totalFlipIso (.up ℕ)) (n + c)).symm ≪≫ |
| 40 | AbelianSingleRowTotal.homologyIso (bicomplex F M c).flip c (off_degree F M c) n ≪≫ |
| 41 | homologyMapIso (rowIso F M c) n |
| 42 | |
| 43 | variable {F} {G : C ⥤ CochainComplex D ℕ} [G.Additive] (φ : F ⟶ G) |
| 44 | |
| 45 | def bicomplexMap : bicomplex F M c ⟶ bicomplex G M c := |
| 46 | (φ.mapHomologicalComplex (.up ℕ)).app ((single C (.up ℕ) c).obj M) |
| 47 | |
| 48 | def totalMap : (bicomplex F M c).total (.up ℕ) ⟶ (bicomplex G M c).total (.up ℕ) := |
| 49 | HomologicalComplex₂.total.map (bicomplexMap M c φ) (.up ℕ) |
| 50 | |
| 51 | omit [HasCoproducts D] in |
| 52 | theorem row_naturality : |
| 53 | (bicomplexMap M c φ).f c ≫ (rowIso G M c).hom = |
| 54 | (rowIso F M c).hom ≫ φ.app M := |
| 55 | (φ.naturality (singleObjXSelf (.up ℕ) c M).hom).symm |
| 56 | |
| 57 | theorem homology_naturality (n : ℕ) : |
| 58 | homologyMap (totalMap M c φ) (n + c) ≫ (homologyIso G M c n).hom = |
| 59 | (homologyIso F M c n).hom ≫ homologyMap (φ.app M) n := by |
| 60 | let b := bicomplexMap M c φ |
| 61 | let bf := GeometricComparison.TotalFlip.TotalFlipNaturality.flipped b |
| 62 | have hf := congrArg (fun f => homologyMap f (n + c)) |
| 63 | (GeometricComparison.TotalFlip.TotalFlipNaturality.natural b) |
| 64 | simp only [homologyMap_comp] at hf |
| 65 | have hfi := CohomologyConcentrationNaturality.inverse_square _ _ |
| 66 | (homologyMapIso ((bicomplex F M c).totalFlipIso (.up ℕ)) (n + c)) |
| 67 | (homologyMapIso ((bicomplex G M c).totalFlipIso (.up ℕ)) (n + c)) hf |
| 68 | have hs : homologyMap (HomologicalComplex₂.total.map bf (.up ℕ)) (n + c) ≫ |
| 69 | (AbelianSingleRowTotal.homologyIso (bicomplex G M c).flip c (off_degree G M c) n).hom = |
| 70 | (AbelianSingleRowTotal.homologyIso (bicomplex F M c).flip c (off_degree F M c) n).hom ≫ |
| 71 | homologyMap (b.f c) n := |
| 72 | AbelianSingleRowTotal.homology_naturality c (off_degree F M c) bf (off_degree G M c) n |
| 73 | have hr := congrArg (fun f => homologyMap f n) (row_naturality M c φ) |
| 74 | simp only [homologyMap_comp] at hr |
| 75 | have hsr := DualComplexHomology.compose_squares _ _ _ _ _ _ _ hs hr |
| 76 | simpa only [homologyIso, Iso.trans_hom, Iso.symm_hom, homologyMapIso_hom, |
| 77 | Category.assoc, totalMap, b, bf] using |
| 78 | DualComplexHomology.compose_squares _ _ _ _ _ _ _ hfi hsr |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Functor.SingleTotal |