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.ArithmeticGeometry.Descent.CMVariety.AffineCoordinates |
| 2 | import Mathlib.RingTheory.Unramified.LocalStructure |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 4 | |
| 5 | /-! # Rational Etale Charts -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.RationalEtaleCharts.Abelian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Etale coordinates around rational-scheme complex points, constructed |
| 12 | from ordinary algebraic smoothness. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem affine_point_has_rational_etale_neighborhood |
| 17 | {A : Type} [CommRing A] [Algebra ℚ A] [Algebra.Smooth ℚ A] |
| 18 | (x : A →ₐ[ℚ] ℂ) : |
| 19 | ∃ (Y : Scheme) (q : Y ⟶ Spec (CommRingCat.of ℚ)) |
| 20 | (j : Y ⟶ Spec (CommRingCat.of A)) (y : OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase ⟶ Y) |
| 21 | (n : ℕ) (u : Y ⟶ (AffineCoordinates.Abelian.rationalAffineSpace (Fin n)).left), |
| 22 | IsOpenImmersion j ∧ Etale u ∧ LocallyQuasiFinite u ∧ |
| 23 | j ≫ (AffineCoefficientObjects.Abelian.affineCoefficientObject ℚ A).hom = q ∧ |
| 24 | y ≫ j = Spec.map (CommRingCat.ofHom x.toRingHom) ∧ |
| 25 | u ≫ (AffineCoordinates.Abelian.rationalAffineSpace (Fin n)).hom = q := by |
| 26 | let p := RingHom.ker x.toRingHom |
| 27 | have : p.IsPrime := RingHom.ker_isPrime x.toRingHom |
| 28 | obtain ⟨a, ha, n, aPoly, tower, hEtale⟩ := |
| 29 | Algebra.IsSmoothAt.exists_isStandardEtale_mvPolynomial (R := ℚ) (p := p) |
| 30 | let B := Localization.Away a |
| 31 | let : Algebra (MvPolynomial (Fin n) ℚ) B := aPoly |
| 32 | let : IsScalarTower ℚ (MvPolynomial (Fin n) ℚ) B := tower |
| 33 | have : Algebra.IsStandardEtale (MvPolynomial (Fin n) ℚ) B := hEtale |
| 34 | let j := Spec.map (CommRingCat.ofHom (algebraMap A B)) |
| 35 | let q := (AffineCoefficientObjects.Abelian.affineCoefficientObject ℚ B).hom |
| 36 | let u := Spec.map (CommRingCat.ofHom (algebraMap (MvPolynomial (Fin n) ℚ) B)) |
| 37 | let yRing : B →ₐ[ℚ] ℂ := IsLocalization.Away.liftAlgHom (f := x) a |
| 38 | (isUnit_iff_ne_zero.mpr ha) |
| 39 | let y := Spec.map (CommRingCat.ofHom yRing.toRingHom) |
| 40 | have hj : IsOpenImmersion j := IsOpenImmersion.of_isLocalization a |
| 41 | have hu : Etale u := (HasRingHomProperty.Spec_iff (P := @Etale)).mpr |
| 42 | (RingHom.etale_algebraMap.mpr inferInstance) |
| 43 | have hqf : LocallyQuasiFinite u := (HasRingHomProperty.Spec_iff (P := @LocallyQuasiFinite)).mpr |
| 44 | (RingHom.quasiFinite_algebraMap.mpr inferInstance) |
| 45 | refine ⟨Spec (CommRingCat.of B), q, j, y, n, u, hj, hu, hqf, ?_, ?_, ?_⟩ |
| 46 | · change Spec.map (CommRingCat.ofHom (algebraMap A B)) ≫ |
| 47 | Spec.map (CommRingCat.ofHom (algebraMap ℚ A)) = |
| 48 | Spec.map (CommRingCat.ofHom (algebraMap ℚ B)) |
| 49 | rw [← Spec.map_comp] |
| 50 | exact congrArg Spec.map (congrArg CommRingCat.ofHom |
| 51 | (IsScalarTower.algebraMap_eq ℚ A B).symm) |
| 52 | · change Spec.map (CommRingCat.ofHom yRing.toRingHom) ≫ j = _ |
| 53 | rw [← Spec.map_comp] |
| 54 | exact congrArg Spec.map (congrArg CommRingCat.ofHom |
| 55 | (IsLocalization.Away.lift_comp a (isUnit_iff_ne_zero.mpr ha))) |
| 56 | · change Spec.map (CommRingCat.ofHom (algebraMap (MvPolynomial (Fin n) ℚ) B)) ≫ |
| 57 | Spec.map (CommRingCat.ofHom (algebraMap ℚ (MvPolynomial (Fin n) ℚ))) = _ |
| 58 | rw [← Spec.map_comp] |
| 59 | exact congrArg Spec.map (congrArg CommRingCat.ofHom |
| 60 | (IsScalarTower.algebraMap_eq ℚ (MvPolynomial (Fin n) ℚ) B).symm) |
| 61 | |
| 62 | theorem smooth_point_has_rational_etale_neighborhood |
| 63 | {X : Scheme} (f : X ⟶ Spec (CommRingCat.of ℚ)) [Smooth f] |
| 64 | (p : OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase ⟶ X) : |
| 65 | ∃ (Y : Scheme) (q : Y ⟶ Spec (CommRingCat.of ℚ)) |
| 66 | (j : Y ⟶ X) (y : OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase ⟶ Y) |
| 67 | (n : ℕ) (u : Y ⟶ (AffineCoordinates.Abelian.rationalAffineSpace (Fin n)).left), |
| 68 | IsOpenImmersion j ∧ Etale u ∧ LocallyQuasiFinite u ∧ |
| 69 | j ≫ f = q ∧ y ≫ j = p ∧ u ≫ (AffineCoordinates.Abelian.rationalAffineSpace (Fin n)).hom = q := by |
| 70 | obtain ⟨U, hU, hpU, _⟩ := exists_isAffineOpen_mem_and_subset |
| 71 | (show p (IsLocalRing.closedPoint ℂ) ∈ (⊤ : X.Opens) from trivial) |
| 72 | let A := Γ(X, U) |
| 73 | let : Algebra ℚ A := OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 74 | let i := hU.fromSpec |
| 75 | have : IsOpenImmersion i := hU.isOpenImmersion_fromSpec |
| 76 | have hi : i ≫ f = (AffineCoefficientObjects.Abelian.affineCoefficientObject ℚ A).hom := |
| 77 | (OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport.specSectionScalarMap_fromSpec f U hU).symm |
| 78 | have hs : Smooth (AffineCoefficientObjects.Abelian.affineCoefficientObject ℚ A).hom := by |
| 79 | rw [← hi] |
| 80 | exact inferInstanceAs (Smooth (hU.fromSpec ≫ f)) |
| 81 | have : Algebra.Smooth ℚ A := RingHom.smooth_algebraMap.mp |
| 82 | ((HasRingHomProperty.Spec_iff (P := @Smooth)).mp hs) |
| 83 | have hrange : Set.range p ⊆ Set.range i := by |
| 84 | rintro z ⟨w, rfl⟩ |
| 85 | rw [Subsingleton.elim w (IsLocalRing.closedPoint ℂ)] |
| 86 | change p (IsLocalRing.closedPoint ℂ) ∈ Set.range hU.fromSpec |
| 87 | rw [hU.range_fromSpec] |
| 88 | exact hpU |
| 89 | let pA := IsOpenImmersion.lift i p hrange |
| 90 | have hpA : pA ≫ i = p := IsOpenImmersion.lift_fac _ _ _ |
| 91 | let xRing := (Spec.preimage pA).hom |
| 92 | let x : A →ₐ[ℚ] ℂ := |
| 93 | { xRing with commutes' := fun c => |
| 94 | DFunLike.congr_fun (show xRing.comp (algebraMap ℚ A) = algebraMap ℚ ℂ from |
| 95 | Subsingleton.elim _ _) c } |
| 96 | obtain ⟨Y, q, j, y, n, u, hj, hu, hqf, hjq, hyj, huq⟩ := |
| 97 | affine_point_has_rational_etale_neighborhood x |
| 98 | have : IsOpenImmersion j := hj |
| 99 | refine ⟨Y, q, j ≫ i, y, n, u, inferInstance, hu, hqf, ?_, ?_, huq⟩ |
| 100 | · rw [Category.assoc, hi, hjq] |
| 101 | · rw [← Category.assoc, hyj] |
| 102 | have hx : Spec.map (CommRingCat.ofHom x.toRingHom) = pA := Spec.map_preimage pA |
| 103 | rw [hx, hpA] |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.ArithmeticGeometry.Descent.CMVariety.RationalEtaleCharts.Abelian |