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.Thom.Affine.GlobalScalarEquiv |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.SmoothDiagonalCoordinates |
| 3 | import Mathlib.AlgebraicGeometry.OpenImmersion |
| 4 | |
| 5 | /-! # Etale Affine Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.EtaleAffineNeighborhood.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Every point of a smooth integral affine complex scheme has an |
| 12 | actual affine open neighborhood with etale polynomial coordinates on |
| 13 | its genuine global-section algebra. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.GlobalScalarEquiv.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.SmoothAffineGlobalCoordinates.Constructions |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | theorem exists_etale_affine_neighborhood (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsAffine X.left] |
| 23 | [IsIntegral X.left] [Smooth X.hom] (x : X.left) : |
| 24 | ∃ Y : Over Foundations.Scheme.ProjectiveSpace.complexBase, ∃ hY : IsAffine Y.left, letI := hY |
| 25 | ∃ j : Y ⟶ X, IsOpenImmersion j.left ∧ IsIntegral Y.left ∧ Smooth Y.hom ∧ |
| 26 | (∃ y : Y.left, j.left y = x) ∧ |
| 27 | ∃ n : ℕ, ∃ a : Algebra (MvPolynomial (Fin n) ℂ) Γ(Y.left, ⊤), letI := a |
| 28 | IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(Y.left, ⊤) ∧ |
| 29 | Algebra.IsStandardEtale (MvPolynomial (Fin n) ℂ) Γ(Y.left, ⊤) := by |
| 30 | let R := Γ(X.left, ⊤) |
| 31 | let q : PrimeSpectrum R := X.left.isoSpec.hom x |
| 32 | obtain ⟨f, hf, n, a, ht, he⟩ := |
| 33 | Algebra.IsSmoothAt.exists_isStandardEtale_mvPolynomial (R := ℂ) (p := q.asIdeal) |
| 34 | have hf0 : f ≠ 0 := by |
| 35 | intro h |
| 36 | apply hf |
| 37 | rw [h] |
| 38 | exact q.asIdeal.zero_mem |
| 39 | let S := Localization.Away f |
| 40 | let := a |
| 41 | let := ht |
| 42 | let := he |
| 43 | let : IsDomain S := Localization.Away.isDomain hf0 |
| 44 | let Y := Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ S |
| 45 | let hY : IsAffine Y.left := inferInstanceAs (IsAffine (Spec (CommRingCat.of S))) |
| 46 | let : IsIntegral Y.left := inferInstanceAs (IsIntegral (Spec (CommRingCat.of S))) |
| 47 | let g : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ S ⟶ Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ R := |
| 48 | Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ R S (IsScalarTower.toAlgHom ℂ R S) |
| 49 | let j : Y ⟶ X := g ≫ (Foundations.Scheme.AffineSchemeComplexPoints.affineOverIso X).inv |
| 50 | have hg : IsOpenImmersion g.left := by |
| 51 | change IsOpenImmersion (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 52 | exact IsOpenImmersion.of_isLocalization f |
| 53 | let : IsOpenImmersion j.left := by |
| 54 | change IsOpenImmersion (g.left ≫ (Foundations.Scheme.AffineSchemeComplexPoints.affineOverIso X).inv.left) |
| 55 | infer_instance |
| 56 | have hsmooth : Smooth Y.hom := by |
| 57 | rw [← j.w] |
| 58 | infer_instance |
| 59 | have hq : q ∈ Set.range (Spec.map (CommRingCat.ofHom (algebraMap R S))) := by |
| 60 | change q ∈ Set.range (PrimeSpectrum.comap (algebraMap R S)) |
| 61 | rw [PrimeSpectrum.localization_away_comap_range S f] |
| 62 | exact hf |
| 63 | obtain ⟨y, hy⟩ := hq |
| 64 | have hjy : j.left y = x := by |
| 65 | change X.left.isoSpec.inv ((Spec.map (CommRingCat.ofHom (algebraMap R S))) y) = x |
| 66 | rw [hy] |
| 67 | exact congrArg (fun f : X.left ⟶ X.left => f x) X.left.isoSpec.hom_inv_id |
| 68 | obtain ⟨ac, htc, hec⟩ := Affine.GlobalScalarEquiv.Constructions.exists_global_etale_coordinates S n |
| 69 | exact ⟨Y, hY, j, inferInstance, inferInstance, hsmooth, ⟨y, hjy⟩, n, ac, htc, hec⟩ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.CycleClass.Thom.EtaleAffineNeighborhood.Constructions |