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.CycleClass.Geometric.IrreducibleSupportIsomorphism |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Geometric.StratumClosure |
| 4 | |
| 5 | /-! # Dimension Isomorphism -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Dimension-graded cycles under actual isomorphisms |
| 13 | |
| 14 | An isomorphism over the complex base carries every irreducible closed support |
| 15 | to its ordinary image. The actual reduced support and its closed image have |
| 16 | the same function-field dimension. Together with invariance of the ambient |
| 17 | function field, this proves preservation of the dimension-based codimension. |
| 18 | |
| 19 | The resulting equivalence of support labels induces the coefficient-preserving |
| 20 | linear equivalence of finitely supported algebraic cycles. All maps here are |
| 21 | induced by isomorphisms; no pullback for an arbitrary morphism is asserted. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 25 | |
| 26 | universe u v |
| 27 | |
| 28 | section SupportDimension |
| 29 | |
| 30 | variable {X Y : Scheme.{u}} {K : Type u} [Field K] |
| 31 | |
| 32 | /-- The actual closed image of a reduced support is the transported support. -/ |
| 33 | theorem DimensionIsomorphism.irreducibleSupportIsoEquiv_eq_imageClosure (e : X ≅ Y) |
| 34 | (S : IrreducibleCloseds X) : |
| 35 | StratumClosure.integralImageClosure (GenericPoint.reducedSupportι S ≫ e.hom) = |
| 36 | IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv e S := by |
| 37 | apply IrreducibleCloseds.ext |
| 38 | change closure (Set.range (e.hom ∘ GenericPoint.reducedSupportι S)) = _ |
| 39 | rw [Set.range_comp, GenericPoint.range_reducedSupportι] |
| 40 | exact (IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv e S).isClosed.closure_eq |
| 41 | |
| 42 | /-- Isomorphism transport preserves the dimension of the actual reduced |
| 43 | support over the specified scalar field. -/ |
| 44 | theorem DimensionIsomorphism.irreducibleSupportIsoEquiv_transcendenceDimension (e : X ≅ Y) |
| 45 | (S : IrreducibleCloseds X) (f : Y ⟶ Spec (.of K)) : |
| 46 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv e S) f = |
| 47 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension S (e.hom ≫ f) := by |
| 48 | have h := StratumClosure.schemeTranscendenceDimension_eq_imageClosure |
| 49 | (GenericPoint.reducedSupportι S ≫ e.hom) f |
| 50 | rw [DimensionIsomorphism.irreducibleSupportIsoEquiv_eq_imageClosure] at h |
| 51 | simpa only [Foundations.Scheme.SupportDimension.supportTranscendenceDimension, SupportFiniteType.supportStructureMap, Category.assoc] using h.symm |
| 52 | |
| 53 | end SupportDimension |
| 54 | |
| 55 | variable {V W U : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} |
| 56 | |
| 57 | /-- An actual isomorphism over the complex base preserves ambient |
| 58 | function-field transcendence dimension. -/ |
| 59 | theorem DimensionIsomorphism.varietyIso_transcendenceDimension (e : V.toOver ≅ W.toOver) : |
| 60 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap = |
| 61 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension W.structureMap := by |
| 62 | let i : V.carrier ≅ W.carrier := (Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e |
| 63 | have h := Foundations.Scheme.OpenFunctionField.schemeTranscendenceDimension_openImmersion i.hom W.structureMap |
| 64 | have he : i.hom ≫ W.structureMap = V.structureMap := Over.w e.hom |
| 65 | rwa [he] at h |
| 66 | |
| 67 | /-- The actual reduced support's complex function-field dimension is unchanged. -/ |
| 68 | theorem DimensionIsomorphism.varietyIso_supportTranscendenceDimension (e : V.toOver ≅ W.toOver) |
| 69 | (S : IrreducibleCloseds V.carrier) : |
| 70 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension |
| 71 | (IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e) S) W.structureMap = |
| 72 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension S V.structureMap := by |
| 73 | have he : ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e).hom ≫ W.structureMap = |
| 74 | V.structureMap := Over.w e.hom |
| 75 | have h := DimensionIsomorphism.irreducibleSupportIsoEquiv_transcendenceDimension |
| 76 | ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e) S W.structureMap |
| 77 | rwa [he] at h |
| 78 | |
| 79 | /-- Codimension as the difference of genuine function-field dimensions is |
| 80 | preserved under an isomorphism over the complex base. -/ |
| 81 | theorem DimensionIsomorphism.dimensionCodimension_iso (e : V.toOver ≅ W.toOver) |
| 82 | (S : IrreducibleCloseds V.carrier) : |
| 83 | DimensionCycles.dimensionCodimension W |
| 84 | (IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e) S) = |
| 85 | DimensionCycles.dimensionCodimension V S := by |
| 86 | exact congrArg₂ Nat.sub (DimensionIsomorphism.varietyIso_transcendenceDimension e).symm |
| 87 | (DimensionIsomorphism.varietyIso_supportTranscendenceDimension e S) |
| 88 | |
| 89 | /-- Actual irreducible supports of any fixed dimension-based codimension |
| 90 | are equivalent under an isomorphism over the complex base. -/ |
| 91 | def DimensionIsomorphism.dimensionCycleSupportIsoEquiv (e : V.toOver ≅ W.toOver) (p : ℕ) : |
| 92 | DimensionCycles.DimensionCycleSupport V p ≃ DimensionCycles.DimensionCycleSupport W p := |
| 93 | (IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e)).subtypeEquiv |
| 94 | (fun S => Iff.of_eq (congrArg (fun n : ℕ => n = p) (DimensionIsomorphism.dimensionCodimension_iso e S).symm)) |
| 95 | |
| 96 | @[simp] |
| 97 | theorem DimensionIsomorphism.dimensionCycleSupportIsoEquiv_val (e : V.toOver ≅ W.toOver) (p : ℕ) |
| 98 | (S : DimensionCycles.DimensionCycleSupport V p) : |
| 99 | (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p S).val = |
| 100 | IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e) S.val := |
| 101 | rfl |
| 102 | |
| 103 | /-- The transported support is literally the image under the underlying |
| 104 | scheme isomorphism. -/ |
| 105 | @[simp] |
| 106 | theorem DimensionIsomorphism.dimensionCycleSupportIsoEquiv_coe (e : V.toOver ≅ W.toOver) (p : ℕ) |
| 107 | (S : DimensionCycles.DimensionCycleSupport V p) : |
| 108 | ((DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p S).val : Set W.carrier) = |
| 109 | e.hom.left '' (S.val : Set V.carrier) := |
| 110 | rfl |
| 111 | |
| 112 | @[simp] |
| 113 | theorem DimensionIsomorphism.dimensionCycleSupportIsoEquiv_genericPoint (e : V.toOver ≅ W.toOver) (p : ℕ) |
| 114 | (S : DimensionCycles.DimensionCycleSupport V p) : |
| 115 | (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p S).genericPoint = e.hom.left S.genericPoint := |
| 116 | IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv_genericPoint ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e) S.val |
| 117 | |
| 118 | @[simp] |
| 119 | theorem DimensionIsomorphism.dimensionCycleSupportIsoEquiv_symm (e : V.toOver ≅ W.toOver) (p : ℕ) : |
| 120 | (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p).symm = DimensionIsomorphism.dimensionCycleSupportIsoEquiv e.symm p := by |
| 121 | apply Equiv.ext |
| 122 | intro S |
| 123 | apply Subtype.ext |
| 124 | rfl |
| 125 | |
| 126 | @[simp] |
| 127 | theorem DimensionIsomorphism.dimensionCycleSupportIsoEquiv_refl (p : ℕ) : |
| 128 | DimensionIsomorphism.dimensionCycleSupportIsoEquiv (Iso.refl V.toOver) p = |
| 129 | Equiv.refl (DimensionCycles.DimensionCycleSupport V p) := by |
| 130 | apply Equiv.ext |
| 131 | intro S |
| 132 | apply Subtype.ext |
| 133 | exact congrArg (fun f => f S.val) (IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv_refl (X := V.carrier)) |
| 134 | |
| 135 | @[simp] |
| 136 | theorem DimensionIsomorphism.dimensionCycleSupportIsoEquiv_trans |
| 137 | (e : V.toOver ≅ W.toOver) (f : W.toOver ≅ U.toOver) (p : ℕ) : |
| 138 | DimensionIsomorphism.dimensionCycleSupportIsoEquiv (e.trans f) p = |
| 139 | (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p).trans (DimensionIsomorphism.dimensionCycleSupportIsoEquiv f p) := by |
| 140 | apply Equiv.ext |
| 141 | intro S |
| 142 | apply Subtype.ext |
| 143 | exact congrArg (fun g => g S.val) |
| 144 | (IrreducibleSupportIsomorphism.irreducibleSupportIsoEquiv_trans |
| 145 | ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso e) ((Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).mapIso f)) |
| 146 | |
| 147 | variable {R : Type v} [Semiring R] {p : ℕ} |
| 148 | |
| 149 | /-- Relabel dimension-graded cycles by an actual isomorphism over the base. -/ |
| 150 | def DimensionCycles.DimensionCycle.isoLinearEquiv (R : Type v) [Semiring R] (e : V.toOver ≅ W.toOver) (p : ℕ) : |
| 151 | DimensionCycles.DimensionCycle R V p ≃ₗ[R] DimensionCycles.DimensionCycle R W p := |
| 152 | Finsupp.domLCongr (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p) |
| 153 | |
| 154 | /-- The coefficient at a target support is the coefficient at its inverse image. -/ |
| 155 | @[simp] |
| 156 | theorem DimensionCycles.DimensionCycle.isoLinearEquiv_apply (e : V.toOver ≅ W.toOver) (z : DimensionCycles.DimensionCycle R V p) |
| 157 | (S : DimensionCycles.DimensionCycleSupport W p) : |
| 158 | DimensionCycles.DimensionCycle.isoLinearEquiv R e p z S = z ((DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p).symm S) := |
| 159 | rfl |
| 160 | |
| 161 | /-- Transport leaves the coefficient of every transported support unchanged. -/ |
| 162 | @[simp] |
| 163 | theorem DimensionCycles.DimensionCycle.isoLinearEquiv_apply_image (e : V.toOver ≅ W.toOver) (z : DimensionCycles.DimensionCycle R V p) |
| 164 | (S : DimensionCycles.DimensionCycleSupport V p) : |
| 165 | DimensionCycles.DimensionCycle.isoLinearEquiv R e p z (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p S) = z S := by |
| 166 | rw [DimensionCycles.DimensionCycle.isoLinearEquiv_apply, Equiv.symm_apply_apply] |
| 167 | |
| 168 | /-- In particular, an irreducible cycle generator maps to its actual image |
| 169 | with exactly the original coefficient. -/ |
| 170 | @[simp] |
| 171 | theorem DimensionCycles.DimensionCycle.isoLinearEquiv_single (e : V.toOver ≅ W.toOver) |
| 172 | (S : DimensionCycles.DimensionCycleSupport V p) (r : R) : |
| 173 | DimensionCycles.DimensionCycle.isoLinearEquiv R e p (Finsupp.single S r) = |
| 174 | Finsupp.single (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p S) r := |
| 175 | Finsupp.domLCongr_single _ _ _ |
| 176 | |
| 177 | /-- Finite cycle support is carried to the image of the original finite set. -/ |
| 178 | theorem DimensionCycles.DimensionCycle.isoLinearEquiv_support (e : V.toOver ≅ W.toOver) (z : DimensionCycles.DimensionCycle R V p) : |
| 179 | (DimensionCycles.DimensionCycle.isoLinearEquiv R e p z).support = |
| 180 | z.support.map (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p).toEmbedding := |
| 181 | rfl |
| 182 | |
| 183 | @[simp] |
| 184 | theorem DimensionCycles.DimensionCycle.isoLinearEquiv_symm (e : V.toOver ≅ W.toOver) (p : ℕ) : |
| 185 | (DimensionCycles.DimensionCycle.isoLinearEquiv R e p).symm = DimensionCycles.DimensionCycle.isoLinearEquiv R e.symm p := by |
| 186 | unfold DimensionCycles.DimensionCycle.isoLinearEquiv |
| 187 | rw [Finsupp.domLCongr_symm, DimensionIsomorphism.dimensionCycleSupportIsoEquiv_symm] |
| 188 | |
| 189 | @[simp] |
| 190 | theorem DimensionCycles.DimensionCycle.isoLinearEquiv_refl (p : ℕ) : |
| 191 | DimensionCycles.DimensionCycle.isoLinearEquiv R (Iso.refl V.toOver) p = |
| 192 | LinearEquiv.refl R (DimensionCycles.DimensionCycle R V p) := by |
| 193 | unfold DimensionCycles.DimensionCycle.isoLinearEquiv |
| 194 | rw [DimensionIsomorphism.dimensionCycleSupportIsoEquiv_refl, Finsupp.domLCongr_refl] |
| 195 | |
| 196 | @[simp] |
| 197 | theorem DimensionCycles.DimensionCycle.isoLinearEquiv_trans (e : V.toOver ≅ W.toOver) (f : W.toOver ≅ U.toOver) (p : ℕ) : |
| 198 | DimensionCycles.DimensionCycle.isoLinearEquiv R (e.trans f) p = |
| 199 | (DimensionCycles.DimensionCycle.isoLinearEquiv R e p).trans (DimensionCycles.DimensionCycle.isoLinearEquiv R f p) := by |
| 200 | unfold DimensionCycles.DimensionCycle.isoLinearEquiv |
| 201 | rw [DimensionIsomorphism.dimensionCycleSupportIsoEquiv_trans, Finsupp.domLCongr_trans] |
| 202 | |
| 203 | /-- Pullback along an actual isomorphism is the inverse relabeling. -/ |
| 204 | def DimensionCycles.DimensionCycle.isoPullback (R : Type v) [Semiring R] (e : V.toOver ≅ W.toOver) (p : ℕ) : |
| 205 | DimensionCycles.DimensionCycle R W p ≃ₗ[R] DimensionCycles.DimensionCycle R V p := |
| 206 | DimensionCycles.DimensionCycle.isoLinearEquiv R e.symm p |
| 207 | |
| 208 | @[simp] |
| 209 | theorem DimensionCycles.DimensionCycle.isoPullback_apply (e : V.toOver ≅ W.toOver) (z : DimensionCycles.DimensionCycle R W p) |
| 210 | (S : DimensionCycles.DimensionCycleSupport V p) : |
| 211 | DimensionCycles.DimensionCycle.isoPullback R e p z S = z (DimensionIsomorphism.dimensionCycleSupportIsoEquiv e p S) := |
| 212 | rfl |
| 213 | |
| 214 | @[simp] |
| 215 | theorem DimensionCycles.DimensionCycle.isoPullback_isoLinearEquiv (e : V.toOver ≅ W.toOver) (z : DimensionCycles.DimensionCycle R V p) : |
| 216 | DimensionCycles.DimensionCycle.isoPullback R e p (DimensionCycles.DimensionCycle.isoLinearEquiv R e p z) = z := by |
| 217 | change DimensionCycles.DimensionCycle.isoLinearEquiv R e.symm p (DimensionCycles.DimensionCycle.isoLinearEquiv R e p z) = z |
| 218 | rw [← DimensionCycles.DimensionCycle.isoLinearEquiv_symm] |
| 219 | exact (DimensionCycles.DimensionCycle.isoLinearEquiv R e p).symm_apply_apply z |
| 220 | |
| 221 | end |
| 222 | |
| 223 | end OAI.AlgebraicGeometry.CycleClass.Geometric |