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.PresheafDiagramCone |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.CechCone.TotalFunctorSquare |
| 3 | |
| 4 | /-! # Presheaf Cone Level Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.PresheafConeLevelCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The original pointwise presheaf Čech cone is the canonical |
| 11 | coefficient-transported Čech map in the original total coordinates. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | universe u v d e r t w z |
| 20 | |
| 21 | section Identity |
| 22 | |
| 23 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 24 | {A : Type w} [Category.{z} A] [Abelian A] [HasProducts.{0} A] [HasCoproducts.{0} A] |
| 25 | {ι : Type} [Finite ι] (U : ι → C) (Q : Cᵒᵖ ⥤ CochainComplex A ℕ) |
| 26 | |
| 27 | theorem coefficient_identity : |
| 28 | (GeometricComparison.CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (𝟭 A) U Q).hom = |
| 29 | 𝟙 (GeometricComparison.CechCone.Total.CechConeTotal.total U Q) := by |
| 30 | have h := GeometricComparison.CechCone.CoefficientComposition.CechConeCoefficientComposition.total (𝟭 A) (𝟭 A) U Q |
| 31 | change (GeometricComparison.CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (𝟭 A) U Q).hom = |
| 32 | (GeometricComparison.CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (𝟭 A) U Q).hom ≫ |
| 33 | (GeometricComparison.CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (𝟭 A) U Q).hom at h |
| 34 | apply (cancel_epi (GeometricComparison.CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (𝟭 A) U Q).hom).mp |
| 35 | exact h.symm.trans (Category.comp_id _).symm |
| 36 | |
| 37 | end Identity |
| 38 | |
| 39 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 40 | {D : Type d} [Category.{e} D] (R : Type r) [CommRing R] |
| 41 | {ι : Type} [Finite ι] (U : ι → C) |
| 42 | (Q : Cᵒᵖ ⥤ CochainComplex (ModuleCat.{t} R) ℕ) |
| 43 | (P : Cᵒᵖ ⥤ CochainComplex (Dᵒᵖ ⥤ ModuleCat.{t} R) ℕ) |
| 44 | (a : Q ⋙ (Functor.const Dᵒᵖ).mapHomologicalComplex (.up ℕ) ⟶ P) |
| 45 | |
| 46 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.DiagramSectionCoordinates OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.PresheafDiagramCone |
| 47 | |
| 48 | def evaluationUnit (T : Dᵒᵖ) : |
| 49 | 𝟭 (ModuleCat.{t} R) ⟶ Functor.const Dᵒᵖ ⋙ DiagramSectionCoordinates.evaluation R T where |
| 50 | app _ := 𝟙 _ |
| 51 | naturality _ _ _ := by simp |
| 52 | |
| 53 | theorem evaluationUnit_complex (T : Dᵒᵖ) (K : CochainComplex (ModuleCat.{t} R) ℕ) : |
| 54 | ((evaluationUnit R T).mapHomologicalComplex (.up ℕ)).app K = 𝟙 K := by |
| 55 | apply HomologicalComplex.Hom.ext |
| 56 | funext q |
| 57 | rfl |
| 58 | |
| 59 | omit [HasBinaryProducts C] in |
| 60 | theorem evaluation_diagram (T : Dᵒᵖ) : |
| 61 | GeometricComparison.CechCone.TotalFunctorSquare.CechConeTotalFunctorSquare.diagramMap (Functor.const Dᵒᵖ) |
| 62 | (𝟭 (ModuleCat.{t} R)) (DiagramSectionCoordinates.evaluation R T) Q P a (evaluationUnit R T) = |
| 63 | PresheafDiagramCone.localMap R Q P a T := by |
| 64 | apply NatTrans.ext |
| 65 | funext V |
| 66 | apply HomologicalComplex.Hom.ext |
| 67 | funext q |
| 68 | exact Category.id_comp _ |
| 69 | |
| 70 | theorem evaluated_level (T : Dᵒᵖ) : |
| 71 | ((DiagramSectionCoordinates.evaluation R T).mapHomologicalComplex (.up ℕ)).map |
| 72 | (GeometricComparison.CechCone.TotalLevelMap.CechConeTotalLevelMap.map (Functor.const Dᵒᵖ) U Q P a) ≫ |
| 73 | (GeometricComparison.CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (DiagramSectionCoordinates.evaluation R T) U P).hom = |
| 74 | (GeometricComparison.CechCone.TotalFunctor.CechConeTotalFunctor.functor U).map (PresheafDiagramCone.localMap R Q P a T) := by |
| 75 | have h := GeometricComparison.CechCone.TotalFunctorSquare.CechConeTotalFunctorSquare.natural (Functor.const Dᵒᵖ) |
| 76 | (𝟭 (ModuleCat.{t} R)) (DiagramSectionCoordinates.evaluation R T) U Q P a (evaluationUnit R T) |
| 77 | simp only [GeometricComparison.CechCone.TotalFunctorSquare.CechConeTotalFunctorSquare.map, evaluationUnit_complex, |
| 78 | coefficient_identity, evaluation_diagram] at h |
| 79 | erw [Category.id_comp, Category.id_comp] at h |
| 80 | exact h |
| 81 | |
| 82 | theorem local_coordinates (T : Dᵒᵖ) : |
| 83 | (ComplexDiagramCoordinates.totalIso U Q).hom ≫ PresheafDiagramCone.localTotalMap R U Q P a T = |
| 84 | ((DiagramSectionCoordinates.evaluation R T).mapHomologicalComplex (.up ℕ)).map |
| 85 | (GeometricComparison.CechCone.TotalLevelMap.CechConeTotalLevelMap.map (Functor.const Dᵒᵖ) U Q P a) := by |
| 86 | apply (cancel_mono (DiagramSectionCoordinates.totalIso R U P T).hom).mp |
| 87 | simp only [PresheafDiagramCone.localTotalMap, Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 88 | change (ComplexDiagramCoordinates.totalIso U Q).hom ≫ |
| 89 | ComplexDiagramNaturality.Coordinates.totalMap U (PresheafDiagramCone.localMap R Q P a T) = |
| 90 | ((DiagramSectionCoordinates.evaluation R T).mapHomologicalComplex (.up ℕ)).map |
| 91 | (GeometricComparison.CechCone.TotalLevelMap.CechConeTotalLevelMap.map (Functor.const Dᵒᵖ) U Q P a) ≫ |
| 92 | (GeometricComparison.CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (DiagramSectionCoordinates.evaluation R T) U P).hom ≫ |
| 93 | (ComplexDiagramCoordinates.totalIso U (DiagramSectionCoordinates.diagram R P T)).hom |
| 94 | rw [← Category.assoc, evaluated_level] |
| 95 | exact (ComplexDiagramNaturality.Coordinates.total_natural U (PresheafDiagramCone.localMap R Q P a T)).symm |
| 96 | |
| 97 | theorem map_eq : |
| 98 | ((Functor.const Dᵒᵖ).mapHomologicalComplex (.up ℕ)).map |
| 99 | (ComplexDiagramCoordinates.totalIso U Q).hom ≫ |
| 100 | PresheafDiagramCone.map R U Q P a = |
| 101 | GeometricComparison.CechCone.TotalLevelMap.CechConeTotalLevelMap.map (Functor.const Dᵒᵖ) U Q P a := by |
| 102 | apply HomologicalComplex.Hom.ext |
| 103 | funext q |
| 104 | apply NatTrans.ext |
| 105 | funext T |
| 106 | exact congrArg (fun f => f.f q) (local_coordinates R U Q P a T) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.PresheafConeLevelCoordinates |