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.PresheafDiagramProduct |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.ComplexDiagramMapLaws |
| 3 | |
| 4 | /-! # Presheaf Diagram Cone -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.PresheafDiagramCone |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A genuine family of constant-presheaf frame maps assembles into |
| 11 | a map from the frame Čech total to the global presheaf Čech resolution. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | private theorem inverse_square {A : Type*} [Category A] |
| 16 | {V B C D E : A} (t : V ⟶ B) (t' : V ⟶ C) (e : D ≅ B) (e' : E ≅ C) |
| 17 | (f : D ⟶ E) (b : B ⟶ C) (he : f ≫ e'.hom = e.hom ≫ b) (ht : t ≫ b = t') : |
| 18 | (t ≫ e.inv) ≫ f = t' ≫ e'.inv := by |
| 19 | apply (cancel_mono e'.hom).mp |
| 20 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 21 | rw [he, Iso.inv_hom_id_assoc, ht] |
| 22 | |
| 23 | universe u v d e r t |
| 24 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 25 | {D : Type d} [Category.{e} D] (R : Type r) [CommRing R] |
| 26 | {ι : Type} [Finite ι] (U : ι → C) |
| 27 | (Q : Cᵒᵖ ⥤ CochainComplex (ModuleCat.{t} R) ℕ) |
| 28 | (P : Cᵒᵖ ⥤ CochainComplex (Dᵒᵖ ⥤ ModuleCat.{t} R) ℕ) |
| 29 | (a : Q ⋙ (Functor.const Dᵒᵖ).mapHomologicalComplex (.up ℕ) ⟶ P) |
| 30 | |
| 31 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.DiagramSectionCoordinates |
| 32 | local notation "N" => OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve U |
| 33 | local notation "M" => OAI.NumberTheory.PadicHodge.IntegralComparison.Presheaf.TotalCup.CechProduct.total N (OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.ComplexDiagramCoordinates.complex Q) |
| 34 | local notation "K" => OAI.NumberTheory.PadicHodge.GeometricComparison.CechCone.Total.CechConeTotal.total U P |
| 35 | |
| 36 | def localMap (T : Dᵒᵖ) : Q ⟶ DiagramSectionCoordinates.diagram R P T where |
| 37 | app V := ((DiagramSectionCoordinates.evaluation R T).mapHomologicalComplex (.up ℕ)).map (a.app V) |
| 38 | naturality V W f := by |
| 39 | exact congrArg ((DiagramSectionCoordinates.evaluation R T).mapHomologicalComplex (.up ℕ)).map (a.naturality f) |
| 40 | |
| 41 | omit [HasBinaryProducts C] in |
| 42 | theorem localMap_natural {T T' : Dᵒᵖ} (α : T ⟶ T') : |
| 43 | localMap R Q P a T ≫ DiagramSectionCoordinates.diagramMap R P α = localMap R Q P a T' := by |
| 44 | apply NatTrans.ext |
| 45 | funext V |
| 46 | apply HomologicalComplex.Hom.ext |
| 47 | funext q |
| 48 | change ((a.app V).f q).app T ≫ ((P.obj V).X q).map α = ((a.app V).f q).app T' |
| 49 | exact (((a.app V).f q).naturality α).symm.trans (Category.id_comp _) |
| 50 | |
| 51 | def localTotalMap (T : Dᵒᵖ) : M ⟶ |
| 52 | ((DiagramSectionCoordinates.evaluation R T).mapHomologicalComplex (.up ℕ)).obj K := |
| 53 | ComplexDiagramNaturality.Coordinates.totalMap U (localMap R Q P a T) ≫ |
| 54 | (DiagramSectionCoordinates.totalIso R U P T).inv |
| 55 | |
| 56 | theorem localTotalMap_natural {T T' : Dᵒᵖ} (α : T ⟶ T') : |
| 57 | localTotalMap R U Q P a T ≫ |
| 58 | ((DiagramSectionCoordinates.evaluationMap R α).mapHomologicalComplex (.up ℕ)).app K = |
| 59 | localTotalMap R U Q P a T' := |
| 60 | inverse_square |
| 61 | (ComplexDiagramNaturality.Coordinates.totalMap U (localMap R Q P a T)) |
| 62 | (ComplexDiagramNaturality.Coordinates.totalMap U (localMap R Q P a T')) |
| 63 | (DiagramSectionCoordinates.totalIso R U P T) (DiagramSectionCoordinates.totalIso R U P T') |
| 64 | (((DiagramSectionCoordinates.evaluationMap R α).mapHomologicalComplex (.up ℕ)).app K) |
| 65 | (DiagramSectionCoordinates.totalMap R U P α) (DiagramSectionCoordinates.total_natural R U P α) |
| 66 | ((ComplexDiagramMapLaws.Coordinates.totalMap_comp U _ _).symm.trans |
| 67 | (congrArg (ComplexDiagramNaturality.Coordinates.totalMap U) (localMap_natural R Q P a α))) |
| 68 | |
| 69 | def map : ((Functor.const Dᵒᵖ).mapHomologicalComplex (.up ℕ)).obj M ⟶ K where |
| 70 | f q := |
| 71 | { app T := (localTotalMap R U Q P a T).f q |
| 72 | naturality T T' α := by |
| 73 | change 𝟙 _ ≫ (localTotalMap R U Q P a T').f q = |
| 74 | (localTotalMap R U Q P a T).f q ≫ ((K).X q).map α |
| 75 | exact (Category.id_comp _).trans |
| 76 | (congrArg (fun f => f.f q) (localTotalMap_natural R U Q P a α)).symm } |
| 77 | comm' i j _ := by |
| 78 | apply NatTrans.ext |
| 79 | funext T |
| 80 | exact (localTotalMap R U Q P a T).comm i j |
| 81 | |
| 82 | variable (μ : ∀ i j V, (Q.obj V).X i →ₗ[R] (Q.obj V).X j →ₗ[R] (Q.obj V).X (i+j)) |
| 83 | (ν : ∀ i j V T, ((P.obj V).X i).obj T →ₗ[R] |
| 84 | ((P.obj V).X j).obj T →ₗ[R] ((P.obj V).X (i+j)).obj T) |
| 85 | (ha : ∀ i j V T x y, ((a.app V).f (i+j)).app T (μ i j V x y) = |
| 86 | ν i j V T (((a.app V).f i).app T x) (((a.app V).f j).app T y)) |
| 87 | |
| 88 | include ha in |
| 89 | theorem map_cup (i j : ℕ) (T : Dᵒᵖ) (x : (M).X i) (y : (M).X j) : |
| 90 | ((PresheafDiagramCone.map R U Q P a).f (i+j)).app T |
| 91 | (Presheaf.TotalCup.CechProduct.totalCup N (ComplexDiagramCoordinates.complex Q) μ i j x y) = |
| 92 | PresheafDiagramProduct.pairing R U P ν i j T |
| 93 | (((PresheafDiagramCone.map R U Q P a).f i).app T x) (((PresheafDiagramCone.map R U Q P a).f j).app T y) := by |
| 94 | apply (asIso ((DiagramSectionCoordinates.totalIso R U P T).hom.f (i+j))).toLinearEquiv.injective |
| 95 | have hn := Presheaf.CechProductNaturality.totalMap_pairing N μ |
| 96 | (PresheafDiagramProduct.nativePairing R P ν T) |
| 97 | (ComplexDiagramNaturality.Coordinates.complexMap (localMap R Q P a T)) |
| 98 | (fun i j V x y => ha i j V T x y) i j x y |
| 99 | have hm (q : ℕ) (z : (M).X q) : |
| 100 | (DiagramSectionCoordinates.totalIso R U P T).hom.f q (((PresheafDiagramCone.map R U Q P a).f q).app T z) = |
| 101 | (ComplexDiagramNaturality.Coordinates.totalMap U (localMap R Q P a T)).f q z := by |
| 102 | change (DiagramSectionCoordinates.totalIso R U P T).hom.f q |
| 103 | ((DiagramSectionCoordinates.totalIso R U P T).inv.f q |
| 104 | ((ComplexDiagramNaturality.Coordinates.totalMap U (localMap R Q P a T)).f q z)) = _ |
| 105 | exact ConcreteCategory.congr_hom (congrArg (fun f => f.f q) (DiagramSectionCoordinates.totalIso R U P T).inv_hom_id) _ |
| 106 | change (DiagramSectionCoordinates.totalIso R U P T).hom.f (i+j) _ = (DiagramSectionCoordinates.totalIso R U P T).hom.f (i+j) _ |
| 107 | exact (hm _ _).trans (hn.trans |
| 108 | ((congrArg₂ |
| 109 | (fun x y => Presheaf.TotalCup.CechProduct.totalCup N (DiagramSectionCoordinates.complex R P T) |
| 110 | (PresheafDiagramProduct.nativePairing R P ν T) i j x y) |
| 111 | (hm i x).symm (hm j y).symm).trans |
| 112 | (Cochain.PairingTransport.hom_cup (DiagramSectionCoordinates.totalIso R U P T) |
| 113 | (PresheafDiagramProduct.nativeCup R U P ν T) i j _ _).symm)) |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.PresheafDiagramCone |