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.FixedFrameDiagonalNaturality |
| 2 | |
| 3 | /-! # Fixed Frame Eq -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.FixedFrameEq.FixedFrameSectionReindex |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restricting both indices of a frame-section diagram commutes with |
| 10 | the diagonal and with the inverse of fixed-frame restriction. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | universe u v u' v' w z a b |
| 18 | variable {C : Type u} [Category.{v} C] {C' : Type u'} [Category.{v'} C'] |
| 19 | {A : Type w} [Category.{z} A] [Preadditive A] |
| 20 | {B : Type a} [Category.{b} B] [Preadditive B] |
| 21 | (F : C' ⥤ C) (S : A ⥤ C ⥤ B) [S.Additive] |
| 22 | |
| 23 | abbrev restriction : (C ⥤ B) ⥤ (C' ⥤ B) := (Functor.whiskeringLeft _ _ _).obj F |
| 24 | |
| 25 | variable (K : CochainComplex A ℕ) (P : C ⥤ CochainComplex A ℕ) |
| 26 | (η : (Functor.const C).obj K ⟶ P) |
| 27 | |
| 28 | def cone : (Functor.const C').obj K ⟶ F ⋙ P where |
| 29 | app r := η.app (F.obj r) |
| 30 | naturality _ _ f := η.naturality (F.map f) |
| 31 | |
| 32 | theorem map_eq : |
| 33 | ((restriction (B := B) F).mapHomologicalComplex (.up ℕ)).map |
| 34 | (FixedDiagramTransformation.FixedDiagramSections.map S K P η) = |
| 35 | FixedDiagramTransformation.FixedDiagramSections.map (S ⋙ restriction F) K (F ⋙ P) (cone F K P η) := by |
| 36 | apply HomologicalComplex.Hom.ext |
| 37 | funext q |
| 38 | apply NatTrans.ext |
| 39 | funext r |
| 40 | change ((FixedDiagramTransformation.FixedDiagramSections.map S K P η).f q).app (F.obj r) = _ |
| 41 | rw [FixedDiagramTransformation.FixedDiagramSections.component, FixedDiagramTransformation.FixedDiagramSections.component] |
| 42 | rfl |
| 43 | |
| 44 | variable (D : C ⥤ CochainComplex B ℕ) |
| 45 | |
| 46 | local instance constPreservesZero : (Functor.const C : B ⥤ C ⥤ B).PreservesZeroMorphisms where |
| 47 | map_zero _ _ := rfl |
| 48 | |
| 49 | local instance constPreservesZero' : (Functor.const C' : B ⥤ C' ⥤ B).PreservesZeroMorphisms where |
| 50 | map_zero _ _ := rfl |
| 51 | |
| 52 | variable (s : D ⋙ (Functor.const C : B ⥤ C ⥤ B).mapHomologicalComplex (.up ℕ) ⟶ |
| 53 | P ⋙ S.mapHomologicalComplex (.up ℕ)) |
| 54 | |
| 55 | def transformation : (F ⋙ D) ⋙ |
| 56 | (Functor.const C' : B ⥤ C' ⥤ B).mapHomologicalComplex (.up ℕ) ⟶ |
| 57 | (F ⋙ P) ⋙ (S ⋙ restriction F).mapHomologicalComplex (.up ℕ) where |
| 58 | app r := ((restriction F).mapHomologicalComplex (.up ℕ)).map (s.app (F.obj r)) |
| 59 | naturality r t f := by |
| 60 | have h := congrArg (((restriction F).mapHomologicalComplex (.up ℕ)).map) |
| 61 | (s.naturality (F.map f)) |
| 62 | simp only [Functor.map_comp] at h |
| 63 | exact h |
| 64 | |
| 65 | theorem diagonal_eq : |
| 66 | ((restriction F).mapHomologicalComplex (.up ℕ)).map |
| 67 | (FixedFrameDiagonalNaturality.FixedFrameSectionNaturality.diagonal S D P s) = |
| 68 | FixedFrameDiagonalNaturality.FixedFrameSectionNaturality.diagonal (S ⋙ restriction F) (F ⋙ D) (F ⋙ P) |
| 69 | (transformation F S P D s) := by |
| 70 | apply HomologicalComplex.Hom.ext |
| 71 | funext q |
| 72 | apply NatTrans.ext |
| 73 | funext r |
| 74 | rfl |
| 75 | |
| 76 | variable [IsIso (FixedDiagramTransformation.FixedDiagramSections.map S K P η)] |
| 77 | |
| 78 | instance reindexed_isIso : IsIso |
| 79 | (FixedDiagramTransformation.FixedDiagramSections.map (S ⋙ restriction F) K (F ⋙ P) (cone F K P η)) := by |
| 80 | rw [← map_eq F S K P η] |
| 81 | infer_instance |
| 82 | |
| 83 | theorem fixed_eq : |
| 84 | ((restriction F).mapHomologicalComplex (.up ℕ)).map |
| 85 | (FixedFrameDiagonalNaturality.FixedFrameSectionNaturality.diagonal S D P s ≫ inv (FixedDiagramTransformation.FixedDiagramSections.map S K P η)) = |
| 86 | FixedFrameDiagonalNaturality.FixedFrameSectionNaturality.diagonal (S ⋙ restriction F) (F ⋙ D) (F ⋙ P) |
| 87 | (transformation F S P D s) ≫ |
| 88 | inv (FixedDiagramTransformation.FixedDiagramSections.map (S ⋙ restriction F) K (F ⋙ P) (cone F K P η)) := by |
| 89 | simp only [Functor.map_comp, diagonal_eq, Functor.map_inv, map_eq] |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.NumberTheory.PadicHodge.GeometricComparison.FixedFrameEq.FixedFrameSectionReindex |