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.Finite.CoverCocycles |
| 2 | |
| 3 | /-! # Cover Character -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CoverCharacter |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Canonical additive overlap characters of actual sheaf H¹. When every |
| 10 | coefficient section on a connected cover has equal restrictions to its two |
| 11 | overlap projections, the usual overlap difference is independent of all |
| 12 | choices of representatives and local lifts. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite Abelian |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.CoverCocycles |
| 17 | |
| 18 | universe u |
| 19 | variable {X : Scheme.{u}} |
| 20 | (S : ShortComplex (Sheaf (Scheme.ProEt.topology X) Ab.{u + 1})) |
| 21 | (hS : S.ShortExact) (U D : X.ProEt) (a b : D ⟶ U) |
| 22 | |
| 23 | structure Representative (x : S.X₁.H 1) where |
| 24 | z : S.X₃.obj.obj (op (⊤_ X.ProEt)) |
| 25 | t : S.X₂.obj.obj (op U) |
| 26 | c : S.X₁.obj.obj (op D) |
| 27 | class_eq : Finite.CoverCocycles.connectingSections S hS z = x |
| 28 | lift_eq : S.g.hom.app (op U) t = S.X₃.obj.map (terminal.from U).op z |
| 29 | difference_eq : S.f.hom.app (op D) c = S.X₂.obj.map a.op t - S.X₂.obj.map b.op t |
| 30 | |
| 31 | include hS |
| 32 | |
| 33 | theorem sections_exact (V : X.ProEt) : |
| 34 | (S.map ((sheafToPresheaf _ Ab.{u + 1}) ⋙ (evaluation _ _).obj (op V))).Exact := |
| 35 | ((Functor.preservesFiniteLimits_iff_forall_exact_map_and_mono _).mp |
| 36 | inferInstance S hS).1 |
| 37 | |
| 38 | theorem sections_injective (V : X.ProEt) : Function.Injective (S.f.hom.app (op V)) := by |
| 39 | let : Mono S.f := hS.mono_f |
| 40 | exact (AddCommGrpCat.mono_iff_injective _).mp inferInstance |
| 41 | |
| 42 | theorem connecting_kernel (z : S.X₃.obj.obj (op (⊤_ X.ProEt))) |
| 43 | (hz : Finite.CoverCocycles.connectingSections S hS z = 0) : |
| 44 | ∃ w : S.X₂.obj.obj (op (⊤_ X.ProEt)), S.g.hom.app (op (⊤_ X.ProEt)) w = z := by |
| 45 | obtain ⟨y, hy⟩ := Ext.covariant_sequence_exact₃ (AlgebraicGeometry.FormalGeometry.Completion.ProetalePullback.Construction.proEtIntegerConstant X) hS |
| 46 | ((Sheaf.H.equiv₀ S.X₃ terminalIsTerminal).symm z) (zero_add 1) hz |
| 47 | refine ⟨Sheaf.H.equiv₀ S.X₂ terminalIsTerminal y, ?_⟩ |
| 48 | rw [Sheaf.H.equiv₀_naturality] |
| 49 | exact (congrArg (Sheaf.H.equiv₀ S.X₃ terminalIsTerminal) hy).trans |
| 50 | (AddEquiv.apply_symm_apply _ _) |
| 51 | |
| 52 | variable [Injective S.X₂] |
| 53 | (hlift : ∀ z : S.X₃.obj.obj (op (⊤_ X.ProEt)), |
| 54 | ∃ t : S.X₂.obj.obj (op U), S.g.hom.app (op U) t = |
| 55 | S.X₃.obj.map (terminal.from U).op z) |
| 56 | |
| 57 | include hlift |
| 58 | |
| 59 | theorem representative_exists (x : S.X₁.H 1) : |
| 60 | Nonempty (Representative S hS U D a b x) := by |
| 61 | obtain ⟨z, hz⟩ := Finite.CoverCocycles.connectingSections_surjective S hS x |
| 62 | obtain ⟨t, ht⟩ := hlift z |
| 63 | have hc : ∃ c : S.X₁.obj.obj (op D), |
| 64 | S.f.hom.app (op D) c = S.X₂.obj.map a.op t - S.X₂.obj.map b.op t := by |
| 65 | apply (ShortComplex.ab_exact_iff _).mp (sections_exact S hS D) |
| 66 | change S.g.hom.app (op D) (S.X₂.obj.map a.op t - S.X₂.obj.map b.op t) = 0 |
| 67 | rw [map_sub, NatTrans.naturality_apply, NatTrans.naturality_apply, ht] |
| 68 | simp only [← ConcreteCategory.comp_apply, ← Functor.map_comp, ← op_comp, |
| 69 | terminal.comp_from, sub_self] |
| 70 | obtain ⟨c, hc⟩ := hc |
| 71 | exact ⟨⟨z, t, c, hz, ht, hc⟩⟩ |
| 72 | |
| 73 | variable (hcoeff : ∀ v : S.X₁.obj.obj (op U), S.X₁.obj.map a.op v = S.X₁.obj.map b.op v) |
| 74 | |
| 75 | include hcoeff |
| 76 | |
| 77 | omit [Injective S.X₂] hlift in |
| 78 | theorem representative_unique {x : S.X₁.H 1} |
| 79 | (r s : Representative S hS U D a b x) : r.c = s.c := by |
| 80 | have hz : Finite.CoverCocycles.connectingSections S hS (r.z - s.z) = 0 := by |
| 81 | rw [map_sub, r.class_eq, s.class_eq, sub_self] |
| 82 | obtain ⟨w, hw⟩ := connecting_kernel S hS (r.z - s.z) hz |
| 83 | have hker : S.g.hom.app (op U) |
| 84 | (r.t - s.t - S.X₂.obj.map (terminal.from U).op w) = 0 := by |
| 85 | rw [map_sub, map_sub, NatTrans.naturality_apply, r.lift_eq, s.lift_eq, hw, map_sub, |
| 86 | sub_self] |
| 87 | obtain ⟨v, hv⟩ := (ShortComplex.ab_exact_iff _).mp (sections_exact S hS U) _ hker |
| 88 | change S.X₁.obj.obj (op U) at v |
| 89 | change S.f.hom.app (op U) v = r.t - s.t - S.X₂.obj.map (terminal.from U).op w at hv |
| 90 | have he := congrArg (fun t : S.X₂.obj.obj (op U) => |
| 91 | S.X₂.obj.map a.op t - S.X₂.obj.map b.op t) hv |
| 92 | have hwab : S.X₂.obj.map a.op (S.X₂.obj.map (terminal.from U).op w) = |
| 93 | S.X₂.obj.map b.op (S.X₂.obj.map (terminal.from U).op w) := by |
| 94 | simp only [← ConcreteCategory.comp_apply, ← Functor.map_comp, ← op_comp, |
| 95 | terminal.comp_from] |
| 96 | have hc : S.X₂.obj.map a.op (S.f.hom.app (op U) v) - |
| 97 | S.X₂.obj.map b.op (S.f.hom.app (op U) v) = 0 := by |
| 98 | rw [← NatTrans.naturality_apply, ← NatTrans.naturality_apply, hcoeff v, sub_self] |
| 99 | rw [hc] at he |
| 100 | simp only [map_sub, hwab] at he |
| 101 | apply sections_injective S hS D |
| 102 | rw [r.difference_eq, s.difference_eq] |
| 103 | apply sub_eq_zero.mp |
| 104 | calc |
| 105 | _ = (S.X₂.obj.map a.op r.t - S.X₂.obj.map a.op s.t - |
| 106 | S.X₂.obj.map b.op (S.X₂.obj.map (terminal.from U).op w)) - |
| 107 | (S.X₂.obj.map b.op r.t - S.X₂.obj.map b.op s.t - |
| 108 | S.X₂.obj.map b.op (S.X₂.obj.map (terminal.from U).op w)) := by abel |
| 109 | _ = 0 := he.symm |
| 110 | |
| 111 | def representative (x : S.X₁.H 1) : Representative S hS U D a b x := |
| 112 | Classical.choice (representative_exists S hS U D a b hlift x) |
| 113 | |
| 114 | def zeroRepresentative : Representative S hS U D a b 0 where |
| 115 | z := 0 |
| 116 | t := 0 |
| 117 | c := 0 |
| 118 | class_eq := map_zero _ |
| 119 | lift_eq := by simp |
| 120 | difference_eq := by simp |
| 121 | |
| 122 | def addRepresentative {x y : S.X₁.H 1} |
| 123 | (r : Representative S hS U D a b x) (s : Representative S hS U D a b y) : |
| 124 | Representative S hS U D a b (x + y) where |
| 125 | z := r.z + s.z |
| 126 | t := r.t + s.t |
| 127 | c := r.c + s.c |
| 128 | class_eq := by rw [map_add, r.class_eq, s.class_eq] |
| 129 | lift_eq := by rw [map_add, r.lift_eq, s.lift_eq, map_add] |
| 130 | difference_eq := by |
| 131 | rw [map_add, r.difference_eq, s.difference_eq, map_add, map_add] |
| 132 | abel |
| 133 | |
| 134 | def character : S.X₁.H 1 →+ S.X₁.obj.obj (op D) where |
| 135 | toFun x := (representative S hS U D a b hlift x).c |
| 136 | map_zero' := representative_unique S hS U D a b hcoeff |
| 137 | (representative S hS U D a b hlift 0) (zeroRepresentative S hS U D a b) |
| 138 | map_add' x y := representative_unique S hS U D a b hcoeff |
| 139 | (representative S hS U D a b hlift (x + y)) |
| 140 | (addRepresentative S hS U D a b |
| 141 | (representative S hS U D a b hlift x) (representative S hS U D a b hlift y)) |
| 142 | |
| 143 | theorem character_cocycle (x : S.X₁.H 1) (T : X.ProEt) (p q r : T ⟶ D) |
| 144 | (hpa : p ≫ a = r ≫ a) (hpb : p ≫ b = q ≫ a) (hqb : q ≫ b = r ≫ b) : |
| 145 | S.X₁.obj.map p.op (character S hS U D a b hlift hcoeff x) + |
| 146 | S.X₁.obj.map q.op (character S hS U D a b hlift hcoeff x) = |
| 147 | S.X₁.obj.map r.op (character S hS U D a b hlift hcoeff x) := by |
| 148 | let c := representative S hS U D a b hlift x |
| 149 | change S.X₁.obj.map p.op c.c + S.X₁.obj.map q.op c.c = S.X₁.obj.map r.op c.c |
| 150 | apply sections_injective S hS T |
| 151 | rw [map_add, NatTrans.naturality_apply, NatTrans.naturality_apply, |
| 152 | NatTrans.naturality_apply, c.difference_eq] |
| 153 | simp only [map_sub, ← ConcreteCategory.comp_apply, ← Functor.map_comp, ← op_comp, |
| 154 | hpa, hpb, hqb] |
| 155 | abel |
| 156 | |
| 157 | variable [Surjective (terminal.from U).left] [QuasiCompact (terminal.from U).left] |
| 158 | (hD : IsPullback a.left b.left (terminal.from U).left (terminal.from U).left) |
| 159 | |
| 160 | include hD in |
| 161 | theorem character_injective : Function.Injective (character S hS U D a b hlift hcoeff) := by |
| 162 | intro x y hxy |
| 163 | let r := representative S hS U D a b hlift x |
| 164 | let s := representative S hS U D a b hlift y |
| 165 | change r.c = s.c at hxy |
| 166 | have hcompat : S.X₂.obj.map a.op (r.t - s.t) = S.X₂.obj.map b.op (r.t - s.t) := by |
| 167 | have he := r.difference_eq.symm.trans ((congrArg (S.f.hom.app (op D)) hxy).trans |
| 168 | s.difference_eq) |
| 169 | simp only [map_sub] |
| 170 | exact sub_eq_sub_iff_sub_eq_sub.mp he |
| 171 | let F := (sheafCompose (Scheme.ProEt.topology X) (forget Ab.{u + 1})).obj S.X₂ |
| 172 | obtain ⟨w, hw, _⟩ := AlgebraicGeometry.FormalGeometry.Completion.ProEtale.CechSections.Construction.proEtaleSheaf_descend_section_of_isPullback F |
| 173 | (terminal.from U) a b hD (r.t - s.t) hcompat |
| 174 | change S.X₂.obj.obj (op (⊤_ X.ProEt)) at w |
| 175 | change S.X₂.obj.map (terminal.from U).op w = r.t - s.t at hw |
| 176 | have hgw : S.g.hom.app (op (⊤_ X.ProEt)) w = r.z - s.z := by |
| 177 | apply Finite.CoverCocycles.cover_section_injective S.X₃ (terminal.from U) |
| 178 | rw [← NatTrans.naturality_apply, hw, map_sub, r.lift_eq, s.lift_eq, map_sub] |
| 179 | have hzero := Finite.CoverCocycles.connectingSections_projection S hS w |
| 180 | rw [hgw, map_sub, r.class_eq, s.class_eq] at hzero |
| 181 | exact sub_eq_zero.mp hzero |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CoverCharacter |