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.ComplexPoints.Analytic.Affine |
| 2 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.FiniteTypeAffineTopology |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.SmoothAffineCharts |
| 4 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.OpenImmersion |
| 5 | import OAI.AlgebraicGeometry.Foundations.Scheme.SmoothDomainDimension |
| 6 | import OAI.AlgebraicGeometry.Foundations.Scheme.PresentationDimension |
| 7 | import Mathlib.Analysis.Complex.Basic |
| 8 | import Mathlib.Geometry.Manifold.IsManifold.Basic |
| 9 | |
| 10 | /-! # Smooth Scheme Manifold -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.ComplexPoints.Analytic.SmoothSchemeManifold |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # Analytic compatibility of native smooth-scheme coordinate charts |
| 18 | |
| 19 | This file works with actual complex algebra characters, equipped with their |
| 20 | ordinary evaluation topology. Its transition lemmas apply to charts obtained |
| 21 | from localized submersive presentations: inverse charts have analytic regular |
| 22 | function evaluations, and forward coordinates are genuine localization ratios. |
| 23 | No compatibility or dimension hypothesis is packaged as a substitute manifold. |
| 24 | -/ |
| 25 | |
| 26 | open scoped ContDiff _root_.Manifold |
| 27 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 28 | |
| 29 | variable {A : Type*} [CommRing A] [Algebra ℂ A] |
| 30 | variable {ι κ : Type*} [Fintype ι] [Fintype κ] |
| 31 | |
| 32 | /-- A localized regular function is analytic in any chart in which regular |
| 33 | functions have analytic evaluations, on its actual nonvanishing locus. -/ |
| 34 | theorem contDiffOn_affineEvaluationRatio |
| 35 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (ι → ℂ)) |
| 36 | (hinv : ∀ a : A, ContDiffOn ℂ ω (fun z => e.symm z a) e.target) |
| 37 | (a g : A) (k : ℕ) : |
| 38 | ContDiffOn ℂ ω (fun z => e.symm z a / (e.symm z g) ^ k) |
| 39 | (e.target ∩ {z | e.symm z g ≠ 0}) := by |
| 40 | apply ((hinv a).mono Set.inter_subset_left).div |
| 41 | (((hinv g).mono Set.inter_subset_left).pow k) |
| 42 | intro z hz |
| 43 | exact pow_ne_zero k hz.2 |
| 44 | |
| 45 | /-- The transition between two actual affine-character charts is analytic if |
| 46 | the first has analytic regular-function evaluations and the second's forward |
| 47 | coordinates are the ratios of regular functions supplied by its localization. |
| 48 | The denominator condition is required only on the second chart's source. -/ |
| 49 | theorem contDiffOn_affineChartTransition |
| 50 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (ι → ℂ)) |
| 51 | (f : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (κ → ℂ)) |
| 52 | (hinv : ∀ a : A, ContDiffOn ℂ ω (fun z => e.symm z a) e.target) |
| 53 | (g : A) (hg : ∀ x ∈ f.source, x g ≠ 0) |
| 54 | (hcoords : ∀ i : κ, ∃ (a : A) (k : ℕ), |
| 55 | ∀ x ∈ f.source, f x i = x a / (x g) ^ k) : |
| 56 | ContDiffOn ℂ ω (e.symm.trans f) (e.symm.trans f).source := by |
| 57 | apply contDiffOn_pi.mpr |
| 58 | intro i |
| 59 | obtain ⟨a, k, hcoord⟩ := hcoords i |
| 60 | have heval (b : A) : ContDiffOn ℂ ω (fun z => e.symm z b) |
| 61 | (e.symm.trans f).source := |
| 62 | (hinv b).mono (fun _ hz => hz.1) |
| 63 | apply ((heval a).div ((heval g).pow k) (fun z hz => |
| 64 | pow_ne_zero k (hg (e.symm z) hz.2))).congr |
| 65 | intro z hz |
| 66 | exact hcoord (e.symm z) hz.2 |
| 67 | |
| 68 | /-- The same actual transition is smooth over the reals, as required for real |
| 69 | smooth differential forms with complex coefficients. -/ |
| 70 | theorem real_contDiffOn_affineChartTransition |
| 71 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (ι → ℂ)) |
| 72 | (f : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (κ → ℂ)) |
| 73 | (hinv : ∀ a : A, ContDiffOn ℂ ω (fun z => e.symm z a) e.target) |
| 74 | (g : A) (hg : ∀ x ∈ f.source, x g ≠ 0) |
| 75 | (hcoords : ∀ i : κ, ∃ (a : A) (k : ℕ), |
| 76 | ∀ x ∈ f.source, f x i = x a / (x g) ^ k) : |
| 77 | ContDiffOn ℝ ω (e.symm.trans f) (e.symm.trans f).source := |
| 78 | (contDiffOn_affineChartTransition e f hinv g hg hcoords).restrict_scalars ℝ |
| 79 | |
| 80 | /-- Concrete coordinate charts on affine algebra characters: every regular |
| 81 | function is analytic in the inverse chart, and every forward coordinate is |
| 82 | a localization ratio with a denominator nonzero on the chart source. |
| 83 | |
| 84 | This is an explicit set of actual open partial homeomorphisms. Coverage must |
| 85 | be proved from algebraic smoothness before it can define a manifold atlas. -/ |
| 86 | def affineRegularAtlas (A : Type*) [CommRing A] [Algebra ℂ A] (n : ℕ) : |
| 87 | Set (OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (Fin n → ℂ)) := |
| 88 | {e | (∀ a : A, ContDiffOn ℂ ω (fun z => e.symm z a) e.target) ∧ |
| 89 | ∃ g : A, (∀ x ∈ e.source, x g ≠ 0) ∧ |
| 90 | ∀ i : Fin n, ∃ (a : A) (k : ℕ), |
| 91 | ∀ x ∈ e.source, e x i = x a / (x g) ^ k} |
| 92 | |
| 93 | /-- Compatibility of the explicitly defined affine regular-coordinate atlas |
| 94 | is a theorem of calculus and the displayed localization formulas. -/ |
| 95 | theorem affineRegularAtlas_compatible {n : ℕ} |
| 96 | (e f : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (Fin n → ℂ)) |
| 97 | (he : e ∈ affineRegularAtlas A n) (hf : f ∈ affineRegularAtlas A n) : |
| 98 | ContDiffOn ℂ ω (e.symm.trans f) (e.symm.trans f).source := by |
| 99 | obtain ⟨g, hg, hcoords⟩ := hf.2 |
| 100 | exact contDiffOn_affineChartTransition e f he.1 g hg hcoords |
| 101 | |
| 102 | /-- Pullback by a genuine algebra homomorphism is analytic in any two of the |
| 103 | concrete regular-coordinate charts, on the actual chart-overlap domain. -/ |
| 104 | theorem contDiffOn_affineChartComapTransition |
| 105 | {B : Type*} [CommRing B] [Algebra ℂ B] (h : A →ₐ[ℂ] B) |
| 106 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (ι → ℂ)) |
| 107 | (f : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (κ → ℂ)) |
| 108 | (hinv : ∀ b : B, ContDiffOn ℂ ω (fun z => e.symm z b) e.target) |
| 109 | (g : A) (hg : ∀ x ∈ f.source, x g ≠ 0) |
| 110 | (hcoords : ∀ i : κ, ∃ (a : A) (k : ℕ), |
| 111 | ∀ x ∈ f.source, f x i = x a / (x g) ^ k) : |
| 112 | ContDiffOn ℂ ω (fun z => f ((e.symm z).comp h)) |
| 113 | (e.target ∩ {z | (e.symm z).comp h ∈ f.source}) := by |
| 114 | apply contDiffOn_pi.mpr |
| 115 | intro i |
| 116 | obtain ⟨a, k, hcoord⟩ := hcoords i |
| 117 | have heval (b : B) : ContDiffOn ℂ ω (fun z => e.symm z b) |
| 118 | (e.target ∩ {z | (e.symm z).comp h ∈ f.source}) := |
| 119 | (hinv b).mono Set.inter_subset_left |
| 120 | apply ((heval (h a)).div ((heval (h g)).pow k) (fun z hz => |
| 121 | pow_ne_zero k (hg ((e.symm z).comp h) hz.2))).congr |
| 122 | intro z hz |
| 123 | exact hcoord ((e.symm z).comp h) hz.2 |
| 124 | |
| 125 | section NativeSchemeCharts |
| 126 | |
| 127 | variable {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 128 | |
| 129 | /-- A genuine affine open immersion gives an open embedding from ordinary |
| 130 | algebra characters into the native complex-point space of the scheme. -/ |
| 131 | theorem isOpenEmbedding_affinePointMap (B : CommAlgCat ℂ) |
| 132 | (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ B ⟶ X) [IsOpenImmersion i.left] : |
| 133 | Topology.IsOpenEmbedding (SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B i) := |
| 134 | (SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion i).comp |
| 135 | (SchemePointHomeomorphs.affineSchemePointHomeomorph B).isOpenEmbedding |
| 136 | |
| 137 | /-- Lift an actual affine algebra chart through its genuine affine open |
| 138 | immersion to a chart on native scheme-valued complex points. -/ |
| 139 | def affineChartOnScheme (B : CommAlgCat ℂ) |
| 140 | (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ B ⟶ X) [IsOpenImmersion i.left] {n : ℕ} |
| 141 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (Fin n → ℂ)) : |
| 142 | OpenPartialHomeomorph (SchemePointHomeomorphs.schemeComplexPoints X) (Fin n → ℂ) := |
| 143 | e.lift_openEmbedding (isOpenEmbedding_affinePointMap B i) |
| 144 | |
| 145 | @[simp] |
| 146 | theorem affineChartOnScheme_source (B : CommAlgCat ℂ) |
| 147 | (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ B ⟶ X) [IsOpenImmersion i.left] {n : ℕ} |
| 148 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (Fin n → ℂ)) : |
| 149 | (affineChartOnScheme B i e).source = |
| 150 | SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B i '' e.source := rfl |
| 151 | |
| 152 | @[simp] |
| 153 | theorem affineChartOnScheme_symm_apply (B : CommAlgCat ℂ) |
| 154 | (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ B ⟶ X) [IsOpenImmersion i.left] {n : ℕ} |
| 155 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (Fin n → ℂ)) (z : Fin n → ℂ) : |
| 156 | (affineChartOnScheme B i e).symm z = |
| 157 | SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B i (e.symm z) := rfl |
| 158 | |
| 159 | @[simp] |
| 160 | theorem affineChartOnScheme_apply (B : CommAlgCat ℂ) |
| 161 | (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ B ⟶ X) [IsOpenImmersion i.left] {n : ℕ} |
| 162 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (Fin n → ℂ)) |
| 163 | (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) : |
| 164 | affineChartOnScheme B i e (SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B i x) = e x := |
| 165 | OpenPartialHomeomorph.lift_openEmbedding_apply _ _ |
| 166 | |
| 167 | end NativeSchemeCharts |
| 168 | |
| 169 | variable [IsDomain A] [Algebra.Smooth ℂ A] |
| 170 | |
| 171 | /-- At every point of a smooth integral complex algebra, the concrete regular |
| 172 | coordinate atlas contains a chart of the common dimension. This dimension is |
| 173 | the proved generic Kähler differential rank, not an additional input. -/ |
| 174 | theorem exists_smoothDomain_affineRegularChart (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) : |
| 175 | ∃ e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) |
| 176 | (Fin (Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) → ℂ), |
| 177 | e ∈ affineRegularAtlas A (Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) ∧ x ∈ e.source := by |
| 178 | classical |
| 179 | obtain ⟨g, hg, n, m, P, e, hx, hsource, hcoords, hinverse⟩ := |
| 180 | SmoothAffineCharts.exists_smoothAffinePoint_localChart x |
| 181 | have hgne : g ≠ 0 := by |
| 182 | intro h |
| 183 | apply hg |
| 184 | simp [h] |
| 185 | let : IsDomain (Localization.Away g) := Localization.Away.isDomain hgne |
| 186 | have hdim : Nat.card (JacobianRegularity.FreeCoordinates P.map) = |
| 187 | Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A := by |
| 188 | simpa only [Fintype.card_eq_nat_card] using |
| 189 | (Foundations.Scheme.PresentationDimension.Algebraic.card_free_variables_eq_dimension P.toPreSubmersivePresentation).trans |
| 190 | (Foundations.Scheme.SmoothDomainDimension.Algebraic.localized_submersive_dimension (R := ℂ) (S := A) (Submonoid.powers g) P) |
| 191 | have hex : ∃ e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) |
| 192 | (Fin (Fintype.card (JacobianRegularity.FreeCoordinates P.map)) → ℂ), |
| 193 | e ∈ affineRegularAtlas A (Fintype.card (JacobianRegularity.FreeCoordinates P.map)) ∧ x ∈ e.source := by |
| 194 | refine ⟨e, ⟨hinverse, ⟨g, ?_, hcoords⟩⟩, hx⟩ |
| 195 | intro y hy |
| 196 | exact hsource hy |
| 197 | have hdim' : Fintype.card (JacobianRegularity.FreeCoordinates P.map) = |
| 198 | Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A := Fintype.card_eq_nat_card.trans hdim |
| 199 | exact (congrArg (fun d => ∃ e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) |
| 200 | (Fin d → ℂ), e ∈ affineRegularAtlas A d ∧ x ∈ e.source) hdim').mp hex |
| 201 | |
| 202 | /-- The genuine smooth affine point manifold uses the concrete regular atlas, |
| 203 | whose coverage and common dimension were proved from algebraic smoothness. -/ |
| 204 | instance smoothDomainChartedSpace : |
| 205 | ChartedSpace (Fin (Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) → ℂ) |
| 206 | (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) where |
| 207 | atlas := affineRegularAtlas A (Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) |
| 208 | chartAt x := Classical.choose (exists_smoothDomain_affineRegularChart x) |
| 209 | mem_chart_source x := (Classical.choose_spec (exists_smoothDomain_affineRegularChart x)).2 |
| 210 | chart_mem_atlas x := (Classical.choose_spec (exists_smoothDomain_affineRegularChart x)).1 |
| 211 | |
| 212 | /-- The complex points of a smooth integral complex algebra form an actual |
| 213 | complex analytic manifold in their ordinary evaluation topology. -/ |
| 214 | instance smoothDomainComplexIsManifold (r : ℕ∞ω) : |
| 215 | IsManifold (𝓘(ℂ, Fin (Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) → ℂ)) r |
| 216 | (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) := by |
| 217 | apply isManifold_of_contDiffOn |
| 218 | (𝓘(ℂ, Fin (Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) → ℂ)) r _ |
| 219 | intro e f he hf |
| 220 | have h := (affineRegularAtlas_compatible e f he hf).of_le (show r ≤ ω from le_top) |
| 221 | simpa only [modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm, |
| 222 | Function.comp_id, Function.id_comp, Set.preimage_id, Set.range_id, Set.inter_univ] using h |
| 223 | |
| 224 | /-- The same genuine smooth affine manifold, with scalars restricted to the |
| 225 | reals, supplies the underlying manifold for differential forms. -/ |
| 226 | instance smoothDomainRealIsManifold (r : ℕ∞ω) : |
| 227 | IsManifold (𝓘(ℝ, Fin (Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) → ℂ)) r |
| 228 | (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) := by |
| 229 | apply isManifold_of_contDiffOn |
| 230 | (𝓘(ℝ, Fin (Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) → ℂ)) r _ |
| 231 | intro e f he hf |
| 232 | have h := ((affineRegularAtlas_compatible e f he hf).of_le |
| 233 | (show r ≤ ω from le_top)).restrict_scalars ℝ |
| 234 | simpa only [modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm, |
| 235 | Function.comp_id, Function.id_comp, Set.preimage_id, Set.range_id, Set.inter_univ] using h |
| 236 | |
| 237 | end |
| 238 | |
| 239 | end OAI.AlgebraicGeometry.ComplexPoints.Analytic.SmoothSchemeManifold |