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.SingleFunctorCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.EdgeRefinement |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.TotalProjection |
| 4 | |
| 5 | /-! # Single Global Source -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ordered.SingleGlobalSource |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A genuine single-to-complex map gives the same global source map |
| 12 | on covers related by an actual common refinement. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | private theorem inverse_coordinates {C : Type*} [Category C] |
| 18 | {A B A' B' : C} (e : A ≅ A') (f : B ≅ B') |
| 19 | (r : A ⟶ B) (s : A' ⟶ B') (h : r ≫ f.hom = e.hom ≫ s) : |
| 20 | e.inv ≫ r = s ≫ f.inv := by |
| 21 | apply (cancel_mono f.hom).mp |
| 22 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 23 | rw [h, Iso.inv_hom_id_assoc] |
| 24 | |
| 25 | private theorem inverse_edge {C : Type*} [Category C] |
| 26 | {A B Z : C} (e : Z ⟶ A) (f : Z ⟶ B) [IsIso e] [IsIso f] |
| 27 | (r : A ⟶ B) (h : e ≫ r = f) : r ≫ inv f = inv e := by |
| 28 | apply (cancel_epi e).mp |
| 29 | rw [← Category.assoc, h, IsIso.hom_inv_id, IsIso.hom_inv_id] |
| 30 | |
| 31 | private theorem descend {C : Type*} [Category C] |
| 32 | {A B A' B' M N Z : C} (e : A ≅ A') (f : B ≅ B') |
| 33 | (r : A ⟶ B) (s : A' ⟶ B') (a : A ⟶ M) (b : B ⟶ N) (t : M ⟶ N) |
| 34 | (j : Z ⟶ M) (k : Z ⟶ N) [IsIso j] [IsIso k] |
| 35 | (hc : r ≫ f.hom = e.hom ≫ s) (ha : a ≫ t = r ≫ b) (he : j ≫ t = k) : |
| 36 | e.inv ≫ a ≫ inv j = s ≫ f.inv ≫ b ≫ inv k := by |
| 37 | have hc' := inverse_coordinates e f r s hc |
| 38 | have he' := inverse_edge j k t he |
| 39 | calc |
| 40 | e.inv ≫ a ≫ inv j = e.inv ≫ a ≫ t ≫ inv k := by rw [he'] |
| 41 | _ = (e.inv ≫ r) ≫ b ≫ inv k := by rw [← Category.assoc a t, ha]; simp only [Category.assoc] |
| 42 | _ = s ≫ f.inv ≫ b ≫ inv k := by rw [hc']; simp only [Category.assoc] |
| 43 | |
| 44 | universe u v |
| 45 | variable {X : TopCat.{u}} {D : Type v} [Category D] [Abelian D] |
| 46 | [HasProducts.{u} D] [HasCoproducts.{0} D] |
| 47 | (P : (Opens X)ᵒᵖ ⥤ D) (g : ℕ) |
| 48 | (K : CochainComplex ((Opens X)ᵒᵖ ⥤ D) ℕ) |
| 49 | (a : (single ((Opens X)ᵒᵖ ⥤ D) (.up ℕ) g).obj P ⟶ K) |
| 50 | {ι κ ν : Type u} [LinearOrder ι] [LinearOrder κ] [LinearOrder ν] |
| 51 | (U : ι → Opens X) (V : κ → Opens X) |
| 52 | (r : FormalCoproduct.mk κ V ⟶ FormalCoproduct.mk ι U) |
| 53 | |
| 54 | abbrev totalMap := (OrderedCech.TotalProjection.ordered U).map a |
| 55 | abbrev sourceIso := Functor.SingleTotal.homologyIso (OrderedCech.Functor.Projection.functor U) P g g |
| 56 | abbrev edgeMap := homologyMap (Presheaf.OrderedCechEdge.edge U K) (g+g) |
| 57 | |
| 58 | variable [IsIso (edgeMap g K U)] |
| 59 | |
| 60 | def map : (OrderedCech.Projection.complex U P).homology g ⟶ |
| 61 | (Presheaf.OrderedCechEdge.sections K).homology (g+g) := |
| 62 | (sourceIso P g U).inv ≫ homologyMap (totalMap P g K a U) (g+g) ≫ inv (edgeMap g K U) |
| 63 | |
| 64 | def mapDouble : (OrderedCech.Projection.complex U P).homology g ⟶ |
| 65 | (Presheaf.OrderedCechEdge.sections K).homology (2*g) := |
| 66 | SingleGlobalSource.map P g K a U ≫ eqToHom (congrArg (fun q => |
| 67 | (Presheaf.OrderedCechEdge.sections K).homology q) (Nat.two_mul g).symm) |
| 68 | |
| 69 | omit [IsIso (edgeMap g K U)] in |
| 70 | theorem total_naturality : totalMap P g K a U ≫ OrderedCech.Refinement.totalMap U V r K = |
| 71 | OrderedCech.Refinement.totalMap U V r |
| 72 | ((single ((Opens X)ᵒᵖ ⥤ D) (.up ℕ) g).obj P) ≫ totalMap P g K a V := by |
| 73 | let T := HomologicalComplex₂.totalFunctor D (.up ℕ) (.up ℕ) (.up ℕ) |
| 74 | exact (T.map_comp _ _).symm.trans |
| 75 | ((congrArg T.map ((NatTrans.mapHomologicalComplex |
| 76 | (OrderedCech.Refinement.transformation U V r) (.up ℕ)).naturality a)).trans |
| 77 | (T.map_comp _ _)) |
| 78 | |
| 79 | omit [IsIso (edgeMap g K U)] in |
| 80 | theorem homology_naturality : |
| 81 | homologyMap (totalMap P g K a U) (g+g) ≫ |
| 82 | homologyMap (OrderedCech.Refinement.totalMap U V r K) (g+g) = |
| 83 | homologyMap (OrderedCech.Refinement.totalMap U V r |
| 84 | ((single ((Opens X)ᵒᵖ ⥤ D) (.up ℕ) g).obj P)) (g+g) ≫ |
| 85 | homologyMap (totalMap P g K a V) (g+g) := |
| 86 | (homologyMap_comp _ _ (g+g)).symm.trans |
| 87 | ((congrArg (fun f => homologyMap f (g+g)) (total_naturality P g K a U V r)).trans |
| 88 | (homologyMap_comp _ _ (g+g))) |
| 89 | |
| 90 | variable [IsIso (edgeMap g K V)] |
| 91 | |
| 92 | theorem refinement : SingleGlobalSource.map P g K a U = |
| 93 | homologyMap (OrderedCech.Refinement.map U V r P) g ≫ SingleGlobalSource.map P g K a V := |
| 94 | descend (sourceIso P g U) (sourceIso P g V) |
| 95 | (homologyMap (OrderedCech.Refinement.totalMap U V r |
| 96 | ((single ((Opens X)ᵒᵖ ⥤ D) (.up ℕ) g).obj P)) (g+g)) |
| 97 | (homologyMap (OrderedCech.Refinement.map U V r P) g) |
| 98 | (homologyMap (totalMap P g K a U) (g+g)) |
| 99 | (homologyMap (totalMap P g K a V) (g+g)) |
| 100 | (homologyMap (OrderedCech.Refinement.totalMap U V r K) (g+g)) |
| 101 | (edgeMap g K U) (edgeMap g K V) |
| 102 | (Cech.SingleFunctorCoordinates.ordered P g g U V r) |
| 103 | (homology_naturality P g K a U V r) |
| 104 | (OrderedCech.EdgeRefinement.homology U V r K (g+g)) |
| 105 | |
| 106 | variable (T : ν → Opens X) |
| 107 | (rU : FormalCoproduct.mk ν T ⟶ FormalCoproduct.mk ι U) |
| 108 | (rV : FormalCoproduct.mk ν T ⟶ FormalCoproduct.mk κ V) |
| 109 | [IsIso (edgeMap g K T)] |
| 110 | [IsIso (homologyMap (OrderedCech.Refinement.map V T rV P) g)] |
| 111 | |
| 112 | def coefficientComparison : (OrderedCech.Projection.complex U P).homology g ⟶ |
| 113 | (OrderedCech.Projection.complex V P).homology g := |
| 114 | homologyMap (OrderedCech.Refinement.map U T rU P) g ≫ |
| 115 | inv (homologyMap (OrderedCech.Refinement.map V T rV P) g) |
| 116 | |
| 117 | theorem common_refinement : SingleGlobalSource.map P g K a U = |
| 118 | coefficientComparison P g U V T rU rV ≫ SingleGlobalSource.map P g K a V := by |
| 119 | calc |
| 120 | SingleGlobalSource.map P g K a U = homologyMap (OrderedCech.Refinement.map U T rU P) g ≫ |
| 121 | SingleGlobalSource.map P g K a T := refinement P g K a U T rU |
| 122 | _ = coefficientComparison P g U V T rU rV ≫ SingleGlobalSource.map P g K a V := by |
| 123 | rw [coefficientComparison, refinement P g K a V T rV] |
| 124 | simp only [Category.assoc, IsIso.inv_hom_id_assoc] |
| 125 | |
| 126 | theorem common_refinementDouble : mapDouble P g K a U = |
| 127 | coefficientComparison P g U V T rU rV ≫ mapDouble P g K a V := by |
| 128 | simpa only [mapDouble, Category.assoc] using |
| 129 | congrArg (fun f => f ≫ eqToHom (congrArg (fun q => |
| 130 | (Presheaf.OrderedCechEdge.sections K).homology q) (Nat.two_mul g).symm)) |
| 131 | (common_refinement P g K a U V T rU rV) |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ordered.SingleGlobalSource |