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.BoundedOpen.SectionSubsite |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.FrameTransport |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SectionedIncomingCoordinates |
| 4 | |
| 5 | /-! # Incoming Map -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.IncomingMap |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An incoming-site comparison expressed on the original global |
| 12 | section presheaf, with its exact changes of open and indexing family. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | private theorem complexNatTrans_ext {C D : Type*} [Category C] [Category D] |
| 20 | [CategoryTheory.Limits.HasZeroMorphisms D] |
| 21 | {K L : CochainComplex (C ⥤ D) ℕ} (f g : K ⟶ L) |
| 22 | (h : ∀ q X, (f.f q).app X = (g.f q).app X) : f = g := by |
| 23 | apply HomologicalComplex.Hom.ext |
| 24 | funext q |
| 25 | apply NatTrans.ext |
| 26 | funext X |
| 27 | exact h q X |
| 28 | |
| 29 | universe u v v' |
| 30 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 31 | {Y : Scheme.{u}} (f : Y ⟶ Spec (CommRingCat.of B)) (n : ℕ) |
| 32 | (V : Y.Opens) {D : Type v} [Preorder D] (F : D →o Y.Opens) |
| 33 | (hF : ∀ d, F d ≤ V) |
| 34 | |
| 35 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site.ModuleSheaf (p := p) (J := J) (δ := δ) f n |
| 36 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.Subsite.restriction (p := p) (J := J) (δ := δ) f V.ι n |
| 37 | local notation "S" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.SectionSubsite.globalSections (p := p) (J := J) (δ := δ) f n F |
| 38 | local notation "T" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.SectionSubsite.localSections (p := p) (J := J) (δ := δ) f n V F |
| 39 | local notation "e" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.SectionSubsite.iso (p := p) (J := J) (δ := δ) f n V F hF |
| 40 | |
| 41 | variable (K L : CochainComplex |
| 42 | (BoundedCrystalline.Site.ModuleSheaf (p := p) (J := J) (δ := δ) f n) ℕ) |
| 43 | (b : ((Subsite.restriction (p := p) (J := J) (δ := δ) f V.ι n).mapHomologicalComplex (.up ℕ)).obj K ⟶ |
| 44 | ((Subsite.restriction (p := p) (J := J) (δ := δ) f V.ι n).mapHomologicalComplex (.up ℕ)).obj L) |
| 45 | |
| 46 | def map : ((S).mapHomologicalComplex (.up ℕ)).obj K ⟶ |
| 47 | ((S).mapHomologicalComplex (.up ℕ)).obj L := |
| 48 | SectionedIncomingHomotopy.map R S T e b |
| 49 | |
| 50 | theorem map_component (q : ℕ) (d : Dᵒᵖ) : |
| 51 | ((IncomingMap.map f n V F hF K L b).f q).app d = |
| 52 | ((e).hom.app (K.X q)).app d ≫ ((T).map (b.f q)).app d ≫ |
| 53 | ((e).inv.app (L.X q)).app d := |
| 54 | SectionedIncomingCoordinates.component R S T e b q d |
| 55 | |
| 56 | variable {D' : Type v'} [Preorder D'] (r : D' ⥤ D) |
| 57 | |
| 58 | def reindexedOpens : D' →o Y.Opens where |
| 59 | toFun d := F (r.obj d) |
| 60 | monotone' _ _ h := F.monotone (leOfHom (r.map (homOfLE h))) |
| 61 | |
| 62 | theorem hom_reindex (M : BoundedCrystalline.Site.ModuleSheaf (p := p) (J := J) (δ := δ) f n) |
| 63 | (d : D'ᵒᵖ) : |
| 64 | ((SectionSubsite.iso f n V (reindexedOpens F r) |
| 65 | (fun d => hF (r.obj d))).hom.app M).app d = |
| 66 | ((SectionSubsite.iso f n V F hF).hom.app M).app (r.op.obj d) := by |
| 67 | apply ModuleCat.hom_ext |
| 68 | apply LinearMap.ext |
| 69 | intro x |
| 70 | apply ULift.ext |
| 71 | apply NatTrans.ext |
| 72 | funext Z |
| 73 | rfl |
| 74 | |
| 75 | theorem inv_reindex (M : BoundedCrystalline.Site.ModuleSheaf (p := p) (J := J) (δ := δ) f n) |
| 76 | (d : D'ᵒᵖ) : |
| 77 | ((SectionSubsite.iso f n V (reindexedOpens F r) |
| 78 | (fun d => hF (r.obj d))).inv.app M).app d = |
| 79 | ((SectionSubsite.iso f n V F hF).inv.app M).app (r.op.obj d) := by |
| 80 | apply ModuleCat.hom_ext |
| 81 | apply LinearMap.ext |
| 82 | intro x |
| 83 | apply ULift.ext |
| 84 | apply NatTrans.ext |
| 85 | funext Z |
| 86 | rfl |
| 87 | |
| 88 | theorem local_map_reindex |
| 89 | {M N : Subsite.ModuleSheaf (p := p) (J := J) (δ := δ) f V.ι n} |
| 90 | (a : M ⟶ N) (d : D'ᵒᵖ) : |
| 91 | ((SectionSubsite.localSections f n V (reindexedOpens F r)).map a).app d = |
| 92 | ((SectionSubsite.localSections f n V F).map a).app (r.op.obj d) := by |
| 93 | apply ModuleCat.hom_ext |
| 94 | apply LinearMap.ext |
| 95 | intro x |
| 96 | rfl |
| 97 | |
| 98 | theorem reindex_component (q : ℕ) (d : D'ᵒᵖ) : |
| 99 | ((IncomingMap.map f n V (reindexedOpens F r) (fun d => hF (r.obj d)) K L b).f q).app d = |
| 100 | ((IncomingMap.map f n V F hF K L b).f q).app (r.op.obj d) := by |
| 101 | rw [map_component, map_component] |
| 102 | rw [hom_reindex, local_map_reindex, inv_reindex] |
| 103 | |
| 104 | /-- The incoming map after whiskering the indexing family. -/ |
| 105 | def whiskeredMap : |
| 106 | ((SectionSubsite.globalSections f n (reindexedOpens F r)).mapHomologicalComplex (.up ℕ)).obj K ⟶ |
| 107 | ((SectionSubsite.globalSections f n (reindexedOpens F r)).mapHomologicalComplex (.up ℕ)).obj L := |
| 108 | (((Functor.whiskeringLeft D'ᵒᵖ Dᵒᵖ |
| 109 | (ModuleCat.{u + 2} (Crystalline.ExactRestriction.Coeff (B := B)))).obj r.op).mapHomologicalComplex (.up ℕ)).map |
| 110 | (IncomingMap.map f n V F hF K L b) |
| 111 | |
| 112 | private theorem reindex_degree (q : ℕ) : |
| 113 | (IncomingMap.map f n V (reindexedOpens F r) (fun d => hF (r.obj d)) K L b).f q = |
| 114 | (whiskeredMap f n V F hF K L b r).f q := by |
| 115 | apply NatTrans.ext |
| 116 | funext d |
| 117 | exact reindex_component f n V F hF K L b r q d |
| 118 | |
| 119 | theorem reindex : IncomingMap.map f n V (reindexedOpens F r) (fun d => hF (r.obj d)) K L b = |
| 120 | whiskeredMap f n V F hF K L b r := by |
| 121 | exact HomologicalComplex.hom_ext _ _ (reindex_degree f n V F hF K L b r) |
| 122 | |
| 123 | variable (V' : Y.Opens) (hV : V = V') |
| 124 | |
| 125 | def transport |
| 126 | (b' : ((Subsite.restriction (p := p) (J := J) (δ := δ) f V'.ι n).mapHomologicalComplex (.up ℕ)).obj K ⟶ |
| 127 | ((Subsite.restriction (p := p) (J := J) (δ := δ) f V'.ι n).mapHomologicalComplex (.up ℕ)).obj L) : |
| 128 | ((R).mapHomologicalComplex (.up ℕ)).obj K ⟶ ((R).mapHomologicalComplex (.up ℕ)).obj L := by |
| 129 | subst V' |
| 130 | exact b' |
| 131 | |
| 132 | theorem open_eq (hF' : ∀ d, F d ≤ V') |
| 133 | (b' : ((Subsite.restriction (p := p) (J := J) (δ := δ) f V'.ι n).mapHomologicalComplex (.up ℕ)).obj K ⟶ |
| 134 | ((Subsite.restriction (p := p) (J := J) (δ := δ) f V'.ι n).mapHomologicalComplex (.up ℕ)).obj L) : |
| 135 | IncomingMap.map f n V F hF K L (transport f n V K L V' hV b') = IncomingMap.map f n V' F hF' K L b' := by |
| 136 | subst V' |
| 137 | rfl |
| 138 | |
| 139 | variable (F' : D →o Y.Opens) (h : F = F') |
| 140 | |
| 141 | def familyIso : SectionSubsite.globalSections (p := p) (J := J) (δ := δ) f n F ≅ |
| 142 | SectionSubsite.globalSections (p := p) (J := J) (δ := δ) f n F' := |
| 143 | eqToIso (congrArg (SectionSubsite.globalSections (p := p) (J := J) (δ := δ) f n) h) |
| 144 | |
| 145 | theorem family_eq (hF' : ∀ d, F' d ≤ V) : |
| 146 | IncomingMap.map f n V F hF K L b ≫ ((NatIso.mapHomologicalComplex (familyIso f n F F' h) (.up ℕ)).app L).hom = |
| 147 | ((NatIso.mapHomologicalComplex (familyIso f n F F' h) (.up ℕ)).app K).hom ≫ |
| 148 | IncomingMap.map f n V F' hF' K L b := by |
| 149 | subst F' |
| 150 | change IncomingMap.map f n V F hF K L b ≫ 𝟙 _ = 𝟙 _ ≫ IncomingMap.map f n V F hF' K L b |
| 151 | rw [Category.comp_id, Category.id_comp] |
| 152 | |
| 153 | end |
| 154 | |
| 155 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.IncomingMap |