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.Foundations.Scheme.SmoothProjective |
| 2 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 3 | |
| 4 | /-! # Bundles -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Line.Bundles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # ChernClass: algebraic line bundles and their transition units |
| 12 | |
| 13 | An algebraic line bundle is a sheaf of modules locally isomorphic to the |
| 14 | structure sheaf. Transition units below are extracted from actual isomorphisms |
| 15 | of these sheaves; no cohomology class or compatibility assertion is a field. |
| 16 | This module does not yet construct a Chern class. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | /-- An algebraic line bundle is an O_X-module sheaf locally isomorphic to O_X. -/ |
| 22 | structure AlgebraicLineBundle (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) where |
| 23 | sheaf : X.carrier.Modules |
| 24 | locallyTrivial : |
| 25 | ∀ x : X.carrier, ∃ U : X.carrier.Opens, |
| 26 | x ∈ U ∧ |
| 27 | Nonempty |
| 28 | (Scheme.Modules.restrict sheaf U.ι ≅ |
| 29 | (SheafOfModules.unit U.toScheme.ringCatSheaf : U.toScheme.Modules)) |
| 30 | |
| 31 | namespace Construction |
| 32 | |
| 33 | variable {X : Scheme} |
| 34 | |
| 35 | /-- The structure sheaf, considered as a sheaf of modules over itself. -/ |
| 36 | abbrev structureModule (X : Scheme) : X.Modules := |
| 37 | SheafOfModules.unit X.ringCatSheaf |
| 38 | |
| 39 | /-- The section map of an endomorphism of O_X, with its ring-module types explicit. -/ |
| 40 | def structureModuleHom |
| 41 | (f : structureModule X ⟶ structureModule X) (U : X.Opens) : |
| 42 | Γ(X, U) →ₗ[Γ(X, U)] Γ(X, U) where |
| 43 | toFun r := f.app U r |
| 44 | map_add' r s := (f.app U).hom.map_add r s |
| 45 | map_smul' r s := f.app_smul r s |
| 46 | |
| 47 | /-- An O_X-linear endomorphism of O_X is multiplication by its value on 1. -/ |
| 48 | theorem structureModule_hom_apply |
| 49 | (f : structureModule X ⟶ structureModule X) (U : X.Opens) |
| 50 | (r : Γ(X, U)) : |
| 51 | structureModuleHom f U r = r * structureModuleHom f U 1 := by |
| 52 | simpa only [smul_eq_mul, mul_one] using (structureModuleHom f U).map_smul r 1 |
| 53 | |
| 54 | /-- An automorphism of O_X gives an invertible regular function on each open. -/ |
| 55 | def structureModuleIsoUnit |
| 56 | (e : structureModule X ≅ structureModule X) (U : X.Opens) : Γ(X, U)ˣ where |
| 57 | val := structureModuleHom e.hom U 1 |
| 58 | inv := structureModuleHom e.inv U 1 |
| 59 | val_inv := by |
| 60 | rw [← structureModule_hom_apply e.inv U] |
| 61 | have h := congrArg |
| 62 | (fun f : structureModule X ⟶ structureModule X => |
| 63 | structureModuleHom f U 1) e.hom_inv_id |
| 64 | exact h |
| 65 | inv_val := by |
| 66 | rw [← structureModule_hom_apply e.hom U] |
| 67 | have h := congrArg |
| 68 | (fun f : structureModule X ⟶ structureModule X => |
| 69 | structureModuleHom f U 1) e.inv_hom_id |
| 70 | exact h |
| 71 | |
| 72 | @[simp] |
| 73 | theorem structureModuleIsoUnit_val |
| 74 | (e : structureModule X ≅ structureModule X) (U : X.Opens) : |
| 75 | (structureModuleIsoUnit e U : Γ(X, U)) = structureModuleHom e.hom U 1 := rfl |
| 76 | |
| 77 | @[simp] |
| 78 | theorem structureModuleIsoUnit_refl (U : X.Opens) : |
| 79 | structureModuleIsoUnit (Iso.refl (structureModule X)) U = 1 := by |
| 80 | apply Units.ext |
| 81 | rfl |
| 82 | |
| 83 | /-- Composition of sheaf automorphisms gives multiplication of their units. -/ |
| 84 | theorem structureModuleIsoUnit_trans |
| 85 | (e f : structureModule X ≅ structureModule X) (U : X.Opens) : |
| 86 | structureModuleIsoUnit (e ≪≫ f) U = |
| 87 | structureModuleIsoUnit e U * structureModuleIsoUnit f U := by |
| 88 | apply Units.ext |
| 89 | change structureModuleHom f.hom U (structureModuleHom e.hom U 1) = |
| 90 | structureModuleHom e.hom U 1 * structureModuleHom f.hom U 1 |
| 91 | exact structureModule_hom_apply f.hom U _ |
| 92 | |
| 93 | /-- The extracted units commute with restriction of regular functions. -/ |
| 94 | theorem structureModuleIsoUnit_restrict |
| 95 | (e : structureModule X ≅ structureModule X) {U V : X.Opens} (h : U ≤ V) : |
| 96 | Units.map (X.presheaf.map (homOfLE h).op).hom.toMonoidHom |
| 97 | (structureModuleIsoUnit e V) = structureModuleIsoUnit e U := by |
| 98 | apply Units.ext |
| 99 | have hn := ConcreteCategory.congr_hom |
| 100 | (e.hom.mapPresheaf.naturality (homOfLE h).op) (1 : Γ(X, V)) |
| 101 | change structureModuleHom e.hom U (X.presheaf.map (homOfLE h).op 1) = |
| 102 | X.presheaf.map (homOfLE h).op (structureModuleHom e.hom V 1) at hn |
| 103 | rw [map_one] at hn |
| 104 | exact hn.symm |
| 105 | |
| 106 | /-- Restrict a local trivialization along an inclusion of open subschemes. -/ |
| 107 | def restrictTrivialization {M : X.Modules} {U W : X.Opens} |
| 108 | (e : M.restrict U.ι ≅ structureModule U.toScheme) (h : W ≤ U) : |
| 109 | M.restrict W.ι ≅ structureModule W.toScheme := |
| 110 | (show M.restrict W.ι ≅ (M.restrict U.ι).restrict (X.homOfLE h) from |
| 111 | by simpa only [Scheme.homOfLE_ι, Scheme.Modules.restrict, Functor.comp_obj] using |
| 112 | (Scheme.Modules.restrictFunctorComp (X.homOfLE h) U.ι).app M) ≪≫ |
| 113 | (Scheme.Modules.restrictFunctor (X.homOfLE h)).mapIso e ≪≫ |
| 114 | Scheme.Modules.restrictUnitIso (X.homOfLE h) |
| 115 | |
| 116 | /-- Change from one actual sheaf trivialization to another on a common open. -/ |
| 117 | def transitionUnit {M : X.Modules} {W : X.Opens} |
| 118 | (e f : M.restrict W.ι ≅ structureModule W.toScheme) : |
| 119 | Γ(W.toScheme, ⊤)ˣ := |
| 120 | structureModuleIsoUnit (e.symm ≪≫ f) ⊤ |
| 121 | |
| 122 | @[simp] |
| 123 | theorem transitionUnit_self {M : X.Modules} {W : X.Opens} |
| 124 | (e : M.restrict W.ι ≅ structureModule W.toScheme) : |
| 125 | transitionUnit e e = 1 := by |
| 126 | simp [transitionUnit] |
| 127 | |
| 128 | /-- The transition cocycle identity follows from cancellation of actual frames. -/ |
| 129 | theorem transitionUnit_cocycle {M : X.Modules} {W : X.Opens} |
| 130 | (e f g : M.restrict W.ι ≅ structureModule W.toScheme) : |
| 131 | transitionUnit e f * transitionUnit f g = transitionUnit e g := by |
| 132 | unfold transitionUnit |
| 133 | rw [← structureModuleIsoUnit_trans] |
| 134 | congr 1 |
| 135 | simp |
| 136 | |
| 137 | end Construction |
| 138 | |
| 139 | namespace AlgebraicLineBundle |
| 140 | |
| 141 | variable {X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (L : AlgebraicLineBundle X) |
| 142 | |
| 143 | /-- Choose a genuine trivializing neighborhood at each algebraic point. -/ |
| 144 | def trivializingOpen (x : X.carrier) : X.carrier.Opens := |
| 145 | (L.locallyTrivial x).choose |
| 146 | |
| 147 | theorem mem_trivializingOpen (x : X.carrier) : x ∈ L.trivializingOpen x := |
| 148 | (L.locallyTrivial x).choose_spec.1 |
| 149 | |
| 150 | /-- The corresponding actual isomorphism of O_X-module sheaves. -/ |
| 151 | def trivialization (x : X.carrier) : |
| 152 | L.sheaf.restrict (L.trivializingOpen x).ι ≅ |
| 153 | Construction.structureModule (L.trivializingOpen x).toScheme := |
| 154 | (L.locallyTrivial x).choose_spec.2.some |
| 155 | |
| 156 | /-- Restrict the chosen trivialization to any smaller open subscheme. -/ |
| 157 | def trivializationOn (x : X.carrier) (W : X.carrier.Opens) |
| 158 | (h : W ≤ L.trivializingOpen x) : |
| 159 | L.sheaf.restrict W.ι ≅ Construction.structureModule W.toScheme := |
| 160 | Construction.restrictTrivialization (L.trivialization x) h |
| 161 | |
| 162 | /-- The actual transition unit on a common subopen of two chart domains. -/ |
| 163 | def transitionOn (x y : X.carrier) (W : X.carrier.Opens) |
| 164 | (hx : W ≤ L.trivializingOpen x) (hy : W ≤ L.trivializingOpen y) : |
| 165 | Γ(W.toScheme, ⊤)ˣ := |
| 166 | Construction.transitionUnit (L.trivializationOn x W hx) (L.trivializationOn y W hy) |
| 167 | |
| 168 | theorem transitionOn_cocycle (x y z : X.carrier) (W : X.carrier.Opens) |
| 169 | (hx : W ≤ L.trivializingOpen x) (hy : W ≤ L.trivializingOpen y) |
| 170 | (hz : W ≤ L.trivializingOpen z) : |
| 171 | L.transitionOn x y W hx hy * L.transitionOn y z W hy hz = |
| 172 | L.transitionOn x z W hx hz := |
| 173 | Construction.transitionUnit_cocycle _ _ _ |
| 174 | |
| 175 | end AlgebraicLineBundle |
| 176 | |
| 177 | end |
| 178 | |
| 179 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Line.Bundles |