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.Balanced.FrameSourceNormalization |
| 2 | |
| 3 | /-! # Frame Source Precomposition -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Balanced.FrameSourcePrecomposition |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Source normalization with an arbitrary incoming complex, before |
| 10 | specializing the coefficient resolution to a sheafified Čech total. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u z |
| 15 | variable {C : Type u} [Category.{0} C] [HasBinaryProducts C] |
| 16 | {ι : Type} [Finite ι] (F : ι → C) (R : Type u) [CommRing R] (J : GrothendieckTopology C) |
| 17 | [HasExt.{max u z} (Sheaf J (ModuleCat.{u} R))] |
| 18 | (K : CochainComplex (Sheaf J (ModuleCat.{u} R)) ℕ) |
| 19 | (M : CochainComplex (ModuleCat.{max u z} R) ℕ) |
| 20 | (s : M ⟶ ResolutionHom.Total.sections R |
| 21 | (Z := Ext.ZeroPresheafSections.constantUnit R J) K) |
| 22 | |
| 23 | local instance coproducts : HasCoproducts.{0} (ModuleCat.{max u z} R) := |
| 24 | fun T => (ModuleCat.hasColimitsOfSize.{max u z,u,0,0} R).has_colimits_of_shape (Discrete T) |
| 25 | |
| 26 | def liftedMap := s ≫ FrameSourceNormalization.edge F R J K |
| 27 | |
| 28 | private theorem coordinate_precomp {A : Type*} [Category A] {V W B C D T : A} |
| 29 | (s : V ⟶ W) (a : W ⟶ B) (b : B ⟶ C) (c : C ⟶ D) |
| 30 | (d : W ⟶ T) (e : T ⟶ D) (t : V ⟶ D) |
| 31 | (h : (a ≫ b) ≫ c = d ≫ e) (ht : s ≫ d ≫ e = t) : |
| 32 | (s ≫ (a ≫ b)) ≫ c = t := by |
| 33 | rw [Category.assoc, h] |
| 34 | exact ht |
| 35 | |
| 36 | theorem square |
| 37 | (t : M ⟶ ((ModuleCat.uliftFunctor.{z,u} R).mapHomologicalComplex (.up ℕ)).obj |
| 38 | ((FrameCech.IntrinsicTotalCoordinates.Intrinsic.bicomplex.{u,0} F R J K).total (.up ℕ))) |
| 39 | (ht : s ≫ (IntegralComparison.Sheaf.PresheafSectionComplex.complexIso.{u,0,u,z} R J K).hom ≫ |
| 40 | ((ModuleCat.uliftFunctor.{z,u} R).mapHomologicalComplex (.up ℕ)).map |
| 41 | (FrameCech.GlobalEdge.nativeEdge F R J K) = t) : |
| 42 | liftedMap F R J K M s ≫ |
| 43 | (FrameCech.IntrinsicTotalCoordinates.Intrinsic.totalIso.{u,0,z} F R J K).hom = t := |
| 44 | coordinate_precomp s _ _ _ _ _ t (FrameCech.GlobalEdge.coordinates F R J K) ht |
| 45 | |
| 46 | private theorem map_precomp {A B : Type*} [Category A] [Category B] |
| 47 | (G : A ⥤ B) {X Y Z W : A} {T : B} (f : X ⟶ Y) (a : Y ⟶ Z) |
| 48 | (b : Y ⟶ W) (c : G.obj Z ⟶ T) (d : G.obj W ⟶ T) |
| 49 | (h : G.map a ≫ c = G.map b ≫ d) : |
| 50 | G.map (f ≫ a) ≫ c = G.map (f ≫ b) ≫ d := by |
| 51 | simp only [G.map_comp, Category.assoc] |
| 52 | rw [h] |
| 53 | |
| 54 | variable (hcover : ∀ V, CoveringObjectsSheafDetection.sieve F V ∈ J V) |
| 55 | {Y : Sheaf J (ModuleCat.{u} R)} (I : InjectiveResolution Y) (g : K ⟶ I.cocomplex) |
| 56 | |
| 57 | /-- The comparison after applying homology to the lifted incoming map. -/ |
| 58 | def homologyLeft (i : ℕ) := |
| 59 | HomologicalComplex.homologyMap (liftedMap F R J K M s) i ≫ |
| 60 | FrameAugmentation.comparison F R J hcover I K g i |
| 61 | |
| 62 | /-- The same incoming map followed by the injective section comparison. -/ |
| 63 | def homologyRight (i : ℕ) := |
| 64 | HomologicalComplex.homologyMap (s ≫ ResolutionHom.SourceNaturality.sectionsMap R g) i ≫ |
| 65 | (InjectiveSectionCohomology.homologyIso R |
| 66 | (Ext.ZeroPresheafSections.constantUnit R J) I i).hom |
| 67 | |
| 68 | omit [Finite ι] in |
| 69 | /-- Source-normalized homology after precomposition by the incoming map. -/ |
| 70 | theorem homology (i : ℕ) : |
| 71 | homologyLeft F R J K M s hcover I g i = homologyRight R J K M s I g i := by |
| 72 | exact map_precomp |
| 73 | (HomologicalComplex.homologyFunctor (ModuleCat.{max u z} R) (.up ℕ) i) |
| 74 | s (FrameSourceNormalization.edge F R J K) |
| 75 | (ResolutionHom.SourceNaturality.sectionsMap R g) |
| 76 | (FrameAugmentation.comparison F R J hcover I K g i) |
| 77 | (InjectiveSectionCohomology.homologyIso R |
| 78 | (Ext.ZeroPresheafSections.constantUnit R J) I i).hom |
| 79 | (FrameSourceNormalization.source_homology F R J hcover I K g i) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Balanced.FrameSourcePrecomposition |