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.HodgeConjecture.DegreeTwo.SmoothDVR |
| 2 | import Mathlib.RingTheory.Localization.Ideal |
| 3 | import Mathlib.RingTheory.Smooth.Locus |
| 4 | |
| 5 | /-! # Uniformizer Smooth -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.UniformizerSmooth.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # DegreeTwo: the hypersurface cut out by a local uniformizer is generically smooth |
| 13 | |
| 14 | Localization of the actual principal quotient is the residue field of the |
| 15 | DVR. Over a perfect field that local ring is formally smooth, so the actual |
| 16 | hypersurface has a smooth neighborhood of the codimension-one point. |
| 17 | -/ |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | variable {R : Type u} [CommRing R] (P : Ideal R) [P.IsPrime] |
| 22 | variable [IsDomain (Localization.AtPrime P)] [IsDiscreteValuationRing (Localization.AtPrime P)] |
| 23 | |
| 24 | /-- Localizing the principal quotient by a genuine local uniformizer gives |
| 25 | the actual residue field of the codimension-one DVR. -/ |
| 26 | theorem uniformizerQuotient_localization_isField (a : R) |
| 27 | (ha : Irreducible (algebraMap R (Localization.AtPrime P) a)) |
| 28 | (Q : Ideal (R ⧸ Ideal.span {a})) [Q.IsPrime] |
| 29 | (hQ : Q.comap (Ideal.Quotient.mk (Ideal.span {a})) = P) : |
| 30 | IsField (Localization.AtPrime Q) := by |
| 31 | let A := Localization.AtPrime P |
| 32 | let I := Ideal.span ({a} : Set R) |
| 33 | let B := A ⧸ I.map (algebraMap R A) |
| 34 | have hI : I.map (algebraMap R A) = IsLocalRing.maximalIdeal A := by |
| 35 | rw [Ideal.map_span, Set.image_singleton] |
| 36 | exact (IsDiscreteValuationRing.irreducible_iff_uniformizer _).mp ha |>.symm |
| 37 | have hB : IsField B := by |
| 38 | change IsField (A ⧸ I.map (algebraMap R A)) |
| 39 | rw [hI] |
| 40 | let : Field (A ⧸ IsLocalRing.maximalIdeal A) := Ideal.Quotient.field _ |
| 41 | exact Field.toIsField (A ⧸ IsLocalRing.maximalIdeal A) |
| 42 | have hM : Algebra.algebraMapSubmonoid (R ⧸ I) P.primeCompl = Q.primeCompl := by |
| 43 | change P.primeCompl.map (Ideal.Quotient.mk I) = Q.primeCompl |
| 44 | have hc : P.primeCompl = (Q.comap (Ideal.Quotient.mk I)).primeCompl := by |
| 45 | ext r |
| 46 | change r ∉ P ↔ r ∉ Q.comap (Ideal.Quotient.mk I) |
| 47 | rw [hQ] |
| 48 | rw [hc] |
| 49 | exact Ideal.map_primeCompl_comap_of_surjective (f := Ideal.Quotient.mk I) |
| 50 | Ideal.Quotient.mk_surjective Q |
| 51 | let : IsLocalization Q.primeCompl B := by |
| 52 | rw [← hM] |
| 53 | infer_instance |
| 54 | exact (IsLocalization.algEquiv Q.primeCompl (Localization.AtPrime Q) B).toRingEquiv.isField hB |
| 55 | |
| 56 | /-- A local uniformizer cuts out a smooth hypersurface at its actual |
| 57 | quotient prime; perfectness supplies formal smoothness of the residue field. -/ |
| 58 | theorem uniformizerQuotient_isSmoothAt (K : Type v) [Field K] [PerfectField K] |
| 59 | [Algebra K R] [Algebra.FiniteType K R] (a : R) |
| 60 | (ha : Irreducible (algebraMap R (Localization.AtPrime P) a)) |
| 61 | (Q : Ideal (R ⧸ Ideal.span {a})) [Q.IsPrime] |
| 62 | (hQ : Q.comap (Ideal.Quotient.mk (Ideal.span {a})) = P) : |
| 63 | Algebra.IsSmoothAt K Q := by |
| 64 | let : Field (Localization.AtPrime Q) := (uniformizerQuotient_localization_isField P a ha Q hQ).toField |
| 65 | exact Algebra.FormallySmooth.of_perfectField |
| 66 | |
| 67 | /-- The actual hypersurface has a principal smooth neighborhood through the |
| 68 | quotient point, with the neighborhood element lifted to the ambient ring. -/ |
| 69 | theorem uniformizerQuotient_smooth_neighborhood (K : Type v) [Field K] [PerfectField K] |
| 70 | [Algebra K R] [Algebra.FinitePresentation K R] (a : R) |
| 71 | (ha : Irreducible (algebraMap R (Localization.AtPrime P) a)) |
| 72 | (Q : Ideal (R ⧸ Ideal.span {a})) [Q.IsPrime] |
| 73 | (hQ : Q.comap (Ideal.Quotient.mk (Ideal.span {a})) = P) : |
| 74 | ∃ b : R, b ∉ P ∧ Algebra.Smooth K (Localization.Away (Ideal.Quotient.mk (Ideal.span {a}) b)) := by |
| 75 | let : Algebra.FinitePresentation K (R ⧸ Ideal.span {a}) := |
| 76 | Algebra.FinitePresentation.quotient (show (Ideal.span ({a} : Set R)).FG from ⟨{a}, by simp⟩) |
| 77 | let : Algebra.IsSmoothAt K Q := uniformizerQuotient_isSmoothAt P K a ha Q hQ |
| 78 | obtain ⟨q, hq, hsm⟩ := Algebra.IsSmoothAt.exists_notMem_smooth K Q |
| 79 | obtain ⟨b, rfl⟩ := Ideal.Quotient.mk_surjective q |
| 80 | refine ⟨b, ?_, hsm⟩ |
| 81 | intro hb |
| 82 | apply hq |
| 83 | change b ∈ Q.comap (Ideal.Quotient.mk (Ideal.span {a})) |
| 84 | rw [hQ] |
| 85 | exact hb |
| 86 | |
| 87 | /-- The quotient prime is determined by the ambient prime, so no additional |
| 88 | quotient-point or smoothness data is required from the caller. -/ |
| 89 | theorem uniformizer_hypersurface_smooth_neighborhood (K : Type v) [Field K] [PerfectField K] |
| 90 | [Algebra K R] [Algebra.FinitePresentation K R] (a : R) |
| 91 | (ha : Irreducible (algebraMap R (Localization.AtPrime P) a)) : |
| 92 | ∃ b : R, b ∉ P ∧ Algebra.Smooth K (Localization.Away (Ideal.Quotient.mk (Ideal.span {a}) b)) := by |
| 93 | classical |
| 94 | have haP : a ∈ P := by |
| 95 | by_contra h |
| 96 | exact ha.not_isUnit (IsLocalization.map_units (Localization.AtPrime P) (⟨a, h⟩ : P.primeCompl)) |
| 97 | let I := Ideal.span ({a} : Set R) |
| 98 | have hIP : I ≤ P := (Ideal.span_singleton_le_iff_mem P).mpr haP |
| 99 | let Q : Ideal (R ⧸ I) := P.map (Ideal.Quotient.mk I) |
| 100 | let : Q.IsPrime := Ideal.map_isPrime_of_surjective Ideal.Quotient.mk_surjective |
| 101 | (show RingHom.ker (Ideal.Quotient.mk I) ≤ P by simpa only [Ideal.mk_ker] using hIP) |
| 102 | have hQ : Q.comap (Ideal.Quotient.mk I) = P := by |
| 103 | change (P.map (Ideal.Quotient.mk I)).comap (Ideal.Quotient.mk I) = P |
| 104 | rw [Ideal.comap_map_of_surjective _ Ideal.Quotient.mk_surjective] |
| 105 | change P ⊔ RingHom.ker (Ideal.Quotient.mk I) = P |
| 106 | rw [Ideal.mk_ker, sup_eq_left.mpr hIP] |
| 107 | exact uniformizerQuotient_smooth_neighborhood P K a ha Q hQ |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.UniformizerSmooth.Constructions |