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.Cech.ComplexDiagramCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.CechCone.CoefficientNaturality |
| 3 | |
| 4 | /-! # Complex Diagram Naturality -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.ComplexDiagramNaturality.Coordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The exact change from complex-valued to degreewise Čech coordinates |
| 11 | is natural for maps of the original diagrams. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | universe u v w z |
| 16 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 17 | {A : Type w} [Category.{z} A] [Abelian A] [HasProducts.{0} A] [HasCoproducts.{0} A] |
| 18 | {ι : Type} [Finite ι] (U : ι → C) {P Q : Cᵒᵖ ⥤ CochainComplex A ℕ} (α : P ⟶ Q) |
| 19 | |
| 20 | local notation "N" => OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve U |
| 21 | |
| 22 | def complexMap : ComplexDiagramCoordinates.complex P ⟶ ComplexDiagramCoordinates.complex Q where |
| 23 | f n := Functor.whiskerRight α (HomologicalComplex.eval A (.up ℕ) n) |
| 24 | comm' i j _ := by |
| 25 | apply NatTrans.ext |
| 26 | funext V |
| 27 | exact (α.app V).comm i j |
| 28 | |
| 29 | def bicomplexMap : CechCoefficient.Total.bicomplex N (ComplexDiagramCoordinates.complex P) ⟶ |
| 30 | CechCoefficient.Total.bicomplex N (ComplexDiagramCoordinates.complex Q) := |
| 31 | ((FormalCoproduct.cochainComplexFunctor N).mapHomologicalComplex (.up ℕ)).map (complexMap α) |
| 32 | |
| 33 | def totalMap := HomologicalComplex₂.total.map (bicomplexMap U α) (.up ℕ) |
| 34 | |
| 35 | omit [HasCoproducts A] in |
| 36 | theorem bicomplex_natural : GeometricComparison.CechCone.CoefficientNaturality.CechConeCoefficientNaturality.bicomplexMap U α ≫ |
| 37 | (ComplexDiagramCoordinates.bicomplexIso U Q).hom = (ComplexDiagramCoordinates.bicomplexIso U P).hom ≫ bicomplexMap U α := by |
| 38 | apply HomologicalComplex.Hom.ext |
| 39 | funext i |
| 40 | exact GeometricComparison.Finite.CechCoefficientChange.FiniteCechCoefficientChange.naturality (HomologicalComplex.eval A (.up ℕ) i) |
| 41 | N (fun _ => inferInstanceAs (Finite (Fin _ → ι))) α |
| 42 | |
| 43 | theorem total_natural : (GeometricComparison.CechCone.TotalFunctor.CechConeTotalFunctor.functor U).map α ≫ |
| 44 | (ComplexDiagramCoordinates.totalIso U Q).hom = (ComplexDiagramCoordinates.totalIso U P).hom ≫ totalMap U α := by |
| 45 | let T := HomologicalComplex₂.totalFunctor A (.up ℕ) (.up ℕ) (.up ℕ) |
| 46 | exact (T.map_comp (GeometricComparison.CechCone.CoefficientNaturality.CechConeCoefficientNaturality.bicomplexMap U α) |
| 47 | (ComplexDiagramCoordinates.bicomplexIso U Q).hom).symm.trans |
| 48 | ((congrArg T.map (bicomplex_natural U α)).trans |
| 49 | (T.map_comp (ComplexDiagramCoordinates.bicomplexIso U P).hom (bicomplexMap U α))) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.ComplexDiagramNaturality.Coordinates |