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.Ideal.Quotient.Operations |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.TranscendenceDegreeTransfer |
| 4 | |
| 5 | /-! # Strict Transcendence Drop -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.StrictTranscendenceDrop |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Strict transcendence-degree drop under a proper prime quotient |
| 13 | |
| 14 | A surjective homomorphism between domains of finite transcendence degree cannot |
| 15 | preserve transcendence degree while having a nonzero kernel. The proof lifts a |
| 16 | transcendence basis and uses the fact that an algebraic domain extension cannot |
| 17 | acquire a kernel when the map on its base remains injective. |
| 18 | -/ |
| 19 | |
| 20 | open Function _root_.Algebra Cardinal |
| 21 | |
| 22 | universe u v w |
| 23 | |
| 24 | variable {k : Type v} [Field k] |
| 25 | variable {A B : Type u} [CommRing A] [IsDomain A] [CommRing B] |
| 26 | variable [Algebra k A] [Algebra k B] |
| 27 | |
| 28 | /-- If an algebra homomorphism preserves algebraic independence of a |
| 29 | transcendence basis of its domain, the homomorphism is injective. -/ |
| 30 | theorem injective_of_transcendenceBasis_image_independent |
| 31 | {ι : Type w} {x : ι → A} (f : A →ₐ[k] B) |
| 32 | (hx : IsTranscendenceBasis k x) |
| 33 | (hfx : AlgebraicIndependent k (f ∘ x)) : Function.Injective f := by |
| 34 | let S := Algebra.adjoin k (Set.range x) |
| 35 | let : Algebra A B := f.toRingHom.toAlgebra |
| 36 | let : Algebra.IsAlgebraic S A := hx.isAlgebraic |
| 37 | have heval : MvPolynomial.aeval (f ∘ x) = f.comp (MvPolynomial.aeval x) := by |
| 38 | ext i |
| 39 | simp |
| 40 | have hinj : Function.Injective (algebraMap S B) := by |
| 41 | intro a b hab |
| 42 | obtain ⟨p, rfl⟩ := hx.1.aevalEquiv.surjective a |
| 43 | obtain ⟨q, rfl⟩ := hx.1.aevalEquiv.surjective b |
| 44 | have hpq : p = q := by |
| 45 | apply hfx |
| 46 | rw [heval] |
| 47 | change f (MvPolynomial.aeval x p) = f (MvPolynomial.aeval x q) |
| 48 | exact hab |
| 49 | exact congrArg hx.1.aevalEquiv hpq |
| 50 | change Function.Injective (algebraMap A B) |
| 51 | exact Algebra.IsAlgebraic.injective_tower_top (R := S) A hinj |
| 52 | |
| 53 | variable [IsDomain B] |
| 54 | |
| 55 | /-- With finite transcendence degree, a surjective noninjective homomorphism of |
| 56 | domains strictly decreases transcendence degree. -/ |
| 57 | theorem trdeg_lt_of_surjective_not_injective |
| 58 | (f : A →ₐ[k] B) (hf : Function.Surjective f) (hni : ¬ Function.Injective f) |
| 59 | (hfin : Algebra.trdeg k A < ℵ₀) : Algebra.trdeg k B < Algebra.trdeg k A := by |
| 60 | apply lt_of_not_ge |
| 61 | intro hge |
| 62 | obtain ⟨s, hs⟩ := exists_isTranscendenceBasis k B |
| 63 | choose x hx using (fun b : s => hf b.val) |
| 64 | have hcomp : f ∘ x = (Subtype.val : s → B) := funext hx |
| 65 | have hfx : AlgebraicIndependent k (f ∘ x) := by |
| 66 | rw [hcomp] |
| 67 | exact hs.1 |
| 68 | have hxind : AlgebraicIndependent k x := hfx.of_comp f |
| 69 | have hxbasis : IsTranscendenceBasis k x := |
| 70 | hxind.isTranscendenceBasis_of_trdeg_le hfin |
| 71 | (hge.trans_eq hs.cardinalMk_eq_trdeg.symm) |
| 72 | exact hni (injective_of_transcendenceBasis_image_independent f hxbasis hfx) |
| 73 | |
| 74 | /-- The finite-type version requires no separate transcendence-degree bound. -/ |
| 75 | theorem trdeg_lt_of_surjective_not_injective_of_finiteType |
| 76 | [Algebra.FiniteType k A] (f : A →ₐ[k] B) |
| 77 | (hf : Function.Surjective f) (hni : ¬ Function.Injective f) : |
| 78 | Algebra.trdeg k B < Algebra.trdeg k A := |
| 79 | trdeg_lt_of_surjective_not_injective f hf hni trdeg_lt_aleph0_of_finiteType |
| 80 | |
| 81 | /-- A nonzero prime quotient of a finite-type domain has strictly smaller |
| 82 | transcendence degree over the coefficient field. -/ |
| 83 | theorem trdeg_quotient_lt_of_prime_ne_bot [Algebra.FiniteType k A] |
| 84 | (p : Ideal A) [p.IsPrime] (hp : p ≠ ⊥) : |
| 85 | Algebra.trdeg k (A ⧸ p) < Algebra.trdeg k A := by |
| 86 | apply trdeg_lt_of_surjective_not_injective_of_finiteType (Ideal.Quotient.mkₐ k p) |
| 87 | Ideal.Quotient.mk_surjective |
| 88 | intro hinj |
| 89 | apply hp |
| 90 | simpa using (RingHom.injective_iff_ker_eq_bot (Ideal.Quotient.mk p)).mp hinj |
| 91 | |
| 92 | /-- The strict drop also holds for the transcendence degrees of the function |
| 93 | fields of the two domains. -/ |
| 94 | theorem fractionRing_trdeg_quotient_lt_of_prime_ne_bot [Algebra.FiniteType k A] |
| 95 | (p : Ideal A) [p.IsPrime] (hp : p ≠ ⊥) : |
| 96 | Algebra.trdeg k (FractionRing (A ⧸ p)) < Algebra.trdeg k (FractionRing A) := by |
| 97 | rw [← TranscendenceDegreeTransfer.trdeg_eq_fractionRing k (A ⧸ p), ← TranscendenceDegreeTransfer.trdeg_eq_fractionRing k A] |
| 98 | exact trdeg_quotient_lt_of_prime_ne_bot p hp |
| 99 | |
| 100 | /-- The natural-number version of strict transcendence-degree drop. Finiteness |
| 101 | comes from the finite-type hypothesis, so `Cardinal.toNat` loses no information. -/ |
| 102 | theorem trdeg_toNat_quotient_lt_of_prime_ne_bot [Algebra.FiniteType k A] |
| 103 | (p : Ideal A) [p.IsPrime] (hp : p ≠ ⊥) : |
| 104 | (Algebra.trdeg k (A ⧸ p)).toNat < (Algebra.trdeg k A).toNat := |
| 105 | Cardinal.toNat_lt_toNat (trdeg_quotient_lt_of_prime_ne_bot p hp) |
| 106 | trdeg_lt_aleph0_of_finiteType |
| 107 | |
| 108 | /-- Strict inclusion of prime ideals reverses the transcendence degrees of |
| 109 | their quotient domains. The ambient finite-type ring need not be a domain. -/ |
| 110 | theorem trdeg_quotient_lt_of_prime_lt |
| 111 | {R : Type u} [CommRing R] [Algebra k R] [Algebra.FiniteType k R] |
| 112 | {p q : Ideal R} [p.IsPrime] [q.IsPrime] (hpq : p < q) : |
| 113 | Algebra.trdeg k (R ⧸ q) < Algebra.trdeg k (R ⧸ p) := by |
| 114 | apply trdeg_lt_of_surjective_not_injective_of_finiteType |
| 115 | (Ideal.Quotient.factorₐ k hpq.le) (Ideal.Quotient.factor_surjective hpq.le) |
| 116 | intro hinj |
| 117 | apply not_le_of_gt hpq |
| 118 | intro a ha |
| 119 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 120 | apply hinj |
| 121 | simpa only [Ideal.Quotient.factorₐ_apply_mk, map_zero] using |
| 122 | (Ideal.Quotient.eq_zero_iff_mem.mpr ha : Ideal.Quotient.mk q a = 0) |
| 123 | |
| 124 | /-- The natural-number dimension function obtained from transcendence degree |
| 125 | strictly decreases along strict inclusion of prime ideals. -/ |
| 126 | theorem trdeg_toNat_quotient_lt_of_prime_lt |
| 127 | {R : Type u} [CommRing R] [Algebra k R] [Algebra.FiniteType k R] |
| 128 | {p q : Ideal R} [p.IsPrime] [q.IsPrime] (hpq : p < q) : |
| 129 | (Algebra.trdeg k (R ⧸ q)).toNat < (Algebra.trdeg k (R ⧸ p)).toNat := |
| 130 | Cardinal.toNat_lt_toNat (trdeg_quotient_lt_of_prime_lt hpq) |
| 131 | trdeg_lt_aleph0_of_finiteType |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.AlgebraicGeometry.Foundations.Scheme.StrictTranscendenceDrop |