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.DivisorClass.Chern.Line.Bundles |
| 2 | |
| 3 | /-! # Frames Frame -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace AlgebraicGeometry.DivisorClass.Chern.FramesFrame |
| 10 | |
| 11 | /-! |
| 12 | # ChernClass: frames on sections of actual open subschemes |
| 13 | |
| 14 | These linear equivalences come from the line bundle's actual local sheaf |
| 15 | isomorphisms. They will allow transition functions to be compared on different |
| 16 | ambient opens without introducing a cohomological compatibility hypothesis. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | set_option backward.defeqAttrib.useBackward true |
| 24 | |
| 25 | namespace Construction |
| 26 | |
| 27 | variable {X : Scheme} (M : X.Modules) (U : X.Opens) |
| 28 | |
| 29 | /-- Restriction along an actual open-subscheme inclusion preserves the section scalar action. -/ |
| 30 | theorem openRestriction_smul (W : U.toScheme.Opens) |
| 31 | (r : Γ(X, U.ι ''ᵁ W)) (m : Γ(M, U.ι ''ᵁ W)) : |
| 32 | (M.smul (U := U.ι ''ᵁ W) r).hom m = |
| 33 | ((M.restrict U.ι).smul (U := W) (r : Γ(U.toScheme, W))).hom m := by |
| 34 | have h := ConcreteCategory.congr_hom |
| 35 | (Scheme.Modules.smul_restrictAppIso_inv U.ι M W r) m |
| 36 | rw [Scheme.Opens.ι_appIso] at h |
| 37 | exact h |
| 38 | |
| 39 | /-- A genuine sheaf trivialization gives a linear frame on every subopen's sections. -/ |
| 40 | def frameOnImage (e : M.restrict U.ι ≅ Line.Bundles.Construction.structureModule U.toScheme) |
| 41 | (W : U.toScheme.Opens) : |
| 42 | Γ(M, U.ι ''ᵁ W) ≃ₗ[Γ(X, U.ι ''ᵁ W)] Γ(X, U.ι ''ᵁ W) where |
| 43 | toFun m := e.hom.app W m |
| 44 | invFun r := e.inv.app W r |
| 45 | left_inv m := by |
| 46 | have h := congrArg (fun f : M.restrict U.ι ⟶ M.restrict U.ι => f.app W) e.hom_inv_id |
| 47 | exact ConcreteCategory.congr_hom h m |
| 48 | right_inv r := by |
| 49 | have h := congrArg (fun f : Line.Bundles.Construction.structureModule U.toScheme ⟶ Line.Bundles.Construction.structureModule U.toScheme => |
| 50 | f.app W) e.inv_hom_id |
| 51 | exact ConcreteCategory.congr_hom h r |
| 52 | map_add' m n := (e.hom.app W).hom.map_add m n |
| 53 | map_smul' r m := by |
| 54 | convert e.hom.app_smul r m using 1 <;> try rfl |
| 55 | exact congrArg (e.hom.app W) (openRestriction_smul M U W r m) |
| 56 | |
| 57 | /-- The frame coordinates commute with the actual restrictions of module sections. -/ |
| 58 | theorem frameOnImage_naturality |
| 59 | (e : M.restrict U.ι ≅ Line.Bundles.Construction.structureModule U.toScheme) |
| 60 | {V W : U.toScheme.Opens} (h : V ≤ W) (m : Γ(M, U.ι ''ᵁ W)) : |
| 61 | frameOnImage M U e V |
| 62 | (M.presheaf.map (homOfLE (U.ι.image_mono h)).op m) = |
| 63 | X.presheaf.map (homOfLE (U.ι.image_mono h)).op (frameOnImage M U e W m) := by |
| 64 | have hn := ConcreteCategory.congr_hom |
| 65 | (e.hom.mapPresheaf.naturality (homOfLE h).op) m |
| 66 | exact hn |
| 67 | |
| 68 | /-- Transport frame coordinates along equality of open subsets. -/ |
| 69 | def transportFrame {V W : X.Opens} (h : V = W) |
| 70 | (e : Γ(M, V) ≃ₗ[Γ(X, V)] Γ(X, V)) : |
| 71 | Γ(M, W) ≃ₗ[Γ(X, W)] Γ(X, W) := |
| 72 | h ▸ e |
| 73 | |
| 74 | /-- Naturality survives the canonical transports along equal open sets. -/ |
| 75 | theorem transportFrame_naturality {A B A' B' : X.Opens} |
| 76 | (hA : A = A') (hB : B = B') (h : B ≤ A) (h' : B' ≤ A') |
| 77 | (eA : Γ(M, A) ≃ₗ[Γ(X, A)] Γ(X, A)) |
| 78 | (eB : Γ(M, B) ≃ₗ[Γ(X, B)] Γ(X, B)) |
| 79 | (hn : ∀ m, eB (M.presheaf.map (homOfLE h).op m) = |
| 80 | X.presheaf.map (homOfLE h).op (eA m)) (m : Γ(M, A')) : |
| 81 | transportFrame M hB eB (M.presheaf.map (homOfLE h').op m) = |
| 82 | X.presheaf.map (homOfLE h').op (transportFrame M hA eA m) := by |
| 83 | subst A' |
| 84 | subst B' |
| 85 | exact hn m |
| 86 | |
| 87 | theorem image_preimage_subopen {V : X.Opens} (h : V ≤ U) : |
| 88 | U.ι ''ᵁ (U.ι ⁻¹ᵁ V) = V := by |
| 89 | simpa only [Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι] |
| 90 | using inf_eq_right.mpr h |
| 91 | |
| 92 | /-- A local sheaf trivialization gives a frame on every smaller ambient open. -/ |
| 93 | def frameOnOpen (e : M.restrict U.ι ≅ Line.Bundles.Construction.structureModule U.toScheme) |
| 94 | (V : X.Opens) (h : V ≤ U) : Γ(M, V) ≃ₗ[Γ(X, V)] Γ(X, V) := |
| 95 | transportFrame M (image_preimage_subopen U h) (frameOnImage M U e (U.ι ⁻¹ᵁ V)) |
| 96 | |
| 97 | /-- Ambient-open frame coordinates commute with actual module restrictions. -/ |
| 98 | theorem frameOnOpen_naturality |
| 99 | (e : M.restrict U.ι ≅ Line.Bundles.Construction.structureModule U.toScheme) |
| 100 | {V W : X.Opens} (hVW : V ≤ W) (hWU : W ≤ U) |
| 101 | (m : Γ(M, W)) : |
| 102 | frameOnOpen M U e V (hVW.trans hWU) (M.presheaf.map (homOfLE hVW).op m) = |
| 103 | X.presheaf.map (homOfLE hVW).op (frameOnOpen M U e W hWU m) := by |
| 104 | exact transportFrame_naturality M |
| 105 | (image_preimage_subopen U hWU) (image_preimage_subopen U (hVW.trans hWU)) |
| 106 | (U.ι.image_mono (show U.ι ⁻¹ᵁ V ≤ U.ι ⁻¹ᵁ W from fun _ hx => hVW hx)) hVW |
| 107 | (frameOnImage M U e (U.ι ⁻¹ᵁ W)) (frameOnImage M U e (U.ι ⁻¹ᵁ V)) |
| 108 | (fun m => frameOnImage_naturality M U e |
| 109 | (show U.ι ⁻¹ᵁ V ≤ U.ι ⁻¹ᵁ W from fun _ hx => hVW hx) m) m |
| 110 | |
| 111 | end Construction |
| 112 | |
| 113 | end AlgebraicGeometry.DivisorClass.Chern.FramesFrame |
| 114 | |
| 115 | namespace AlgebraicGeometry.DivisorClass.Chern |
| 116 | section |
| 117 | |
| 118 | /-! |
| 119 | # ChernClass: transition units compatible with all ambient-open restrictions |
| 120 | |
| 121 | The units are computed from the genuine linear frames of module sections. |
| 122 | Their restriction law is proved using the naturality of those frames. |
| 123 | -/ |
| 124 | |
| 125 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 126 | |
| 127 | namespace FramesFrame.Construction |
| 128 | |
| 129 | variable {R S M N : Type*} [CommRing R] [CommRing S] |
| 130 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module S N] |
| 131 | |
| 132 | theorem rankOneLinearEquiv_apply (e : R ≃ₗ[R] R) (r : R) : e r = r * e 1 := by |
| 133 | simpa only [smul_eq_mul, mul_one] using e.map_smul r 1 |
| 134 | |
| 135 | /-- An automorphism of a free rank-one module is multiplication by this unit. -/ |
| 136 | def rankOneLinearEquivUnit (e : R ≃ₗ[R] R) : Rˣ where |
| 137 | val := e 1 |
| 138 | inv := e.symm 1 |
| 139 | val_inv := by rw [← rankOneLinearEquiv_apply, e.symm_apply_apply] |
| 140 | inv_val := by rw [← rankOneLinearEquiv_apply, e.apply_symm_apply] |
| 141 | |
| 142 | theorem rankOneLinearEquivUnit_trans (e f : R ≃ₗ[R] R) : |
| 143 | rankOneLinearEquivUnit (e.trans f) = rankOneLinearEquivUnit e * rankOneLinearEquivUnit f := by |
| 144 | apply Units.ext |
| 145 | exact rankOneLinearEquiv_apply f (e 1) |
| 146 | |
| 147 | /-- Transition coordinates with `e(m) = g(e,f) * f(m)`. |
| 148 | Thus the generator belonging to `f` is `g(e,f)` times the generator belonging to `e`. -/ |
| 149 | def frameTransitionUnit (e f : M ≃ₗ[R] R) : Rˣ := |
| 150 | rankOneLinearEquivUnit (f.symm.trans e) |
| 151 | |
| 152 | theorem frameTransitionUnit_coordinates (e f : M ≃ₗ[R] R) (m : M) : |
| 153 | e m = (frameTransitionUnit e f : R) * f m := by |
| 154 | have h := rankOneLinearEquiv_apply (f.symm.trans e) (f m) |
| 155 | change e m = e (f.symm 1) * f m |
| 156 | simpa only [LinearEquiv.trans_apply, f.symm_apply_apply, mul_comm] using h |
| 157 | |
| 158 | theorem frameTransitionUnit_cocycle (e f g : M ≃ₗ[R] R) : |
| 159 | frameTransitionUnit e f * frameTransitionUnit f g = frameTransitionUnit e g := by |
| 160 | unfold frameTransitionUnit |
| 161 | rw [mul_comm, ← rankOneLinearEquivUnit_trans] |
| 162 | congr 1 |
| 163 | ext r |
| 164 | simp |
| 165 | |
| 166 | /-- Compatibility of the frames with a restriction map forces compatibility of units. -/ |
| 167 | theorem frameTransitionUnit_map (τ : R →+* S) (φ : M → N) |
| 168 | (e f : M ≃ₗ[R] R) (e' f' : N ≃ₗ[S] S) |
| 169 | (he : ∀ m, e' (φ m) = τ (e m)) (hf : ∀ m, f' (φ m) = τ (f m)) : |
| 170 | Units.map τ.toMonoidHom (frameTransitionUnit e f) = frameTransitionUnit e' f' := by |
| 171 | apply Units.ext |
| 172 | change τ (e (f.symm 1)) = e' (f'.symm 1) |
| 173 | have hm : φ (f.symm 1) = f'.symm 1 := by |
| 174 | apply f'.injective |
| 175 | rw [hf, f.apply_symm_apply, map_one, f'.apply_symm_apply] |
| 176 | rw [← he, hm] |
| 177 | |
| 178 | end FramesFrame.Construction |
| 179 | |
| 180 | open OAI.AlgebraicGeometry.DivisorClass.Chern.FramesFrame.Construction |
| 181 | |
| 182 | variable {X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (L : Line.Bundles.AlgebraicLineBundle X) |
| 183 | |
| 184 | /-- The chosen actual sheaf frame, evaluated on any smaller ambient open. -/ |
| 185 | def Line.Bundles.AlgebraicLineBundle.sectionFrame (x : X.carrier) (W : X.carrier.Opens) (h : W ≤ L.trivializingOpen x) : |
| 186 | Γ(L.sheaf, W) ≃ₗ[Γ(X.carrier, W)] Γ(X.carrier, W) := |
| 187 | FramesFrame.Construction.frameOnOpen L.sheaf (L.trivializingOpen x) (L.trivialization x) W h |
| 188 | |
| 189 | theorem Line.Bundles.AlgebraicLineBundle.sectionFrame_naturality (x : X.carrier) {V W : X.carrier.Opens} |
| 190 | (hVW : V ≤ W) (hW : W ≤ L.trivializingOpen x) (m : Γ(L.sheaf, W)) : |
| 191 | L.sectionFrame x V (hVW.trans hW) (L.sheaf.presheaf.map (homOfLE hVW).op m) = |
| 192 | X.carrier.presheaf.map (homOfLE hVW).op (L.sectionFrame x W hW m) := |
| 193 | FramesFrame.Construction.frameOnOpen_naturality L.sheaf (L.trivializingOpen x) (L.trivialization x) hVW hW m |
| 194 | |
| 195 | /-- Actual transition functions as units of the original scheme's section rings. -/ |
| 196 | def Line.Bundles.AlgebraicLineBundle.ambientTransitionOn (x y : X.carrier) (W : X.carrier.Opens) |
| 197 | (hx : W ≤ L.trivializingOpen x) (hy : W ≤ L.trivializingOpen y) : |
| 198 | Γ(X.carrier, W)ˣ := |
| 199 | FramesFrame.Construction.frameTransitionUnit (L.sectionFrame x W hx) (L.sectionFrame y W hy) |
| 200 | |
| 201 | theorem Line.Bundles.AlgebraicLineBundle.ambientTransitionOn_cocycle (x y z : X.carrier) (W : X.carrier.Opens) |
| 202 | (hx : W ≤ L.trivializingOpen x) (hy : W ≤ L.trivializingOpen y) |
| 203 | (hz : W ≤ L.trivializingOpen z) : |
| 204 | L.ambientTransitionOn x y W hx hy * L.ambientTransitionOn y z W hy hz = |
| 205 | L.ambientTransitionOn x z W hx hz := |
| 206 | FramesFrame.Construction.frameTransitionUnit_cocycle _ _ _ |
| 207 | |
| 208 | theorem Line.Bundles.AlgebraicLineBundle.ambientTransitionOn_restrict (x y : X.carrier) {V W : X.carrier.Opens} |
| 209 | (hVW : V ≤ W) (hx : W ≤ L.trivializingOpen x) (hy : W ≤ L.trivializingOpen y) : |
| 210 | Units.map (X.carrier.presheaf.map (homOfLE hVW).op).hom.toMonoidHom |
| 211 | (L.ambientTransitionOn x y W hx hy) = |
| 212 | L.ambientTransitionOn x y V (hVW.trans hx) (hVW.trans hy) := |
| 213 | FramesFrame.Construction.frameTransitionUnit_map (X.carrier.presheaf.map (homOfLE hVW).op).hom |
| 214 | (L.sheaf.presheaf.map (homOfLE hVW).op) |
| 215 | (L.sectionFrame x W hx) (L.sectionFrame y W hy) |
| 216 | (L.sectionFrame x V (hVW.trans hx)) (L.sectionFrame y V (hVW.trans hy)) |
| 217 | (L.sectionFrame_naturality x hVW hx) (L.sectionFrame_naturality y hVW hy) |
| 218 | |
| 219 | end |
| 220 | |
| 221 | /-! |
| 222 | # ChernClass: comparison of frames through an actual module-sheaf isomorphism |
| 223 | |
| 224 | The isomorphism acts on genuine modules of sections. Mixed transition units |
| 225 | compare a frame of its source with a transported frame of its target. |
| 226 | -/ |
| 227 | |
| 228 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 229 | |
| 230 | set_option backward.isDefEq.respectTransparency false |
| 231 | set_option backward.isDefEq.respectTransparency.types false |
| 232 | set_option backward.defeqAttrib.useBackward true |
| 233 | |
| 234 | namespace FramesFrame.Construction |
| 235 | |
| 236 | variable {X : Scheme} {M N : X.Modules} |
| 237 | |
| 238 | /-- A genuine module-sheaf isomorphism induces a linear equivalence on each open. -/ |
| 239 | def moduleSheafSectionIso (e : M ≅ N) (U : X.Opens) : Γ(M, U) ≃ₗ[Γ(X, U)] Γ(N, U) where |
| 240 | toFun m := e.hom.app U m |
| 241 | invFun n := e.inv.app U n |
| 242 | left_inv m := ConcreteCategory.congr_hom |
| 243 | (congrArg (fun f : M ⟶ M => f.app U) e.hom_inv_id) m |
| 244 | right_inv n := ConcreteCategory.congr_hom |
| 245 | (congrArg (fun f : N ⟶ N => f.app U) e.inv_hom_id) n |
| 246 | map_add' m n := (e.hom.app U).hom.map_add m n |
| 247 | map_smul' r m := e.hom.app_smul r m |
| 248 | |
| 249 | theorem moduleSheafSectionIso_naturality (e : M ≅ N) {V U : X.Opens} |
| 250 | (h : V ≤ U) (m : Γ(M, U)) : |
| 251 | moduleSheafSectionIso e V (M.presheaf.map (homOfLE h).op m) = |
| 252 | N.presheaf.map (homOfLE h).op (moduleSheafSectionIso e U m) := |
| 253 | ConcreteCategory.congr_hom (e.hom.mapPresheaf.naturality (homOfLE h).op) m |
| 254 | |
| 255 | variable {R A B : Type*} [CommRing R] [AddCommGroup A] [Module R A] |
| 256 | [AddCommGroup B] [Module R B] |
| 257 | |
| 258 | /-- Transporting both frames through the same module equivalence preserves the transition. -/ |
| 259 | theorem frameTransitionUnit_precompose (q : A ≃ₗ[R] B) (e f : B ≃ₗ[R] R) : |
| 260 | frameTransitionUnit (q.trans e) (q.trans f) = frameTransitionUnit e f := by |
| 261 | apply Units.ext |
| 262 | change e (q (q.symm (f.symm 1))) = e (f.symm 1) |
| 263 | rw [q.apply_symm_apply] |
| 264 | |
| 265 | /-- The square of source, target, and mixed transitions commutes. -/ |
| 266 | theorem frameTransitionUnit_square (q : A ≃ₗ[R] B) |
| 267 | (e f : A ≃ₗ[R] R) (e' f' : B ≃ₗ[R] R) : |
| 268 | frameTransitionUnit e (q.trans e') * frameTransitionUnit e' f' = |
| 269 | frameTransitionUnit e f * frameTransitionUnit f (q.trans f') := by |
| 270 | rw [← frameTransitionUnit_precompose q e' f', frameTransitionUnit_cocycle, |
| 271 | frameTransitionUnit_cocycle] |
| 272 | |
| 273 | end FramesFrame.Construction |
| 274 | |
| 275 | open OAI.AlgebraicGeometry.DivisorClass.Chern.FramesFrame.Construction |
| 276 | |
| 277 | variable {X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (L M : Line.Bundles.AlgebraicLineBundle X) (e : L.sheaf ≅ M.sheaf) |
| 278 | |
| 279 | /-- A frame of the target sheaf transported to the source by the actual isomorphism. -/ |
| 280 | def Line.Bundles.AlgebraicLineBundle.transportedSectionFrame (x : X.carrier) (U : X.carrier.Opens) |
| 281 | (h : U ≤ M.trivializingOpen x) : Γ(L.sheaf, U) ≃ₗ[Γ(X.carrier, U)] Γ(X.carrier, U) := |
| 282 | (FramesFrame.Construction.moduleSheafSectionIso e U).trans (M.sectionFrame x U h) |
| 283 | |
| 284 | theorem Line.Bundles.AlgebraicLineBundle.transportedSectionFrame_naturality (x : X.carrier) {V U : X.carrier.Opens} |
| 285 | (hVU : V ≤ U) (hU : U ≤ M.trivializingOpen x) (m : Γ(L.sheaf, U)) : |
| 286 | L.transportedSectionFrame M e x V (hVU.trans hU) |
| 287 | (L.sheaf.presheaf.map (homOfLE hVU).op m) = |
| 288 | X.carrier.presheaf.map (homOfLE hVU).op (L.transportedSectionFrame M e x U hU m) := by |
| 289 | change M.sectionFrame x V _ (FramesFrame.Construction.moduleSheafSectionIso e V _) = _ |
| 290 | rw [FramesFrame.Construction.moduleSheafSectionIso_naturality, M.sectionFrame_naturality] |
| 291 | rfl |
| 292 | |
| 293 | /-- The actual regular unit comparing a source frame and a transported target frame. -/ |
| 294 | def Line.Bundles.AlgebraicLineBundle.mixedTransitionOn (x y : X.carrier) (U : X.carrier.Opens) |
| 295 | (hx : U ≤ L.trivializingOpen x) (hy : U ≤ M.trivializingOpen y) : Γ(X.carrier, U)ˣ := |
| 296 | FramesFrame.Construction.frameTransitionUnit (L.sectionFrame x U hx) (L.transportedSectionFrame M e y U hy) |
| 297 | |
| 298 | theorem Line.Bundles.AlgebraicLineBundle.mixedTransitionOn_restrict (x y : X.carrier) {V U : X.carrier.Opens} |
| 299 | (hVU : V ≤ U) (hx : U ≤ L.trivializingOpen x) (hy : U ≤ M.trivializingOpen y) : |
| 300 | Units.map (X.carrier.presheaf.map (homOfLE hVU).op).hom.toMonoidHom |
| 301 | (L.mixedTransitionOn M e x y U hx hy) = |
| 302 | L.mixedTransitionOn M e x y V (hVU.trans hx) (hVU.trans hy) := |
| 303 | FramesFrame.Construction.frameTransitionUnit_map (X.carrier.presheaf.map (homOfLE hVU).op).hom |
| 304 | (L.sheaf.presheaf.map (homOfLE hVU).op) |
| 305 | (L.sectionFrame x U hx) (L.transportedSectionFrame M e y U hy) |
| 306 | (L.sectionFrame x V (hVU.trans hx)) (L.transportedSectionFrame M e y V (hVU.trans hy)) |
| 307 | (L.sectionFrame_naturality x hVU hx) (L.transportedSectionFrame_naturality M e y hVU hy) |
| 308 | |
| 309 | /-- A genuine sheaf isomorphism intertwines the regular transition units. -/ |
| 310 | theorem Line.Bundles.AlgebraicLineBundle.mixedTransitionOn_square (x y x' y' : X.carrier) (U : X.carrier.Opens) |
| 311 | (hx : U ≤ L.trivializingOpen x) (hy : U ≤ L.trivializingOpen y) |
| 312 | (hx' : U ≤ M.trivializingOpen x') (hy' : U ≤ M.trivializingOpen y') : |
| 313 | L.mixedTransitionOn M e x x' U hx hx' * M.ambientTransitionOn x' y' U hx' hy' = |
| 314 | L.ambientTransitionOn x y U hx hy * L.mixedTransitionOn M e y y' U hy hy' := |
| 315 | FramesFrame.Construction.frameTransitionUnit_square (FramesFrame.Construction.moduleSheafSectionIso e U) |
| 316 | (L.sectionFrame x U hx) (L.sectionFrame y U hy) |
| 317 | (M.sectionFrame x' U hx') (M.sectionFrame y' U hy') |
| 318 | |
| 319 | end AlgebraicGeometry.DivisorClass.Chern |
| 320 | |
| 321 | end |
| 322 | |
| 323 | end OAI |