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.Supported.OrderedCechEdge |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Supported.SectionsOpenEquality |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechReindexTotal |
| 4 | |
| 5 | /-! # Ordered Cech Reindex -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Supported.OrderedCechReindex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite-product-preserving change of principal indices |
| 12 | preserves the actual supported-section edge in the ordered Čech total. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | private theorem inverse_square {A : Type*} [Category A] |
| 20 | {S₁ S₂ T₁ T₂ C₁ C₂ : A} |
| 21 | (s : S₁ ⟶ S₂) (i₁ : S₁ ⟶ T₁) (i₂ : S₂ ⟶ T₂) (d : T₁ ⟶ T₂) |
| 22 | (e₁ : C₁ ≅ T₁) (e₂ : C₂ ≅ T₂) (c : C₁ ⟶ C₂) |
| 23 | (h₁ : s ≫ i₂ = i₁ ≫ d) (h₂ : c ≫ e₂.hom = e₁.hom ≫ d) : |
| 24 | s ≫ (i₂ ≫ e₂.inv) = (i₁ ≫ e₁.inv) ≫ c := by |
| 25 | apply (cancel_mono e₂.hom).mp |
| 26 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 27 | rw [h₂, ← Category.assoc e₁.inv e₁.hom d, e₁.inv_hom_id, Category.id_comp] |
| 28 | exact h₁ |
| 29 | |
| 30 | private theorem lift_square {A : Type*} [Category A] |
| 31 | {S₁ S₂ C₁ C₂ T₁ T₂ : A} |
| 32 | (s : S₁ ⟶ S₂) (a : S₁ ⟶ C₁) (b : S₂ ⟶ C₂) (t : C₁ ⟶ C₂) |
| 33 | (i₁ : C₁ ⟶ T₁) (i₂ : C₂ ⟶ T₂) (m : T₁ ⟶ T₂) |
| 34 | (h₁ : s ≫ b = a ≫ t) (h₂ : i₁ ≫ m = t ≫ i₂) : |
| 35 | s ≫ (b ≫ i₂) = (a ≫ i₁) ≫ m := by |
| 36 | rw [← Category.assoc, h₁, Category.assoc, ← h₂, ← Category.assoc] |
| 37 | |
| 38 | universe u |
| 39 | variable (R : Type (u + 1)) [CommRing R] (X : TopCat.{u}) |
| 40 | {C D : Type u} [Preorder C] [HasFiniteProducts C] [Preorder D] [HasFiniteProducts D] |
| 41 | (r : C ⥤ D) [PreservesFiniteProducts r] (F : D ⥤ Opens X) |
| 42 | {ι : Type u} [LinearOrder ι] (U : ι → C) (O : Opens X) |
| 43 | |
| 44 | local instance coefficient_limits : HasLimitsOfSize.{u, u} (ModuleCat.{u + 2} R) := |
| 45 | ModuleCat.hasLimitsOfSize.{u, u, u + 2, u + 1} |
| 46 | local instance coefficient_colimits : HasColimitsOfSize.{0, 0} (ModuleCat.{u + 2} R) := |
| 47 | ModuleCat.hasColimitsOfSize.{u + 2, u + 1, 0, 0} R |
| 48 | |
| 49 | theorem terminal_eq : (r ⋙ F).obj (⊤_ C) = F.obj (⊤_ D) := |
| 50 | le_antisymm (leOfHom (F.map (PreservesTerminal.iso r).hom)) |
| 51 | (leOfHom (F.map (PreservesTerminal.iso r).inv)) |
| 52 | |
| 53 | theorem terminal_inv : F.map (PreservesTerminal.iso r).inv = |
| 54 | eqToHom (terminal_eq X r F).symm := Subsingleton.elim _ _ |
| 55 | |
| 56 | variable (K : CochainComplex (Sheaf (Opens.grothendieckTopology X) (ModuleCat.{u + 2} R)) ℕ) |
| 57 | |
| 58 | def sourceIso : |
| 59 | OrderedCechEdge.source.{u+1,u,u,u+2} R X (r ⋙ F) O K ≅ |
| 60 | OrderedCechEdge.source.{u+1,u,u,u+2} R X F O K := |
| 61 | SectionsOpenEquality.complexIso O ((r ⋙ F).obj (⊤_ C)) (F.obj (⊤_ D)) |
| 62 | (terminal_eq X r F) K |
| 63 | |
| 64 | def totalIso : |
| 65 | (OrderedCechEdge.bicomplex.{u+1,u,u,u+2} R X (r ⋙ F) U K).total (.up ℕ) ≅ |
| 66 | (OrderedCechEdge.bicomplex.{u+1,u,u,u+2} R X F (r.obj ∘ U) K).total (.up ℕ) := |
| 67 | AugmentedOrdered.CechReindexTotal.totalIso r U |
| 68 | (OrderedCechEdge.presheafComplex.{u+1,u,u,u+2} R X F K) |
| 69 | |
| 70 | theorem component (q : ℕ) : |
| 71 | (sourceIso R X r F O K).hom.f q ≫ |
| 72 | OrderedCechEdge.component.{u+1,u,u,u+2} R X F (r.obj ∘ U) O K q = |
| 73 | OrderedCechEdge.component.{u+1,u,u,u+2} R X (r ⋙ F) U O K q ≫ |
| 74 | (((AugmentedOrdered.CechReindexTotal.bicomplexIso r U |
| 75 | (OrderedCechEdge.presheafComplex.{u+1,u,u,u+2} R X F K)).hom.f q).f 0) := by |
| 76 | have h₁ := SectionsOpenEquality.inclusion |
| 77 | O ((r ⋙ F).obj (⊤_ C)) (F.obj (⊤_ D)) (terminal_eq X r F) (K.X q) |
| 78 | have h₂ := AugmentedOrdered.CechReindex.zero r U (F.op ⋙ (K.X q).obj) |
| 79 | change _ = _ ≫ (K.X q).obj.map (F.map (PreservesTerminal.iso r).inv).op at h₂ |
| 80 | rw [terminal_inv X r F] at h₂ |
| 81 | exact inverse_square _ _ _ _ _ _ _ h₁ h₂ |
| 82 | |
| 83 | variable (hO : ∀ i, F.obj (r.obj (U i)) ≤ O) |
| 84 | |
| 85 | theorem edge : |
| 86 | (sourceIso R X r F O K).hom ≫ OrderedCechEdge.map.{u+1,u,u,u+2} R X F (r.obj ∘ U) O K hO = |
| 87 | OrderedCechEdge.map.{u+1,u,u,u+2} R X (r ⋙ F) U O K hO ≫ (totalIso R X r F U K).hom := by |
| 88 | apply HomologicalComplex.Hom.ext |
| 89 | funext q |
| 90 | change (sourceIso R X r F O K).hom.f q ≫ |
| 91 | (OrderedCechEdge.component.{u+1,u,u,u+2} R X F (r.obj ∘ U) O K q ≫ |
| 92 | (OrderedCechEdge.bicomplex.{u+1,u,u,u+2} R X F (r.obj ∘ U) K).ιTotal (.up ℕ) q 0 q (by simp)) = |
| 93 | (OrderedCechEdge.component.{u+1,u,u,u+2} R X (r ⋙ F) U O K q ≫ |
| 94 | (OrderedCechEdge.bicomplex.{u+1,u,u,u+2} R X (r ⋙ F) U K).ιTotal (.up ℕ) q 0 q (by simp)) ≫ |
| 95 | (HomologicalComplex₂.total.map |
| 96 | (AugmentedOrdered.CechReindexTotal.bicomplexIso r U |
| 97 | (OrderedCechEdge.presheafComplex.{u+1,u,u,u+2} R X F K)).hom (.up ℕ)).f q |
| 98 | exact lift_square _ _ _ _ _ _ _ (component R X r F U O K q) |
| 99 | (HomologicalComplex₂.ιTotal_map _ _ _ _ q 0 q (by simp)) |
| 100 | |
| 101 | theorem extension (hC : (r ⋙ F).obj (⊤_ C) ⊔ O = ⊤) (hD : F.obj (⊤_ D) ⊔ O = ⊤) : |
| 102 | (sourceIso R X r F O K).hom ≫ |
| 103 | SectionsExcision.extensionComplex O (F.obj (⊤_ D)) hD K = |
| 104 | SectionsExcision.extensionComplex O ((r ⋙ F).obj (⊤_ C)) hC K := |
| 105 | SectionsOpenEquality.complex_extension O ((r ⋙ F).obj (⊤_ C)) (F.obj (⊤_ D)) |
| 106 | (terminal_eq X r F) K hC hD |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Supported.OrderedCechReindex |