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.Principal.MappedSingleGlobal |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.PresheafSingleCoordinates |
| 3 | |
| 4 | /-! # Mapped Single Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.MappedSingleCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual principal comparison of a mapped single complex has |
| 11 | the original single-total coordinates and the same literal coefficient |
| 12 | comparison, independently of its single degree. -/ |
| 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 isIso_of_square {C : Type*} [Category C] |
| 18 | {A B A' B' : C} (a : A ⟶ B) (b : A' ⟶ B') (e : A ≅ A') (f : B ≅ B') |
| 19 | [IsIso a] (h : a ≫ f.hom = e.hom ≫ b) : IsIso b := by |
| 20 | have hb : b = e.inv ≫ a ≫ f.hom := by rw [h, Iso.inv_hom_id_assoc] |
| 21 | rw [hb] |
| 22 | infer_instance |
| 23 | |
| 24 | private theorem paste {C : Type*} [Category C] {A B D E L R : C} |
| 25 | (a : A ⟶ B) (b : D ⟶ E) (lo : A ⟶ D) (go : B ⟶ E) |
| 26 | (lp : D ⟶ L) (gp : E ⟶ R) (lc : A ⟶ L) (gc : B ⟶ R) (v : L ⟶ R) |
| 27 | (hn : lo ≫ b = a ≫ go) (hp : b ≫ gp = lp ≫ v) |
| 28 | (hl : lo ≫ lp = lc) (hg : go ≫ gp = gc) : a ≫ gc = lc ≫ v := by |
| 29 | rw [← hg, ← Category.assoc, ← hn, Category.assoc, hp, ← Category.assoc, hl] |
| 30 | |
| 31 | universe u v w z |
| 32 | variable {X : TopCat.{u}} {D : Type v} [Category D] [Abelian D] |
| 33 | [HasProducts.{u} D] [HasCoproducts.{0} D] |
| 34 | {A : Type w} [Category.{z} A] [Abelian A] |
| 35 | (J : A ⥤ (Opens X)ᵒᵖ ⥤ D) [J.Additive] (M : A) (c g : ℕ) |
| 36 | |
| 37 | abbrev source := MappedSingleGlobal.sourceComplex J M c |
| 38 | abbrev plain := (single ((Opens X)ᵒᵖ ⥤ D) (.up ℕ) c).obj (J.obj M) |
| 39 | abbrev singleIso := (singleMapHomologicalComplex J (.up ℕ) c).app M |
| 40 | |
| 41 | section Relative |
| 42 | variable (U : Opens X) {ι κ : Type u} [LinearOrder ι] [LinearOrder κ] |
| 43 | (V : ι → Opens X) (T : κ → Opens X) |
| 44 | (r : FormalCoproduct.mk κ T ⟶ FormalCoproduct.mk ι V) |
| 45 | |
| 46 | abbrev relativeIso := homologyMapIso |
| 47 | (HomologicalComplex₂.total.mapIso |
| 48 | (((RelativeCech.Total.localFunctor U V).mapHomologicalComplex (.up ℕ)).mapIso |
| 49 | (singleIso J M c)) (.up ℕ)) (g+c) |
| 50 | |
| 51 | variable [IsIso (RelativeCech.Refinement.homology U V T r (source J M c) (g+c))] |
| 52 | |
| 53 | theorem relative_isIso : |
| 54 | IsIso (RelativeCech.Refinement.homology U V T r (plain J M c) (g+c)) := |
| 55 | isIso_of_square (RelativeCech.Refinement.homology U V T r (source J M c) (g+c)) |
| 56 | (RelativeCech.Refinement.homology U V T r (plain J M c) (g+c)) |
| 57 | (relativeIso J M c g U V) (relativeIso J M c g U T) |
| 58 | (RelativeCech.Refinement.homology_naturality U V T r |
| 59 | (K := source J M c) (L := plain J M c) (singleIso J M c).hom (g+c)).symm |
| 60 | end Relative |
| 61 | |
| 62 | section Ordered |
| 63 | variable {ι κ : Type u} [LinearOrder ι] [LinearOrder κ] |
| 64 | (V : ι → Opens X) (T : κ → Opens X) |
| 65 | (r : FormalCoproduct.mk κ T ⟶ FormalCoproduct.mk ι V) |
| 66 | |
| 67 | abbrev orderedIso := homologyMapIso |
| 68 | ((OrderedCech.TotalProjection.ordered V).mapIso (singleIso J M c)) (g+c) |
| 69 | |
| 70 | variable [IsIso (homologyMap (OrderedCech.Refinement.totalMap V T r (source J M c)) (g+c))] |
| 71 | |
| 72 | theorem ordered_isIso : |
| 73 | IsIso (homologyMap (OrderedCech.Refinement.totalMap V T r (plain J M c)) (g+c)) := |
| 74 | isIso_of_square (homologyMap (OrderedCech.Refinement.totalMap V T r (source J M c)) (g+c)) |
| 75 | (homologyMap (OrderedCech.Refinement.totalMap V T r (plain J M c)) (g+c)) |
| 76 | (orderedIso J M c g V) (orderedIso J M c g T) |
| 77 | (Presheaf.OrderedCover.Comparison.homology_naturality V T r |
| 78 | (K := source J M c) (L := plain J M c) (singleIso J M c).hom (g+c)).symm |
| 79 | end Ordered |
| 80 | |
| 81 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] (F : C ⥤ Opens X) |
| 82 | {ι κ ν μ ρ : Type u} |
| 83 | [LinearOrder ι] [LinearOrder κ] [LinearOrder ν] [LinearOrder μ] [LinearOrder ρ] |
| 84 | (W : ι → C) |
| 85 | [∀ (n : ℕ) (a : Fin (n+1) → ι), PreservesLimit (Discrete.functor (W ∘ a)) F] |
| 86 | (B : κ → Opens X) (E : ν → Opens X) |
| 87 | (r : FormalCoproduct.mk ν E ⟶ FormalCoproduct.mk ι (F.obj ∘ W)) |
| 88 | (s : FormalCoproduct.mk ν E ⟶ FormalCoproduct.mk κ B) |
| 89 | (V : μ → Opens X) (T : ρ → Opens X) |
| 90 | (l : FormalCoproduct.mk ρ T ⟶ FormalCoproduct.mk (WithBot κ) |
| 91 | (RelativeCech.Intersections.cover (F.obj (⊤_ C)) B)) |
| 92 | (t : FormalCoproduct.mk ρ T ⟶ FormalCoproduct.mk μ V) |
| 93 | [IsIso (RelativeCech.Refinement.homology (F.obj (⊤_ C)) B E s (source J M c) (g+c))] |
| 94 | [IsIso (homologyMap (OrderedCech.Refinement.totalMap V T t (source J M c)) (g+c))] |
| 95 | |
| 96 | abbrev localCoordinates := Functor.SingleTotal.homologyIso |
| 97 | (J ⋙ Cech.SingleFunctorCoordinates.localFunctor F W) M c g |
| 98 | abbrev globalCoordinates := Functor.SingleTotal.homologyIso |
| 99 | (J ⋙ OrderedCech.Functor.Projection.functor V) M c g |
| 100 | |
| 101 | def coefficientComparison := by |
| 102 | letI := relative_isIso J M c g (F.obj (⊤_ C)) B E s |
| 103 | letI := ordered_isIso J M c g V T t |
| 104 | exact PresheafSingleCoordinates.coefficientComparison |
| 105 | (J.obj M) c g F W B E r s V T l t |
| 106 | |
| 107 | theorem comparison : |
| 108 | PresheafCover.Comparison.comparison F W B E r s V T l t (source J M c) (g+c) ≫ |
| 109 | (globalCoordinates J M c g V).hom = |
| 110 | (localCoordinates J M c g F W).hom ≫ coefficientComparison J M c g F W B E r s V T l t := by |
| 111 | let := relative_isIso J M c g (F.obj (⊤_ C)) B E s |
| 112 | let := ordered_isIso J M c g V T t |
| 113 | have hn := PresheafCover.Comparison.naturality |
| 114 | F W B E r s V T l t (K := source J M c) (L := plain J M c) (singleIso J M c).hom (g+c) |
| 115 | have hp := PresheafSingleCoordinates.comparison (J.obj M) c g F W B E r s V T l t |
| 116 | have hl := Functor.MappedSingleCoordinates.comparison J |
| 117 | (Cech.SingleFunctorCoordinates.localFunctor F W) M c g |
| 118 | have hg := Functor.MappedSingleCoordinates.comparison J |
| 119 | (OrderedCech.Functor.Projection.functor V) M c g |
| 120 | exact paste _ _ _ _ _ _ _ _ _ hn hp hl hg |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.MappedSingleCoordinates |