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.ComplexMultiplication.Decomposition |
| 2 | import Mathlib.FieldTheory.Normal.Closure |
| 3 | |
| 4 | /-! # Common CM Field -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexMultiplication |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # A common Galois CM coefficient field |
| 12 | |
| 13 | The compositum inside `ℂ` of the normal closures of a finite family of |
| 14 | number fields contains the images of all of their complex embeddings. |
| 15 | When the family is nonempty and consists of CM fields, this compositum is |
| 16 | CM: its restricted complex conjugation acts as conjugation under every |
| 17 | embedding, as can be checked on the generating CM subfields. |
| 18 | -/ |
| 19 | |
| 20 | open IntermediateField |
| 21 | |
| 22 | variable {ι : Type*} (E : ι → Type*) [∀ i, Field (E i)] [∀ i, Algebra ℚ (E i)] |
| 23 | |
| 24 | /-- The compositum of all conjugates of all fields in a family. -/ |
| 25 | def CommonCMField.CM.conjugateCompositum : IntermediateField ℚ ℂ := |
| 26 | ⨆ i, normalClosure ℚ (E i) ℂ |
| 27 | |
| 28 | namespace CommonCMField.CM.conjugateCompositum |
| 29 | |
| 30 | /-- Every complex embedding of a component lands in the compositum. -/ |
| 31 | theorem fieldRange_le (i : ι) (σ : E i →ₐ[ℚ] ℂ) : |
| 32 | σ.fieldRange ≤ conjugateCompositum E := |
| 33 | σ.fieldRange_le_normalClosure.trans (le_iSup (fun i => normalClosure ℚ (E i) ℂ) i) |
| 34 | |
| 35 | /-- An embedding of a component, with its codomain restricted to the common field. -/ |
| 36 | def embedding (i : ι) (σ : E i →ₐ[ℚ] ℂ) : E i →ₐ[ℚ] conjugateCompositum E := |
| 37 | σ.codRestrict _ (fun x => fieldRange_le E i σ ⟨x, rfl⟩) |
| 38 | |
| 39 | @[simp] |
| 40 | theorem embedding_coe (i : ι) (σ : E i →ₐ[ℚ] ℂ) (x : E i) : |
| 41 | (embedding E i σ x : ℂ) = σ x := rfl |
| 42 | |
| 43 | /-- Maps from the common field are determined by the original embedding images. -/ |
| 44 | theorem algHom_ext {L : Type*} [Field L] [Algebra ℚ L] |
| 45 | {f g : conjugateCompositum E →ₐ[ℚ] L} |
| 46 | (h : ∀ i σ x, f (embedding E i σ x) = g (embedding E i σ x)) : f = g := by |
| 47 | let J : IntermediateField ℚ (conjugateCompositum E) := |
| 48 | { f.toRingHom.eqLocusField g.toRingHom with |
| 49 | algebraMap_mem' := fun q => (f.commutes q).trans (g.commutes q).symm } |
| 50 | have hle : conjugateCompositum E ≤ J.map (conjugateCompositum E).val := by |
| 51 | apply iSup_le |
| 52 | intro i |
| 53 | apply normalClosure_le_iff.mpr |
| 54 | intro σ x hx |
| 55 | obtain ⟨a, rfl⟩ := hx |
| 56 | exact ⟨embedding E i σ a, h i σ a, rfl⟩ |
| 57 | ext x |
| 58 | obtain ⟨y, hy, heq⟩ := hle x.property |
| 59 | have hxy : y = x := Subtype.ext heq |
| 60 | exact hxy ▸ hy |
| 61 | |
| 62 | variable [∀ i, NumberField (E i)] |
| 63 | |
| 64 | instance normal : Normal ℚ (conjugateCompositum E) := by |
| 65 | exact IntermediateField.normal_iSup ℚ ℂ _ (h := fun i => |
| 66 | (Algebra.IsAlgebraic.isNormalClosure_normalClosure |
| 67 | (F := ℚ) (K := E i) (L := ℂ) (fun _ => IsAlgClosed.splits _)).normal) |
| 68 | |
| 69 | instance finiteDimensional [Finite ι] : FiniteDimensional ℚ (conjugateCompositum E) := |
| 70 | IntermediateField.finiteDimensional_iSup_of_finite |
| 71 | |
| 72 | instance numberField [Finite ι] : NumberField (conjugateCompositum E) := |
| 73 | NumberField.of_module_finite ℚ _ |
| 74 | |
| 75 | instance isGalois : IsGalois ℚ (conjugateCompositum E) := {} |
| 76 | |
| 77 | /-- Complex conjugation restricted to the normal compositum. -/ |
| 78 | def conjugation : Gal(conjugateCompositum E/ℚ) := |
| 79 | (Complex.conjAe.restrictScalars ℚ).restrictNormal (conjugateCompositum E) |
| 80 | |
| 81 | @[simp] |
| 82 | theorem conjugation_coe (x : conjugateCompositum E) : |
| 83 | (conjugation E x : ℂ) = star (x : ℂ) := |
| 84 | AlgEquiv.restrictNormal_commutes _ _ x |
| 85 | |
| 86 | variable [∀ i, NumberField.IsCMField (E i)] |
| 87 | |
| 88 | /-- Conjugation restricts on each generating image to its intrinsic CM conjugation. -/ |
| 89 | theorem conjugation_embedding (i : ι) (σ : E i →ₐ[ℚ] ℂ) (x : E i) : |
| 90 | conjugation E (embedding E i σ x) = |
| 91 | embedding E i σ (NumberField.IsCMField.complexConj (E i) x) := by |
| 92 | apply Subtype.ext |
| 93 | rw [conjugation_coe] |
| 94 | exact (NumberField.IsCMField.complexEmbedding_complexConj |
| 95 | (E i) σ.toRingHom x).symm |
| 96 | |
| 97 | /-- Every embedding sees the same conjugation on the compositum. -/ |
| 98 | theorem embedding_conjugation (φ : conjugateCompositum E →+* ℂ) |
| 99 | (x : conjugateCompositum E) : |
| 100 | φ (conjugation E x) = star (φ x) := by |
| 101 | let f : conjugateCompositum E →ₐ[ℚ] ℂ := |
| 102 | { φ.comp (conjugation E).toRingHom with |
| 103 | commutes' := RingHom.map_rat_algebraMap _ } |
| 104 | let g : conjugateCompositum E →ₐ[ℚ] ℂ := |
| 105 | { (starRingEnd ℂ).comp φ with |
| 106 | commutes' := RingHom.map_rat_algebraMap _ } |
| 107 | have heq : f = g := algHom_ext E (fun i σ a => by |
| 108 | change φ (conjugation E (embedding E i σ a)) = star (φ (embedding E i σ a)) |
| 109 | rw [conjugation_embedding] |
| 110 | exact NumberField.IsCMField.complexEmbedding_complexConj (E i) |
| 111 | (φ.comp (embedding E i σ).toRingHom) a) |
| 112 | exact congrArg (fun h : conjugateCompositum E →ₐ[ℚ] ℂ => h x) heq |
| 113 | |
| 114 | theorem isConj_conjugation (φ : conjugateCompositum E →+* ℂ) : |
| 115 | NumberField.ComplexEmbedding.IsConj φ (conjugation E) := by |
| 116 | ext x |
| 117 | exact (embedding_conjugation E φ x).symm |
| 118 | |
| 119 | instance isTotallyComplex [Nonempty ι] : |
| 120 | NumberField.IsTotallyComplex (conjugateCompositum E) := by |
| 121 | let i : ι := Classical.arbitrary ι |
| 122 | let σ : E i →ₐ[ℚ] ℂ := IsAlgClosed.lift |
| 123 | let : Algebra (E i) (conjugateCompositum E) := (embedding E i σ).toAlgebra |
| 124 | exact NumberField.isTotallyComplex_of_algebra (E i) _ |
| 125 | |
| 126 | /-- A nonempty compositum of conjugates of CM fields is itself CM. -/ |
| 127 | instance isCMField [Nonempty ι] : NumberField.IsCMField (conjugateCompositum E) := |
| 128 | NumberField.IsCMField.of_forall_isConj _ (isConj_conjugation E) |
| 129 | |
| 130 | end CommonCMField.CM.conjugateCompositum |
| 131 | |
| 132 | /-- A finite family of CM fields has a common finite Galois CM field inside |
| 133 | `ℂ` containing every conjugate image. The family is allowed to be empty. -/ |
| 134 | theorem CommonCMField.CM.exists_common_galois_cm_field [Finite ι] [∀ i, NumberField (E i)] |
| 135 | [∀ i, NumberField.IsCMField (E i)] : |
| 136 | ∃ K : IntermediateField ℚ ℂ, NumberField K ∧ IsGalois ℚ K ∧ |
| 137 | NumberField.IsCMField K ∧ ∀ i (σ : E i →ₐ[ℚ] ℂ), σ.fieldRange ≤ K := by |
| 138 | rcases isEmpty_or_nonempty ι with h | h |
| 139 | · have := h |
| 140 | let F := CyclotomicField 4 ℚ |
| 141 | have : IsCyclotomicExtension {4} ℚ F := CyclotomicField.isCyclotomicExtension 4 ℚ |
| 142 | have : NumberField.IsCMField F := |
| 143 | IsCyclotomicExtension.Rat.isCMField F ⟨4, Set.mem_singleton 4, by norm_num⟩ |
| 144 | let K := CommonCMField.CM.conjugateCompositum (fun _ : Unit => F) |
| 145 | refine ⟨K, inferInstance, inferInstance, inferInstance, ?_⟩ |
| 146 | exact fun i => isEmptyElim i |
| 147 | · have := h |
| 148 | exact ⟨CommonCMField.CM.conjugateCompositum E, inferInstance, inferInstance, inferInstance, |
| 149 | CommonCMField.CM.conjugateCompositum.fieldRange_le E⟩ |
| 150 | |
| 151 | variable {U : Type*} [AddCommGroup U] [Module ℚ U] |
| 152 | variable {H : WeightOne.CM.WeightOneHodgeStructure U} (D : Decomposition.CM.CMDecomposition H) |
| 153 | |
| 154 | /-- The actual CM decomposition admits a common Galois CM coefficient field, |
| 155 | even when its summands have different fields or there are no summands. -/ |
| 156 | theorem Decomposition.CM.CMDecomposition.exists_common_galois_cm_field : |
| 157 | ∃ K : IntermediateField ℚ ℂ, NumberField K ∧ IsGalois ℚ K ∧ |
| 158 | NumberField.IsCMField K ∧ |
| 159 | ∀ i (σ : (D.component i).field →ₐ[ℚ] ℂ), σ.fieldRange ≤ K := by |
| 160 | let componentNumberFields : ∀ i, NumberField (D.component i).field := |
| 161 | fun i => (D.component i).cm.numberField |
| 162 | let componentCMFields : ∀ i, NumberField.IsCMField (D.component i).field := |
| 163 | fun i => (D.component i).cm.cmField |
| 164 | exact CommonCMField.CM.exists_common_galois_cm_field (fun i => (D.component i).field) |
| 165 | |
| 166 | end |
| 167 | |
| 168 | end OAI.AlgebraicGeometry.ComplexMultiplication |