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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.BaseChange |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.GroupMaps |
| 3 | |
| 4 | /-! # Constant Sections On -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Extend sections indexed by a group to locally constant sections on every |
| 11 | test scheme. The extension uses the actual disjoint union of open fibers; |
| 12 | its group laws and naturality are proved without a torsion trivialization. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open scoped _root_.CategoryTheory.MonObj |
| 16 | |
| 17 | variable {S : Scheme.{0}} {I : Type} {H : Over S} |
| 18 | |
| 19 | abbrev baseTest (S : Scheme.{0}) : Over S := Over.mk (𝟙 S) |
| 20 | |
| 21 | def toBase (T : Over S) : T ⟶ baseTest S := |
| 22 | Over.homMk T.hom (Category.comp_id _) |
| 23 | |
| 24 | def component (S : Scheme.{0}) (i : I) : baseTest S ⟶ HilbertConstruction.ConstantScheme.Iff.constantScheme S I := |
| 25 | Over.homMk (Sigma.ι (fun _ : I => S) i) (HilbertConstruction.ConstantScheme.Iff.constantScheme_ι_hom i) |
| 26 | |
| 27 | def sectionsMap (h : I → (baseTest S ⟶ H)) : HilbertConstruction.ConstantScheme.Iff.constantScheme S I ⟶ H := |
| 28 | Over.homMk (Sigma.desc (fun i => (h i).left)) (by |
| 29 | change (Sigma.desc (fun i => (h i).left)) ≫ H.hom = Sigma.desc (fun _ : I => 𝟙 S) |
| 30 | apply Sigma.hom_ext |
| 31 | intro i |
| 32 | rw [← Category.assoc, Sigma.ι_comp_desc, Sigma.ι_comp_desc] |
| 33 | exact (h i).w) |
| 34 | |
| 35 | @[simp] |
| 36 | theorem component_sectionsMap (h : I → (baseTest S ⟶ H)) (i : I) : |
| 37 | component S i ≫ sectionsMap h = h i := by |
| 38 | apply Over.OverMorphism.ext |
| 39 | exact Sigma.ι_comp_desc _ _ |
| 40 | |
| 41 | def extend (h : I → (baseTest S ⟶ H)) (T : Over S) |
| 42 | (c : LocallyConstant T.left I) : T ⟶ H := |
| 43 | (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).symm c ≫ sectionsMap h |
| 44 | |
| 45 | theorem extend_natural (h : I → (baseTest S ⟶ H)) {T U : Over S} |
| 46 | (j : U ⟶ T) (c : LocallyConstant T.left I) : |
| 47 | extend h U (c.comap ⟨j.left, j.left.continuous⟩) = j ≫ extend h T c := by |
| 48 | have hw : (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I U).symm |
| 49 | (c.comap ⟨j.left, j.left.continuous⟩) = |
| 50 | j ≫ (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).symm c := by |
| 51 | apply (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I U).injective |
| 52 | rw [Equiv.apply_symm_apply] |
| 53 | exact ((HilbertConstruction.Constant.BaseChange.constantSetRepresentable S I).homEquiv_comp j |
| 54 | ((HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).symm c)).trans |
| 55 | (congrArg (fun d : LocallyConstant T.left I => |
| 56 | d.comap ⟨j.left, j.left.continuous⟩) |
| 57 | ((HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).apply_symm_apply c)) |>.symm |
| 58 | exact (congrArg (fun f => f ≫ sectionsMap h) hw).trans (Category.assoc _ _ _) |
| 59 | |
| 60 | theorem extend_const (h : I → (baseTest S ⟶ H)) (T : Over S) (i : I) : |
| 61 | extend h T (LocallyConstant.const T.left i) = toBase T ≫ h i := by |
| 62 | have hw : (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).symm |
| 63 | (LocallyConstant.const T.left i) = toBase T ≫ component S i := by |
| 64 | apply (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).injective |
| 65 | rw [Equiv.apply_symm_apply] |
| 66 | apply LocallyConstant.ext |
| 67 | intro x |
| 68 | exact (HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex_ι i (T.hom x)).symm |
| 69 | rw [extend, hw, Category.assoc, component_sectionsMap] |
| 70 | |
| 71 | def fiberTest (T : Over S) (c : LocallyConstant T.left I) (i : I) : Over S := |
| 72 | Over.mk ((HilbertConstruction.ConstantScheme.Iff.locallyConstantFiber c i).ι ≫ T.hom) |
| 73 | |
| 74 | def fiberInclusion (T : Over S) (c : LocallyConstant T.left I) (i : I) : |
| 75 | fiberTest T c i ⟶ T := Over.homMk (HilbertConstruction.ConstantScheme.Iff.locallyConstantFiber c i).ι rfl |
| 76 | |
| 77 | theorem hom_ext_on_fibers (T : Over S) (c : LocallyConstant T.left I) |
| 78 | {f g : T ⟶ H} (h : ∀ i, fiberInclusion T c i ≫ f = fiberInclusion T c i ≫ g) : |
| 79 | f = g := by |
| 80 | apply Over.OverMorphism.ext |
| 81 | apply (cancel_epi (HilbertConstruction.ConstantScheme.Iff.locallyConstantFibersIso c).hom).mp |
| 82 | apply Sigma.hom_ext |
| 83 | intro i |
| 84 | rw [HilbertConstruction.ConstantScheme.Iff.locallyConstantFibersIso_ι_hom_assoc, HilbertConstruction.ConstantScheme.Iff.locallyConstantFibersIso_ι_hom_assoc] |
| 85 | exact congrArg Over.Hom.left (h i) |
| 86 | |
| 87 | variable {G : Type} [Group G] [GrpObj H] |
| 88 | |
| 89 | /-- A homomorphism of constant label sections extends to all locally |
| 90 | constant sections, including disconnected and nonreduced test schemes. -/ |
| 91 | def extendHom (h : G →* (baseTest S ⟶ H)) (T : Over S) : |
| 92 | LocallyConstant T.left G →* (T ⟶ H) where |
| 93 | toFun := extend h T |
| 94 | map_one' := by |
| 95 | change extend h T (LocallyConstant.const T.left 1) = 1 |
| 96 | rw [extend_const, map_one, MonObj.comp_one] |
| 97 | map_mul' c d := by |
| 98 | let p : LocallyConstant T.left (G × G) := |
| 99 | ⟨fun x => (c x, d x), c.isLocallyConstant.prodMk d.isLocallyConstant⟩ |
| 100 | apply hom_ext_on_fibers T p |
| 101 | intro i |
| 102 | let U := fiberTest T p i |
| 103 | let j := fiberInclusion T p i |
| 104 | have hc : c.comap ⟨j.left, j.left.continuous⟩ = LocallyConstant.const U.left i.1 := by |
| 105 | apply LocallyConstant.ext |
| 106 | intro x |
| 107 | exact congrArg Prod.fst x.property |
| 108 | have hd : d.comap ⟨j.left, j.left.continuous⟩ = LocallyConstant.const U.left i.2 := by |
| 109 | apply LocallyConstant.ext |
| 110 | intro x |
| 111 | exact congrArg Prod.snd x.property |
| 112 | change j ≫ extend h T (c * d) = j ≫ (extend h T c * extend h T d) |
| 113 | rw [MonObj.comp_mul, ← extend_natural, ← extend_natural, ← extend_natural] |
| 114 | have hcd : (c * d).comap ⟨j.left, j.left.continuous⟩ = |
| 115 | LocallyConstant.const U.left (i.1 * i.2) := by |
| 116 | apply LocallyConstant.ext |
| 117 | intro x |
| 118 | exact congrArg₂ (· * ·) (congrArg (fun e : LocallyConstant U.left G => e x) hc) |
| 119 | (congrArg (fun e : LocallyConstant U.left G => e x) hd) |
| 120 | rw [hc, hd, hcd, extend_const, extend_const, extend_const, map_mul, MonObj.comp_mul] |
| 121 | |
| 122 | def extendNatTrans (h : G →* (baseTest S ⟶ H)) : |
| 123 | HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G ⟶ yonedaGrpObj H where |
| 124 | app T := GrpCat.ofHom (extendHom h T.unop) |
| 125 | naturality {T U} f := by |
| 126 | apply GrpCat.hom_ext |
| 127 | apply MonoidHom.ext |
| 128 | intro c |
| 129 | exact extend_natural h f.unop c |
| 130 | |
| 131 | /-- Naturality and values on constant sections force this extension. |
| 132 | Equality is checked on the actual open-fiber decomposition. -/ |
| 133 | theorem natTrans_ext_on_constants |
| 134 | {α β : HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G ⟶ yonedaGrpObj H} |
| 135 | (h : ∀ c : G, α.app (.op (baseTest S)) (LocallyConstant.const S c) = |
| 136 | β.app (.op (baseTest S)) (LocallyConstant.const S c)) : α = β := by |
| 137 | apply NatTrans.ext |
| 138 | funext T |
| 139 | apply GrpCat.hom_ext |
| 140 | apply MonoidHom.ext |
| 141 | intro c |
| 142 | apply hom_ext_on_fibers T.unop c |
| 143 | intro i |
| 144 | let U := fiberTest T.unop c i |
| 145 | let j := fiberInclusion T.unop c i |
| 146 | let b := toBase U |
| 147 | have hc : c.comap ⟨j.left, j.left.continuous⟩ = LocallyConstant.const U.left i := by |
| 148 | apply LocallyConstant.ext |
| 149 | intro x |
| 150 | exact x.property |
| 151 | have hjα := ConcreteCategory.congr_hom (α.naturality j.op) c |
| 152 | have hjβ := ConcreteCategory.congr_hom (β.naturality j.op) c |
| 153 | change α.app (.op U) (c.comap ⟨j.left, j.left.continuous⟩) = j ≫ α.app T c at hjα |
| 154 | change β.app (.op U) (c.comap ⟨j.left, j.left.continuous⟩) = j ≫ β.app T c at hjβ |
| 155 | rw [hc] at hjα hjβ |
| 156 | have hbα := ConcreteCategory.congr_hom (α.naturality b.op) (LocallyConstant.const S i) |
| 157 | have hbβ := ConcreteCategory.congr_hom (β.naturality b.op) (LocallyConstant.const S i) |
| 158 | change α.app (.op U) (LocallyConstant.const U.left i) = |
| 159 | b ≫ α.app (.op (baseTest S)) (LocallyConstant.const S i) at hbα |
| 160 | change β.app (.op U) (LocallyConstant.const U.left i) = |
| 161 | b ≫ β.app (.op (baseTest S)) (LocallyConstant.const S i) at hbβ |
| 162 | exact hjα.symm.trans (hbα.trans ((congrArg (fun f => b ≫ f) (h i)).trans |
| 163 | (hbβ.symm.trans hjβ))) |
| 164 | |
| 165 | theorem extendNatTrans_unique (h : G →* (baseTest S ⟶ H)) |
| 166 | (α : HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G ⟶ yonedaGrpObj H) |
| 167 | (hc : ∀ c : G, α.app (.op (baseTest S)) (LocallyConstant.const S c) = h c) : |
| 168 | α = extendNatTrans h := by |
| 169 | apply natTrans_ext_on_constants |
| 170 | intro c |
| 171 | change _ = extend h (baseTest S) (LocallyConstant.const S c) |
| 172 | have hb : toBase (baseTest S) = 𝟙 (baseTest S) := Over.OverMorphism.ext rfl |
| 173 | have he := extend_const (⇑h) (baseTest S) c |
| 174 | rw [hb, Category.id_comp] at he |
| 175 | exact (hc c).trans he.symm |
| 176 | |
| 177 | /-- Independence of constant sections on every nonempty test implies |
| 178 | injectivity on all locally constant sections. -/ |
| 179 | theorem extendHom_injective (h : G →* (baseTest S ⟶ H)) |
| 180 | (hind : ∀ (U : Over S), Nonempty U.left → ∀ c : G, |
| 181 | toBase U ≫ h c = 1 → c = 1) (T : Over S) : |
| 182 | Function.Injective (extendHom h T) := by |
| 183 | apply (MonoidHom.ker_eq_bot_iff _).mp |
| 184 | apply le_antisymm ?_ bot_le |
| 185 | intro c hc |
| 186 | change c = 1 |
| 187 | apply LocallyConstant.ext |
| 188 | intro t |
| 189 | let U := fiberTest T c (c t) |
| 190 | let j := fiberInclusion T c (c t) |
| 191 | have hu : Nonempty U.left := ⟨⟨t, rfl⟩⟩ |
| 192 | apply hind U hu (c t) |
| 193 | have hconst : c.comap ⟨j.left, j.left.continuous⟩ = LocallyConstant.const U.left (c t) := by |
| 194 | apply LocallyConstant.ext |
| 195 | intro x |
| 196 | exact x.property |
| 197 | have hn := extend_natural (⇑h) j c |
| 198 | rw [hconst, extend_const] at hn |
| 199 | have hzero : extend h T c = 1 := hc |
| 200 | exact hn.trans ((congrArg (fun f : T ⟶ H => j ≫ f) hzero).trans (MonObj.comp_one _)) |
| 201 | |
| 202 | end |
| 203 | |
| 204 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections |