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.GeometricComparison.Section.ComplexBifunctor |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.BifunctorDiagonalApp |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.ComplexAssemblyQuasi |
| 4 | |
| 5 | /-! # Fixed Diagram Transformation -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.FixedDiagramTransformation.FixedDiagramSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A fixed coefficient complex mapping to a varying diagram induces |
| 12 | the original map from its section presheaf to the section diagonal. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | universe u v w z a b |
| 20 | variable {C : Type u} [Category.{v} C] |
| 21 | {A : Type w} [Category.{z} A] [Preadditive A] |
| 22 | {B : Type a} [Category.{b} B] [Preadditive B] |
| 23 | (S : A ⥤ C ⥤ B) [S.Additive] |
| 24 | (K : CochainComplex A ℕ) (P : C ⥤ CochainComplex A ℕ) |
| 25 | (η : (Functor.const C).obj K ⟶ P) |
| 26 | |
| 27 | def source : C ⥤ CochainComplex B ℕ := |
| 28 | HomologicalComplex.complexOfFunctorsToFunctorToComplex.obj |
| 29 | ((S.mapHomologicalComplex (.up ℕ)).obj K) |
| 30 | |
| 31 | def target : C ⥤ CochainComplex B ℕ := |
| 32 | BifunctorDiagonalEq.BifunctorDiagonal.functor (Section.ComplexBifunctor.SectionComplexBifunctor.functor S P) |
| 33 | |
| 34 | def transformation : source S K ⟶ target S P where |
| 35 | app X := ((S ⋙ (evaluation C B).obj X).mapHomologicalComplex (.up ℕ)).map (η.app X) |
| 36 | naturality X Y f := by |
| 37 | dsimp only [target] |
| 38 | rw [BifunctorDiagonalEq.BifunctorDiagonal.map_eq] |
| 39 | apply HomologicalComplex.Hom.ext |
| 40 | funext q |
| 41 | have hη : (η.app Y).f q = (η.app X).f q ≫ (P.map f).f q := |
| 42 | (Category.id_comp _).symm.trans (congrArg (fun a => a.f q) (η.naturality f)) |
| 43 | have hS := congrArg (fun a => a.app X) |
| 44 | ((congrArg S.map hη).trans (S.map_comp _ _)) |
| 45 | change (S.obj (K.X q)).map f ≫ (S.map ((η.app Y).f q)).app Y = |
| 46 | (S.map ((η.app X).f q)).app X ≫ |
| 47 | ((S.map ((P.map f).f q)).app X ≫ (S.obj ((P.obj Y).X q)).map f) |
| 48 | exact ((S.map ((η.app Y).f q)).naturality f).trans |
| 49 | ((congrArg (fun a => a ≫ (S.obj ((P.obj Y).X q)).map f) hS).trans (Category.assoc _ _ _)) |
| 50 | |
| 51 | def sourceIso : AlgebraicGeometry.Crystalline.Cohomology.ComplexAssemblyQuasi.ComplexAssembly.complex (.up ℕ) (source S K) ≅ |
| 52 | (S.mapHomologicalComplex (.up ℕ)).obj K := Iso.refl _ |
| 53 | |
| 54 | def map : (S.mapHomologicalComplex (.up ℕ)).obj K ⟶ |
| 55 | AlgebraicGeometry.Crystalline.Cohomology.ComplexAssemblyQuasi.ComplexAssembly.complex (.up ℕ) (target S P) := |
| 56 | (sourceIso S K).inv ≫ AlgebraicGeometry.Crystalline.Cohomology.ComplexAssemblyQuasi.ComplexAssembly.map (.up ℕ) (transformation S K P η) |
| 57 | |
| 58 | theorem component (X : C) (q : ℕ) : ((FixedDiagramSections.map S K P η).f q).app X = |
| 59 | (S.map ((η.app X).f q)).app X := Category.id_comp _ |
| 60 | |
| 61 | variable {K P} {L : CochainComplex A ℕ} {Q : C ⥤ CochainComplex A ℕ} |
| 62 | (θ : (Functor.const C).obj L ⟶ Q) (a : K ⟶ L) (b : P ⟶ Q) |
| 63 | |
| 64 | def diagonalMap : AlgebraicGeometry.Crystalline.Cohomology.ComplexAssemblyQuasi.ComplexAssembly.complex (.up ℕ) (target S P) ⟶ |
| 65 | AlgebraicGeometry.Crystalline.Cohomology.ComplexAssemblyQuasi.ComplexAssembly.complex (.up ℕ) (target S Q) := |
| 66 | AlgebraicGeometry.Crystalline.Cohomology.ComplexAssemblyQuasi.ComplexAssembly.map (.up ℕ) (BifunctorDiagonalApp.BifunctorDiagonalMap.map |
| 67 | ((flipFunctor _ _ _).map (Functor.whiskerRight b |
| 68 | (S.mapHomologicalComplex (.up ℕ) ⋙ HomologicalComplex.complexOfFunctorsToFunctorToComplex)))) |
| 69 | |
| 70 | theorem naturality |
| 71 | (h : η ≫ b = (Functor.const C).map a ≫ θ) : |
| 72 | FixedDiagramSections.map S K P η ≫ diagonalMap S b = |
| 73 | (S.mapHomologicalComplex (.up ℕ)).map a ≫ FixedDiagramSections.map S L Q θ := by |
| 74 | apply HomologicalComplex.Hom.ext |
| 75 | funext q |
| 76 | apply NatTrans.ext |
| 77 | funext X |
| 78 | simp only [HomologicalComplex.comp_f, NatTrans.comp_app, component] |
| 79 | have hX := congrArg (fun c => (c.app X).f q) h |
| 80 | change (η.app X).f q ≫ (b.app X).f q = a.f q ≫ (θ.app X).f q at hX |
| 81 | have hS := congrArg (fun c => (S.map c).app X) hX |
| 82 | simp only [Functor.map_comp, NatTrans.comp_app] at hS |
| 83 | exact hS |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.NumberTheory.PadicHodge.GeometricComparison.FixedDiagramTransformation.FixedDiagramSections |