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.ReferenceFamily.Finite.Frames |
| 2 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 3 | |
| 4 | /-! # Map -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Frame.Map.LevelCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A full level structure gives an actual morphism into the torsion-frame |
| 11 | locus. The construction uses naturality on all test schemes, so it also |
| 12 | excludes relations appearing only after a change of base. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | open scoped _root_.CategoryTheory.MonObj BigOperators |
| 16 | |
| 17 | universe u |
| 18 | variable {S : Scheme.{u}} {g N : ℕ} (A : HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 19 | |
| 20 | /-- A constant level vector determines a torsion section on every test. -/ |
| 21 | def levelSection (α : A.FullLevel N) (T : Over S) : |
| 22 | Multiplicative (Fin (2 * g) → ZMod N) →* (T ⟶ A.scheme) := |
| 23 | (A.torsionPoints N T).subtype.comp |
| 24 | (((α.hom.app (op T)).hom).comp LocallyConstant.constMonoidHom) |
| 25 | |
| 26 | theorem levelSection_pow (α : A.FullLevel N) (T : Over S) |
| 27 | (c : Multiplicative (Fin (2 * g) → ZMod N)) : |
| 28 | levelSection A α T c ^ N = 1 := |
| 29 | (α.hom.app (op T) (LocallyConstant.const T.left c)).property |
| 30 | |
| 31 | theorem levelSection_injective (α : A.FullLevel N) (T : Over S) [Nonempty T.left] : |
| 32 | Function.Injective (levelSection A α T) := by |
| 33 | intro c d h |
| 34 | have h' : α.hom.app (op T) (LocallyConstant.const T.left c) = |
| 35 | α.hom.app (op T) (LocallyConstant.const T.left d) := Subtype.ext h |
| 36 | have hi : IsIso (α.hom.app (op T)) := by |
| 37 | change IsIso ((α.app (op T)).hom) |
| 38 | infer_instance |
| 39 | have h'' := (ConcreteCategory.bijective_of_isIso (α.hom.app (op T))).injective h' |
| 40 | exact congrArg (fun f : LocallyConstant T.left _ => f (Classical.choice inferInstance)) h'' |
| 41 | |
| 42 | theorem levelSection_natural (α : A.FullLevel N) {T U : Over S} (f : T ⟶ U) |
| 43 | (c : Multiplicative (Fin (2 * g) → ZMod N)) : |
| 44 | f ≫ levelSection A α U c = levelSection A α T c := by |
| 45 | have h := ConcreteCategory.congr_hom (α.hom.naturality f.op) |
| 46 | (LocallyConstant.const U.left c) |
| 47 | exact (congrArg Subtype.val h).symm |
| 48 | |
| 49 | def standardLevelVector (i : Fin (2 * g)) : |
| 50 | Multiplicative (Fin (2 * g) → ZMod N) := |
| 51 | Multiplicative.ofAdd (Pi.single i 1) |
| 52 | |
| 53 | theorem level_vector_decomposition [NeZero N] (c : Fin (2 * g) → ZMod N) : |
| 54 | Multiplicative.ofAdd c = ∏ i, standardLevelVector (N := N) i ^ (c i).val := by |
| 55 | apply Multiplicative.toAdd.injective |
| 56 | change c = ∑ i, (c i).val • Pi.single i (1 : ZMod N) |
| 57 | ext j |
| 58 | simp only [Finset.sum_apply, Pi.smul_apply, Pi.single_apply] |
| 59 | simp |
| 60 | |
| 61 | /-- The tuple of images of the standard basis under the full level. -/ |
| 62 | def levelTuple (α : A.FullLevel N) (T : Over S) : T ⟶ Level.Cover.LevelCover.torsionTuples A N := |
| 63 | Pi.lift (fun i => (Level.Cover.LevelCover.torsionPointsEquiv A N T).symm |
| 64 | ⟨levelSection A α T (standardLevelVector i), levelSection_pow A α T _⟩) |
| 65 | |
| 66 | theorem levelTuple_coordinate (α : A.FullLevel N) (T : Over S) (i : Fin (2 * g)) : |
| 67 | levelTuple A α T ≫ Level.Cover.LevelCover.coordinate A N i = levelSection A α T (standardLevelVector i) := by |
| 68 | change Pi.lift _ ≫ (Pi.π (fun _ : Fin (2 * g) => Level.Cover.LevelCover.torsion A N) i ≫ |
| 69 | Level.Cover.LevelCover.torsionInclusion A N) = _ |
| 70 | rw [← Category.assoc, Pi.lift_comp_π] |
| 71 | exact congrArg Subtype.val ((Level.Cover.LevelCover.torsionPointsEquiv A N T).apply_symm_apply _) |
| 72 | |
| 73 | theorem levelTuple_relation [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 74 | (c : Fin (2 * g) → ZMod N) : |
| 75 | levelTuple A α T ≫ Level.Cover.LevelCover.relation A N c = levelSection A α T (Multiplicative.ofAdd c) := by |
| 76 | calc |
| 77 | _ = ∏ i, (levelTuple A α T ≫ Level.Cover.LevelCover.coordinate A N i) ^ (c i).val := by |
| 78 | change A.pointsPullback (levelTuple A α T) (∏ i, _) = _ |
| 79 | rw [map_prod] |
| 80 | simp only [map_pow, HilbertConstruction.Abelian.Schemes.AbelianScheme.pointsPullback_apply] |
| 81 | _ = ∏ i, levelSection A α T (standardLevelVector i) ^ (c i).val := by |
| 82 | simp only [levelTuple_coordinate] |
| 83 | _ = levelSection A α T (Multiplicative.ofAdd c) := by |
| 84 | conv_rhs => rw [level_vector_decomposition c] |
| 85 | simp only [map_prod, map_pow] |
| 86 | |
| 87 | /-- A relation that remains nonzero on every nonempty test cannot meet |
| 88 | the closed subscheme where that relation vanishes. -/ |
| 89 | theorem tuple_avoids_relation {T : Over S} (q : T ⟶ Level.Cover.LevelCover.torsionTuples A N) |
| 90 | (c : Fin (2 * g) → ZMod N) |
| 91 | (h : ∀ (W : Over S) [Nonempty W.left] (f : W ⟶ T), |
| 92 | (f ≫ q) ≫ Level.Cover.LevelCover.relation A N c ≠ 1) (t : T.left) : |
| 93 | q.left t ∉ Set.range (Level.Cover.LevelCover.relationZeroInclusion A N c).left := by |
| 94 | rintro ⟨z, hz⟩ |
| 95 | let j := Level.Cover.LevelCover.relationZeroInclusion A N c |
| 96 | let W : Over S := Over.mk (pullback.fst q.left j.left ≫ T.hom) |
| 97 | let p : W ⟶ T := Over.homMk (pullback.fst q.left j.left) rfl |
| 98 | let k : W ⟶ Level.Cover.LevelCover.relationZero A N c := Over.homMk (pullback.snd q.left j.left) (by |
| 99 | change pullback.snd q.left j.left ≫ (Level.Cover.LevelCover.relationZero A N c).hom = |
| 100 | pullback.fst q.left j.left ≫ T.hom |
| 101 | rw [← j.w, ← q.w, ← Category.assoc, ← Category.assoc, pullback.condition]) |
| 102 | obtain ⟨w, _, _⟩ := Scheme.Pullback.exists_preimage_pullback t z hz.symm |
| 103 | have : Nonempty W.left := ⟨w⟩ |
| 104 | apply h W p |
| 105 | have hp : p ≫ q = k ≫ j := by |
| 106 | apply Over.OverMorphism.ext |
| 107 | exact pullback.condition |
| 108 | rw [hp, Category.assoc] |
| 109 | have hj : j ≫ Level.Cover.LevelCover.relation A N c = 1 := by |
| 110 | convert! (show (equalizer.ι (Level.Cover.LevelCover.relation A N c) (1 : Level.Cover.LevelCover.torsionTuples A N ⟶ A.scheme)) ≫ |
| 111 | Level.Cover.LevelCover.relation A N c = 1 from (by |
| 112 | simpa only [MonObj.comp_one] using |
| 113 | equalizer.condition (Level.Cover.LevelCover.relation A N c) (1 : Level.Cover.LevelCover.torsionTuples A N ⟶ A.scheme))) |
| 114 | rw [hj, MonObj.comp_one] |
| 115 | |
| 116 | theorem levelTuple_avoids_relation [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 117 | (t : T.left) (c : Fin (2 * g) → ZMod N) (hc : c ≠ 0) : |
| 118 | (levelTuple A α T).left t ∉ Set.range (Level.Cover.LevelCover.relationZeroInclusion A N c).left := by |
| 119 | apply tuple_avoids_relation A (levelTuple A α T) c ?_ t |
| 120 | intro W _ f heq |
| 121 | rw [Category.assoc, levelTuple_relation, levelSection_natural] at heq |
| 122 | have heq' : levelSection A α W (Multiplicative.ofAdd c) = |
| 123 | levelSection A α W 1 := heq.trans (map_one _).symm |
| 124 | exact hc (congrArg Multiplicative.toAdd (levelSection_injective A α W heq')) |
| 125 | |
| 126 | theorem levelTuple_mem_frameOpen [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 127 | (t : T.left) : (levelTuple A α T).left t ∈ Level.Cover.LevelCover.frameOpen A N := by |
| 128 | change (levelTuple A α T).left t ∈ |
| 129 | ((⨅ c, ⨅ (_ : c ≠ 0), Level.Cover.LevelCover.relationNonzero A N c : (Level.Cover.LevelCover.torsionTuples A N).left.Opens) : |
| 130 | Set (Level.Cover.LevelCover.torsionTuples A N).left) |
| 131 | simp only [TopologicalSpace.Opens.coe_iInf, Set.mem_iInter] |
| 132 | intro c |
| 133 | by_cases hc : c = 0 |
| 134 | · simp [hc] |
| 135 | · rw [iInf_pos hc] |
| 136 | change (levelTuple A α T).left t ∉ Set.range (Level.Cover.LevelCover.relationZeroInclusion A N c).left |
| 137 | exact levelTuple_avoids_relation A α T t c hc |
| 138 | |
| 139 | /-- The full level gives an actual scheme morphism into the added-level |
| 140 | frame locus, constructed by the open-immersion universal property. -/ |
| 141 | def fullLevelFrameMap [NeZero N] (α : A.FullLevel N) (T : Over S) : |
| 142 | T ⟶ Level.Cover.LevelCover.frameScheme A N := by |
| 143 | have h : Set.range (levelTuple A α T).left ⊆ Set.range (Level.Cover.LevelCover.frameInclusion A N).left := by |
| 144 | rintro _ ⟨t, rfl⟩ |
| 145 | change (levelTuple A α T).left t ∈ Set.range (Level.Cover.LevelCover.frameOpen A N).ι |
| 146 | rw [Scheme.Opens.range_ι] |
| 147 | exact levelTuple_mem_frameOpen A α T t |
| 148 | let f := IsOpenImmersion.lift (Level.Cover.LevelCover.frameInclusion A N).left (levelTuple A α T).left h |
| 149 | have hf : f ≫ (Level.Cover.LevelCover.frameInclusion A N).left = (levelTuple A α T).left := |
| 150 | IsOpenImmersion.lift_fac _ _ h |
| 151 | refine Over.homMk f ?_ |
| 152 | change f ≫ (Level.Cover.LevelCover.frameInclusion A N).left ≫ |
| 153 | (Level.Cover.LevelCover.torsionTuples A N).hom = T.hom |
| 154 | rw [← Category.assoc, hf] |
| 155 | exact (levelTuple A α T).w |
| 156 | |
| 157 | @[simp] theorem fullLevelFrameMap_forget [NeZero N] (α : A.FullLevel N) (T : Over S) : |
| 158 | fullLevelFrameMap A α T ≫ Level.Cover.LevelCover.frameInclusion A N = levelTuple A α T := by |
| 159 | apply Over.OverMorphism.ext |
| 160 | exact IsOpenImmersion.lift_fac _ _ _ |
| 161 | |
| 162 | theorem levelTuple_natural (α : A.FullLevel N) {T U : Over S} (f : T ⟶ U) : |
| 163 | f ≫ levelTuple A α U = levelTuple A α T := by |
| 164 | apply Pi.hom_ext |
| 165 | intro i |
| 166 | apply (Level.Cover.LevelCover.torsionPointsEquiv A N T).injective |
| 167 | apply Subtype.ext |
| 168 | change (f ≫ levelTuple A α U) ≫ Level.Cover.LevelCover.coordinate A N i = |
| 169 | levelTuple A α T ≫ Level.Cover.LevelCover.coordinate A N i |
| 170 | rw [Category.assoc, levelTuple_coordinate, levelTuple_coordinate, levelSection_natural] |
| 171 | |
| 172 | /-- The constructed frame map commutes with every morphism of tests. -/ |
| 173 | theorem fullLevelFrameMap_natural [NeZero N] (α : A.FullLevel N) |
| 174 | {T U : Over S} (f : T ⟶ U) : |
| 175 | f ≫ fullLevelFrameMap A α U = fullLevelFrameMap A α T := by |
| 176 | apply Over.OverMorphism.ext |
| 177 | apply (cancel_mono (Level.Cover.LevelCover.frameInclusion A N).left).mp |
| 178 | change (f ≫ fullLevelFrameMap A α U ≫ Level.Cover.LevelCover.frameInclusion A N).left = |
| 179 | (fullLevelFrameMap A α T ≫ Level.Cover.LevelCover.frameInclusion A N).left |
| 180 | rw [fullLevelFrameMap_forget, fullLevelFrameMap_forget, levelTuple_natural] |
| 181 | |
| 182 | /-- Specifying the torsion generators determines the map to the frame |
| 183 | scheme uniquely. -/ |
| 184 | theorem fullLevelFrameMap_unique [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 185 | (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) |
| 186 | (hf : f ≫ Level.Cover.LevelCover.frameInclusion A N = levelTuple A α T) : |
| 187 | f = fullLevelFrameMap A α T := by |
| 188 | apply Over.OverMorphism.ext |
| 189 | apply (cancel_mono (Level.Cover.LevelCover.frameInclusion A N).left).mp |
| 190 | exact congrArg (fun q => q.left) (hf.trans (fullLevelFrameMap_forget A α T).symm) |
| 191 | |
| 192 | /-- A chosen full level supplies a section of the actual frame scheme |
| 193 | over its base. -/ |
| 194 | theorem frame_projection_has_section [NeZero N] (α : A.FullLevel N) : |
| 195 | ∃ f : S ⟶ (Level.Cover.LevelCover.frameScheme A N).left, f ≫ (Level.Cover.LevelCover.frameScheme A N).hom = 𝟙 S := |
| 196 | ⟨(fullLevelFrameMap A α (Over.mk (𝟙 S))).left, |
| 197 | (fullLevelFrameMap A α (Over.mk (𝟙 S))).w⟩ |
| 198 | |
| 199 | theorem frame_projection_surjective_of_fullLevel [NeZero N] (α : A.FullLevel N) : |
| 200 | Surjective (Level.Cover.LevelCover.frameScheme A N).hom := by |
| 201 | obtain ⟨f, hf⟩ := frame_projection_has_section A α |
| 202 | constructor |
| 203 | intro s |
| 204 | exact ⟨f s, congrArg (fun q : S ⟶ S => q s) hf⟩ |
| 205 | |
| 206 | end |
| 207 | |
| 208 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Frame.Map.LevelCover |