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.SmoothLocalFiber |
| 2 | import Mathlib.RingTheory.Artinian.Algebra |
| 3 | import Mathlib.RingTheory.Algebraic.Integral |
| 4 | import Mathlib.RingTheory.Flat.TorsionFree |
| 5 | import Mathlib.RingTheory.Polynomial.UniqueFactorization |
| 6 | |
| 7 | /-! # Parameter Map -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Local.ParameterMap.Constructions |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The actual polynomial parameter map into a local domain, localized |
| 14 | at the inverse image of its maximal ideal. -/ |
| 15 | |
| 16 | open _root_.Algebra _root_.Polynomial IsLocalRing |
| 17 | |
| 18 | variable (k R : Type*) [Field k] [CommRing R] [IsLocalRing R] [Algebra k R] |
| 19 | (t : R) |
| 20 | |
| 21 | def parameterPrime : Ideal k[X] := (maximalIdeal R).comap (aeval t).toRingHom |
| 22 | |
| 23 | instance parameterPrime_isPrime : (parameterPrime k R t).IsPrime := |
| 24 | Ideal.IsPrime.comap (aeval t).toRingHom |
| 25 | |
| 26 | abbrev parameterStalk := Localization.AtPrime (parameterPrime k R t) |
| 27 | |
| 28 | def parameterMap : parameterStalk k R t →ₐ[k] R := |
| 29 | IsLocalization.liftAlgHom (M := (parameterPrime k R t).primeCompl) (f := aeval t) |
| 30 | (fun s => by |
| 31 | have h := s.property |
| 32 | change ¬ ¬ IsUnit (aeval t s.val) at h |
| 33 | exact Classical.not_not.mp h) |
| 34 | |
| 35 | theorem parameterMap_algebraMap (a : k[X]) : |
| 36 | parameterMap k R t (algebraMap k[X] (parameterStalk k R t) a) = aeval t a := |
| 37 | IsLocalization.lift_eq _ _ |
| 38 | |
| 39 | instance parameterMap_isLocalHom : IsLocalHom (parameterMap k R t).toRingHom := by |
| 40 | apply IsLocalHom.mk |
| 41 | intro x hx |
| 42 | obtain ⟨a, b, rfl⟩ := IsLocalization.exists_mk'_eq (parameterPrime k R t).primeCompl x |
| 43 | rw [IsLocalization.AtPrime.isUnit_mk'_iff] |
| 44 | have hmul : parameterMap k R t (IsLocalization.mk' (parameterStalk k R t) a b) * |
| 45 | aeval t (b : k[X]) = aeval t a := by |
| 46 | rw [← parameterMap_algebraMap k R t, ← map_mul, IsLocalization.mk'_spec, |
| 47 | parameterMap_algebraMap] |
| 48 | have hb : IsUnit (aeval t (b : k[X])) := by |
| 49 | have h := b.property |
| 50 | change ¬ ¬ IsUnit (aeval t (b : k[X])) at h |
| 51 | exact Classical.not_not.mp h |
| 52 | change ¬ ¬ IsUnit (aeval t a) |
| 53 | exact not_not.mpr (hmul ▸ hx.mul hb) |
| 54 | |
| 55 | theorem parameterPrime_eq_span (ht : t ∈ maximalIdeal R) : |
| 56 | parameterPrime k R t = Ideal.span {Polynomial.X} := by |
| 57 | have hm : (Ideal.span ({Polynomial.X} : Set k[X])).IsMaximal := |
| 58 | PrincipalIdealRing.isMaximal_of_irreducible (irreducible_X (R := k)) |
| 59 | apply ((hm.eq_iff_le (Ideal.IsPrime.ne_top inferInstance)).mpr ?_).symm |
| 60 | rw [Ideal.span_singleton_le_iff_mem] |
| 61 | change aeval t Polynomial.X ∈ maximalIdeal R |
| 62 | simpa only [aeval_X] using ht |
| 63 | |
| 64 | theorem parameterMap_maximalIdeal (ht : t ∈ maximalIdeal R) : |
| 65 | (maximalIdeal (parameterStalk k R t)).map (parameterMap k R t).toRingHom = |
| 66 | Ideal.span {t} := by |
| 67 | rw [← Localization.AtPrime.map_eq_maximalIdeal, Ideal.map_map] |
| 68 | have hm : (parameterMap k R t).toRingHom.comp |
| 69 | (algebraMap k[X] (parameterStalk k R t)) = (aeval t).toRingHom := |
| 70 | RingHom.ext (parameterMap_algebraMap k R t) |
| 71 | rw [hm, parameterPrime_eq_span k R t ht, Ideal.map_span, Set.image_singleton] |
| 72 | simp only [AlgHom.toRingHom_eq_coe, AlgHom.coe_toRingHom, aeval_X] |
| 73 | |
| 74 | omit [IsLocalRing R] in |
| 75 | theorem parameter_transcendental [IsDomain R] (ht : t ≠ 0) (hu : ¬ IsUnit t) : |
| 76 | Transcendental k t := by |
| 77 | intro h |
| 78 | exact hu (IsArtinianRing.isUnit_of_isIntegral_of_nonZeroDivisor h.isIntegral |
| 79 | (mem_nonZeroDivisors_of_ne_zero ht)) |
| 80 | |
| 81 | theorem parameterMap_injective [IsDomain R] (ht : t ≠ 0) (hu : ¬ IsUnit t) : |
| 82 | Function.Injective (parameterMap k R t) := by |
| 83 | apply (IsLocalization.injective_iff_map_algebraMap_eq |
| 84 | (parameterPrime k R t).primeCompl (parameterMap k R t).toRingHom).mpr |
| 85 | intro a b |
| 86 | change algebraMap k[X] (parameterStalk k R t) a = |
| 87 | algebraMap k[X] (parameterStalk k R t) b ↔ |
| 88 | parameterMap k R t (algebraMap k[X] (parameterStalk k R t) a) = |
| 89 | parameterMap k R t (algebraMap k[X] (parameterStalk k R t) b) |
| 90 | rw [parameterMap_algebraMap, parameterMap_algebraMap] |
| 91 | have ha : Function.Injective (algebraMap k[X] (parameterStalk k R t)) := |
| 92 | IsLocalization.injective _ (parameterPrime k R t).primeCompl_le_nonZeroDivisors |
| 93 | rw [ha.eq_iff, (transcendental_iff_injective.mp |
| 94 | (parameter_transcendental k R t ht hu)).eq_iff] |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.CycleClass.Thom.Local.ParameterMap.Constructions |