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.FrameCech.SourceComponent |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FrameCech.IntrinsicTotalCoordinates |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Sheaf.PresheafSectionComplex |
| 4 | |
| 5 | /-! # Global Edge -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FrameCech.GlobalEdge |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The mixed Hom-total source edge is the literal global-section |
| 12 | Čech edge, including the canonical coefficient lift. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | universe u z |
| 17 | variable {C : Type u} [Category.{0} C] [HasBinaryProducts C] |
| 18 | {ι : Type} [Finite ι] (F : ι → C) (R : Type u) [CommRing R] |
| 19 | (J : GrothendieckTopology C) |
| 20 | [HasExt.{max u z} (Sheaf J (ModuleCat.{u} R))] |
| 21 | (K : CochainComplex (Sheaf J (ModuleCat.{u} R)) ℕ) |
| 22 | |
| 23 | local instance moduleCoproducts : 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 | local notation "S" => OAI.NumberTheory.PadicHodge.IntegralComparison.CoveringPresentationResolution.complex J R F |
| 27 | local notation "ε" => OAI.NumberTheory.PadicHodge.IntegralComparison.CoveringPresentationResolution.augmentation J R F |
| 28 | |
| 29 | def nativeEdge : Global.SectionCechEdge.globalComplex R (IntrinsicTotalCoordinates.Intrinsic.presheafComplex.{u,0} R J K) ⟶ ((IntrinsicTotalCoordinates.Intrinsic.bicomplex.{u,0} F R J K)).total (.up ℕ) := |
| 30 | Global.SectionCechEdge.edge R F (IntrinsicTotalCoordinates.Intrinsic.presheafComplex.{u,0} R J K) |
| 31 | |
| 32 | def edge : IntegralComparison.Sheaf.PresheafSectionComplex.complex.{u,0,u,z} R J K ⟶ |
| 33 | (ExtCoefficientEdge.bicomplex.{u,0,z} F R J K).total (.up ℕ) := |
| 34 | (((ModuleCat.uliftFunctor.{z,u} R)).mapHomologicalComplex (.up ℕ)).map (nativeEdge F R J K) ≫ |
| 35 | (IntrinsicTotalCoordinates.Intrinsic.totalIso.{u,0,z} F R J K).inv |
| 36 | |
| 37 | private theorem component_square {A : Type*} [Category A] |
| 38 | {V B C D E F G : A} |
| 39 | (e : V ⟶ B) (a : B ⟶ C) (b : C ⟶ D) (c : D ⟶ E) |
| 40 | (d : B ⟶ F) (i : F ⟶ D) (j : F ⟶ E) |
| 41 | (s : V ⟶ G) (t : G ⟶ F) (l : G ⟶ E) |
| 42 | (h₁ : a ≫ b = d ≫ i) (h₂ : i ≫ c = j) |
| 43 | (h₃ : e ≫ d = s ≫ t) (h₄ : l = t ≫ j) : |
| 44 | ((e ≫ a) ≫ b) ≫ c = s ≫ l := by |
| 45 | simp only [Category.assoc] |
| 46 | rw [← Category.assoc a b c, h₁, Category.assoc, h₂, |
| 47 | ← Category.assoc e d j, h₃, Category.assoc, ← h₄] |
| 48 | |
| 49 | private theorem complexHom_ext {C : Type*} [Category C] [HasZeroMorphisms C] |
| 50 | {K L : CochainComplex C ℕ} (f g : K ⟶ L) |
| 51 | (h : ∀ q, f.f q = g.f q) : f = g := by |
| 52 | apply HomologicalComplex.Hom.ext |
| 53 | funext q |
| 54 | exact h q |
| 55 | |
| 56 | private theorem coordinates_component (q : ℕ) : |
| 57 | ((ResolutionHom.Total.edge R S ε K ≫ |
| 58 | (ExtCoefficientEdge.totalIso.{u,0,z} F R J K).hom) ≫ |
| 59 | (IntrinsicTotalCoordinates.Intrinsic.totalIso.{u,0,z} F R J K).hom).f q = |
| 60 | ( (IntegralComparison.Sheaf.PresheafSectionComplex.complexIso.{u,0,u,z} R J K).hom ≫ |
| 61 | ((ModuleCat.uliftFunctor.{z,u} R).mapHomologicalComplex (.up ℕ)).map |
| 62 | (nativeEdge F R J K)).f q := by |
| 63 | change ((ResolutionHom.Total.component R S ε K q ≫ |
| 64 | (ResolutionHom.Bicomplex.bicomplex R S K).ιTotal (.up ℕ) q 0 q rfl) ≫ |
| 65 | (HomologicalComplex₂.total.map |
| 66 | (ExtBicomplex.bicomplexIso.{u,0,z} F R J K).hom (.up ℕ)).f q) ≫ |
| 67 | AlgebraicGeometry.Comparison.Betti.TotalComplexFunctor.totalComparisonComponent (ModuleCat.uliftFunctor.{z,u} R) |
| 68 | (IntrinsicTotalCoordinates.Intrinsic.bicomplex.{u,0} F R J K) q = |
| 69 | (IntegralComparison.Sheaf.PresheafSectionComplex.complexIso.{u,0,u,z} R J K).hom.f q ≫ |
| 70 | (ModuleCat.uliftFunctor.{z,u} R).map ((nativeEdge F R J K).f q) |
| 71 | have ht := HomologicalComplex₂.ιTotal_map |
| 72 | (K := ResolutionHom.Bicomplex.bicomplex R S K) |
| 73 | (L := ExtCoefficientEdge.bicomplex.{u,0,z} F R J K) |
| 74 | (φ := (ExtBicomplex.bicomplexIso.{u,0,z} F R J K).hom) |
| 75 | (c₁₂ := .up ℕ) q 0 q rfl |
| 76 | have hc := AlgebraicGeometry.Comparison.Betti.TotalComplexFunctor.ι_totalComparisonComponent (ModuleCat.uliftFunctor.{z,u} R) |
| 77 | (IntrinsicTotalCoordinates.Intrinsic.bicomplex.{u,0} F R J K) q 0 q rfl |
| 78 | have hs := SourceComponent.square.{u,z} F R J (K.X q) |
| 79 | have he := Global.SectionCechEdge.component R F |
| 80 | (IntrinsicTotalCoordinates.Intrinsic.presheafComplex.{u,0} R J K) q |
| 81 | have he' := (congrArg (ModuleCat.uliftFunctor.{z,u} R).map he).trans |
| 82 | ((ModuleCat.uliftFunctor.{z,u} R).map_comp _ _) |
| 83 | exact component_square _ _ _ _ _ _ _ _ _ _ ht hc hs he' |
| 84 | |
| 85 | theorem coordinates : (ResolutionHom.Total.edge R S ε K ≫ |
| 86 | (ExtCoefficientEdge.totalIso.{u,0,z} F R J K).hom) ≫ |
| 87 | (IntrinsicTotalCoordinates.Intrinsic.totalIso.{u,0,z} F R J K).hom = |
| 88 | (IntegralComparison.Sheaf.PresheafSectionComplex.complexIso.{u,0,u,z} R J K).hom ≫ |
| 89 | ((ModuleCat.uliftFunctor.{z,u} R).mapHomologicalComplex (.up ℕ)).map |
| 90 | (nativeEdge F R J K) := by |
| 91 | exact complexHom_ext _ _ (coordinates_component F R J K) |
| 92 | |
| 93 | private theorem cancel_coordinates {A : Type*} [Category A] |
| 94 | {V W Z T : A} (f : V ⟶ W) (e : W ≅ Z) (g : V ⟶ T) (h : T ⟶ Z) |
| 95 | (w : f ≫ e.hom = g ≫ h) : f = g ≫ h ≫ e.inv := by |
| 96 | apply (cancel_mono e.hom).mp |
| 97 | simpa only [Category.assoc, Iso.inv_hom_id, Category.comp_id] using w |
| 98 | |
| 99 | theorem square : ResolutionHom.Total.edge R S ε K ≫ |
| 100 | (ExtCoefficientEdge.totalIso.{u,0,z} F R J K).hom = |
| 101 | (IntegralComparison.Sheaf.PresheafSectionComplex.complexIso.{u,0,u,z} R J K).hom ≫ edge F R J K := |
| 102 | cancel_coordinates _ (IntrinsicTotalCoordinates.Intrinsic.totalIso.{u,0,z} F R J K) _ _ |
| 103 | (coordinates F R J K) |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FrameCech.GlobalEdge |