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 Mathlib.RingTheory.AlgebraicIndependent.TranscendenceBasis |
| 2 | import Mathlib.RingTheory.Algebraic.Integral |
| 3 | import Mathlib.RingTheory.Ideal.Over |
| 4 | import Mathlib.RingTheory.Localization.FractionRing |
| 5 | |
| 6 | /-! # Transcendence Degree Transfer -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.TranscendenceDegreeTransfer |
| 9 | |
| 10 | /-! |
| 11 | # Transcendence degree under algebraic extensions |
| 12 | |
| 13 | These results use mathlib's cardinal-valued transcendence degree and its |
| 14 | additivity theorem for faithful towers of domains. They apply in particular to |
| 15 | the integral extensions arising in Noether normalization. The prime-quotient |
| 16 | comparison uses the actual map induced on quotients, whose injectivity follows |
| 17 | from taking the inverse image of the prime ideal. |
| 18 | -/ |
| 19 | |
| 20 | universe u v w |
| 21 | |
| 22 | section Towers |
| 23 | |
| 24 | variable (k : Type u) (A B : Type v) [Field k] |
| 25 | [CommRing A] [IsDomain A] [CommRing B] [IsDomain B] |
| 26 | [Algebra k A] [Algebra k B] [Algebra A B] |
| 27 | [IsScalarTower k A B] [FaithfulSMul A B] |
| 28 | |
| 29 | /-- An algebraic faithful extension of domains preserves transcendence degree |
| 30 | over the common base field. -/ |
| 31 | theorem trdeg_eq_of_isAlgebraic [Algebra.IsAlgebraic A B] : |
| 32 | Algebra.trdeg k A = Algebra.trdeg k B := by |
| 33 | simpa only [trdeg_eq_zero, add_zero] using (trdeg_add_eq k A (A := B)) |
| 34 | |
| 35 | /-- An integral faithful extension of domains preserves transcendence degree. -/ |
| 36 | theorem trdeg_eq_of_isIntegral [Algebra.IsIntegral A B] : |
| 37 | Algebra.trdeg k A = Algebra.trdeg k B := |
| 38 | trdeg_eq_of_isAlgebraic k A B |
| 39 | |
| 40 | end Towers |
| 41 | |
| 42 | section LiftedTowers |
| 43 | |
| 44 | variable (k : Type u) (A : Type v) (B : Type w) [Field k] |
| 45 | [CommRing A] [IsDomain A] [CommRing B] [IsDomain B] |
| 46 | [Algebra k A] [Algebra k B] [Algebra A B] |
| 47 | [IsScalarTower k A B] [FaithfulSMul A B] |
| 48 | |
| 49 | /-- The universe-polymorphic form of algebraic transcendence-degree invariance. -/ |
| 50 | theorem lift_trdeg_eq_of_isAlgebraic [Algebra.IsAlgebraic A B] : |
| 51 | Cardinal.lift.{w} (Algebra.trdeg k A) = |
| 52 | Cardinal.lift.{v} (Algebra.trdeg k B) := by |
| 53 | simpa only [trdeg_eq_zero, Cardinal.lift_zero, add_zero] using |
| 54 | (lift_trdeg_add_eq k A B) |
| 55 | |
| 56 | /-- Integral invariance with the cardinal lifts required by distinct universes. -/ |
| 57 | theorem lift_trdeg_eq_of_isIntegral [Algebra.IsIntegral A B] : |
| 58 | Cardinal.lift.{w} (Algebra.trdeg k A) = |
| 59 | Cardinal.lift.{v} (Algebra.trdeg k B) := |
| 60 | lift_trdeg_eq_of_isAlgebraic k A B |
| 61 | |
| 62 | end LiftedTowers |
| 63 | |
| 64 | section Fractions |
| 65 | |
| 66 | variable (k : Type u) (A K : Type v) [Field k] [CommRing A] [IsDomain A] |
| 67 | [Field K] [Algebra k A] [Algebra k K] [Algebra A K] |
| 68 | [IsScalarTower k A K] [IsFractionRing A K] |
| 69 | |
| 70 | /-- Passing from a domain to a fraction field does not alter its |
| 71 | transcendence degree over the base field. -/ |
| 72 | theorem trdeg_eq_of_isFractionRing : Algebra.trdeg k A = Algebra.trdeg k K := by |
| 73 | let : Algebra.IsAlgebraic A K := |
| 74 | IsLocalization.isAlgebraic K (nonZeroDivisors A) |
| 75 | exact trdeg_eq_of_isAlgebraic k A K |
| 76 | |
| 77 | /-- The standard fraction field has the same transcendence degree as its domain. -/ |
| 78 | theorem trdeg_eq_fractionRing (k : Type u) (A : Type v) [Field k] |
| 79 | [CommRing A] [IsDomain A] [Algebra k A] : |
| 80 | Algebra.trdeg k A = Algebra.trdeg k (FractionRing A) := |
| 81 | trdeg_eq_of_isFractionRing k A (FractionRing A) |
| 82 | |
| 83 | end Fractions |
| 84 | |
| 85 | variable (k : Type u) {A B : Type v} [Field k] |
| 86 | [CommRing A] [CommRing B] [Algebra k A] [Algebra k B] |
| 87 | |
| 88 | /-- A faithful integral algebra homomorphism identifies the transcendence |
| 89 | degrees of its source and target domains. -/ |
| 90 | theorem trdeg_eq_of_injective_integral_algHom [IsDomain A] [IsDomain B] |
| 91 | (f : A →ₐ[k] B) (hf : Function.Injective f) (hint : f.toRingHom.IsIntegral) : |
| 92 | Algebra.trdeg k A = Algebra.trdeg k B := by |
| 93 | let : Algebra A B := f.toRingHom.toAlgebra |
| 94 | let : IsScalarTower k A B := IsScalarTower.of_algHom f |
| 95 | let : FaithfulSMul A B := |
| 96 | (faithfulSMul_iff_algebraMap_injective A B).mpr hf |
| 97 | let : Algebra.IsIntegral A B := ⟨hint⟩ |
| 98 | exact trdeg_eq_of_isIntegral k A B |
| 99 | |
| 100 | /-- Quotienting an integral algebra map by a prime and its inverse image |
| 101 | preserves transcendence degree. The original map need not be injective: |
| 102 | the induced map on these two quotients is injective by construction. -/ |
| 103 | theorem trdeg_quotient_eq_of_integral_algHom (f : A →ₐ[k] B) |
| 104 | (hint : f.toRingHom.IsIntegral) (P : Ideal B) [P.IsPrime] : |
| 105 | Algebra.trdeg k (A ⧸ P.comap f) = Algebra.trdeg k (B ⧸ P) := by |
| 106 | exact trdeg_eq_of_injective_integral_algHom k |
| 107 | (Ideal.quotientMapₐ P f le_rfl) Ideal.quotientMap_injective hint.quotient |
| 108 | |
| 109 | /-- The prime-quotient comparison for an integral tower over a field. -/ |
| 110 | theorem trdeg_quotient_eq_of_isIntegral [Algebra A B] [IsScalarTower k A B] |
| 111 | [Algebra.IsIntegral A B] (P : Ideal B) [P.IsPrime] : |
| 112 | Algebra.trdeg k (A ⧸ P.comap (algebraMap A B)) = |
| 113 | Algebra.trdeg k (B ⧸ P) := by |
| 114 | exact trdeg_quotient_eq_of_integral_algHom k (IsScalarTower.toAlgHom k A B) |
| 115 | Algebra.IsIntegral.isIntegral P |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.Foundations.Scheme.TranscendenceDegreeTransfer |