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.CMExtraction.Definitions |
| 2 | import Mathlib.FieldTheory.Galois.GaloisClosure |
| 3 | import Mathlib.FieldTheory.AlgebraicClosure |
| 4 | |
| 5 | /-! # Coefficients -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Coefficients.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Finite coefficient fields for HeckeCycles |
| 13 | |
| 14 | A finite collection of tensors with algebraic coefficients is defined over |
| 15 | one finite Galois field containing E. The field is constructed by adjoining |
| 16 | the finitely many coefficients and taking the normal closure. For a projector |
| 17 | defined over that field, the complex range is the scalar span of the actual |
| 18 | coefficient-field range. Neither assertion assumes CM extraction. |
| 19 | -/ |
| 20 | |
| 21 | open scoped Classical TensorProduct |
| 22 | open OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Definitions.CM |
| 23 | |
| 24 | /-- The actual subfield of complex numbers algebraic over ℚ. -/ |
| 25 | abbrev algebraicField : IntermediateField ℚ ℂ := algebraicClosure ℚ ℂ |
| 26 | |
| 27 | instance algebraicField_isAlgClosed : IsAlgClosed algebraicField := |
| 28 | (algebraicClosure.isAlgClosure ℚ ℂ).isAlgClosed |
| 29 | |
| 30 | instance algebraicField_isAlgebraic : Algebra.IsAlgebraic ℚ algebraicField := |
| 31 | algebraicClosure.isAlgebraic ℚ ℂ |
| 32 | |
| 33 | variable (E : IntermediateField ℚ ℂ) |
| 34 | [NumberField E] [IsGalois ℚ E] |
| 35 | |
| 36 | /-- One finite Galois coefficient field, built from a finite algebraic set. -/ |
| 37 | def fieldFor (E : IntermediateField ℚ ℂ) [NumberField E] |
| 38 | (s : Finset ℂ) (hs : ∀ z ∈ s, IsAlgebraic ℚ z) : |
| 39 | FiniteGaloisIntermediateField ℚ ℂ := by |
| 40 | let L := IntermediateField.adjoin ℚ (s : Set ℂ) |
| 41 | letI : FiniteDimensional ℚ L := |
| 42 | IntermediateField.finiteDimensional_adjoin (fun z hz => (hs z hz).isIntegral) |
| 43 | let B := E ⊔ L |
| 44 | letI : FiniteDimensional ℚ B := inferInstance |
| 45 | let J := IntermediateField.normalClosure ℚ B ℂ |
| 46 | let hJ : Normal ℚ J := |
| 47 | (Algebra.IsAlgebraic.isNormalClosure_normalClosure |
| 48 | (F := ℚ) (K := B) (L := ℂ) (fun _ => IsAlgClosed.splits _)).normal |
| 49 | exact { |
| 50 | toIntermediateField := J |
| 51 | finiteDimensional := inferInstance |
| 52 | isGalois := { |
| 53 | to_isSeparable := inferInstance |
| 54 | to_normal := hJ } } |
| 55 | |
| 56 | omit [IsGalois ℚ E] in |
| 57 | theorem fieldFor_contains (s : Finset ℂ) (hs : ∀ z ∈ s, IsAlgebraic ℚ z) : |
| 58 | E ≤ (fieldFor E s hs).toIntermediateField ∧ |
| 59 | ∀ z ∈ s, z ∈ (fieldFor E s hs).toIntermediateField := by |
| 60 | refine ⟨le_sup_left.trans (IntermediateField.le_normalClosure |
| 61 | (E ⊔ IntermediateField.adjoin ℚ (s : Set ℂ))), ?_⟩ |
| 62 | intro z hz |
| 63 | apply IntermediateField.le_normalClosure (E ⊔ IntermediateField.adjoin ℚ (s : Set ℂ)) |
| 64 | exact (show IntermediateField.adjoin ℚ (s : Set ℂ) ≤ |
| 65 | E ⊔ IntermediateField.adjoin ℚ (s : Set ℂ) from le_sup_right) |
| 66 | (IntermediateField.subset_adjoin ℚ _ hz) |
| 67 | |
| 68 | variable {M : Type*} [AddCommGroup M] [Module ℚ M] |
| 69 | |
| 70 | omit [NumberField E] [IsGalois ℚ E] in |
| 71 | /-- Tensor induction records the actual finite coefficients needed by a vector. -/ |
| 72 | theorem finite_tensor_coefficients |
| 73 | (A : IntermediateField ℚ ℂ) [hA : Algebra.IsAlgebraic ℚ A] |
| 74 | (x : A ⊗[ℚ] M) : |
| 75 | ∃ s : Finset ℂ, (∀ z ∈ s, IsAlgebraic ℚ z) ∧ |
| 76 | ∀ K : IntermediateField ℚ ℂ, (∀ z ∈ s, z ∈ K) → |
| 77 | ∃ y : K ⊗[ℚ] M, ComplexMultiplication.EmbeddingCoefficientField.CM.coefficientInclusion K M y = ComplexMultiplication.EmbeddingCoefficientField.CM.coefficientInclusion A M x := by |
| 78 | induction x using TensorProduct.inductionOn with |
| 79 | | tmul a m => |
| 80 | refine ⟨{(a : ℂ)}, ?_, ?_⟩ |
| 81 | · intro z hz |
| 82 | have hz' : z = (a : ℂ) := Finset.mem_singleton.mp hz |
| 83 | rw [hz'] |
| 84 | exact IsAlgebraic.algHom A.val (hA.isAlgebraic a) |
| 85 | · intro K hK |
| 86 | exact ⟨(⟨(a : ℂ), hK _ (Finset.mem_singleton_self _)⟩ : K) ⊗ₜ[ℚ] m, rfl⟩ |
| 87 | | add x y hx hy => |
| 88 | obtain ⟨sx, hsx, hxlift⟩ := hx |
| 89 | obtain ⟨sy, hsy, hylift⟩ := hy |
| 90 | refine ⟨sx ∪ sy, ?_, ?_⟩ |
| 91 | · intro z hz |
| 92 | exact (Finset.mem_union.mp hz).elim (hsx z) (hsy z) |
| 93 | · intro K hK |
| 94 | obtain ⟨xK, hxK⟩ := hxlift K (fun z hz => hK z (Finset.mem_union_left _ hz)) |
| 95 | obtain ⟨yK, hyK⟩ := hylift K (fun z hz => hK z (Finset.mem_union_right _ hz)) |
| 96 | exact ⟨xK + yK, by rw [map_add, map_add, hxK, hyK]⟩ |
| 97 | |
| 98 | omit [IsGalois ℚ E] in |
| 99 | /-- All algebraic projector tensors can be placed over the same finite field. -/ |
| 100 | theorem finite_galois_field_for_tensors |
| 101 | (A : IntermediateField ℚ ℂ) [Algebra.IsAlgebraic ℚ A] |
| 102 | {I : Type*} [Fintype I] (x : I → A ⊗[ℚ] M) : |
| 103 | ∃ K : IntermediateField ℚ ℂ, |
| 104 | NumberField K ∧ IsGalois ℚ K ∧ E ≤ K ∧ |
| 105 | ∀ i, ∃ y : K ⊗[ℚ] M, ComplexMultiplication.EmbeddingCoefficientField.CM.coefficientInclusion K M y = ComplexMultiplication.EmbeddingCoefficientField.CM.coefficientInclusion A M (x i) := by |
| 106 | choose s hs hlift using fun i => finite_tensor_coefficients A (x i) |
| 107 | let total := Finset.univ.biUnion s |
| 108 | have htotal : ∀ z ∈ total, IsAlgebraic ℚ z := by |
| 109 | intro z hz |
| 110 | obtain ⟨i, _, hi⟩ := Finset.mem_biUnion.mp hz |
| 111 | exact hs i z hi |
| 112 | let K := fieldFor E total htotal |
| 113 | have hcontains := fieldFor_contains E total htotal |
| 114 | refine ⟨K.toIntermediateField, NumberField.of_module_finite ℚ _, K.isGalois, |
| 115 | hcontains.1, ?_⟩ |
| 116 | intro i |
| 117 | apply hlift i K.toIntermediateField |
| 118 | intro z hz |
| 119 | exact hcontains.2 z (Finset.mem_biUnion.mpr ⟨i, Finset.mem_univ _, hz⟩) |
| 120 | |
| 121 | omit [NumberField E] in |
| 122 | theorem all_embeddings_in_field [NumberField.IsCMField E] |
| 123 | (K : IntermediateField ℚ ℂ) (hEK : E ≤ K) : |
| 124 | ∀ τ : E →ₐ[ℚ] ℂ, τ.fieldRange ≤ K := by |
| 125 | intro τ |
| 126 | obtain ⟨g, rfl⟩ := (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).surjective τ |
| 127 | rintro z ⟨a, rfl⟩ |
| 128 | exact hEK (g a).property |
| 129 | |
| 130 | /-- Restriction of scalar conjugation to E, expressed through actual embeddings. -/ |
| 131 | def coefficientRestriction [NumberField.IsCMField E] |
| 132 | (K : IntermediateField ℚ ℂ) |
| 133 | (hK : ∀ τ : E →ₐ[ℚ] ℂ, τ.fieldRange ≤ K) (σ : Gal(K/ℚ)) : Gal(E/ℚ) := |
| 134 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).symm |
| 135 | (ComplexMultiplication.EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK σ (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E 1)) |
| 136 | |
| 137 | omit [NumberField E] in |
| 138 | theorem coefficientRestriction_spec [NumberField.IsCMField E] |
| 139 | (K : IntermediateField ℚ ℂ) |
| 140 | (hK : ∀ τ : E →ₐ[ℚ] ℂ, τ.fieldRange ≤ K) (σ : Gal(K/ℚ)) : |
| 141 | ComplexMultiplication.EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK σ (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E 1) = |
| 142 | ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E (coefficientRestriction E K hK σ) := |
| 143 | ((ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).apply_symm_apply _).symm |
| 144 | |
| 145 | omit [NumberField E] in |
| 146 | theorem coefficientRestriction_one [NumberField.IsCMField E] |
| 147 | (K : IntermediateField ℚ ℂ) |
| 148 | (hK : ∀ τ : E →ₐ[ℚ] ℂ, τ.fieldRange ≤ K) : |
| 149 | coefficientRestriction E K hK 1 = 1 := by |
| 150 | apply (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).injective |
| 151 | rw [← coefficientRestriction_spec, ComplexMultiplication.EmbeddingCoefficientField.CM.galoisCoefficientEmbedding_one] |
| 152 | |
| 153 | omit [NumberField E] [IsGalois ℚ E] in |
| 154 | theorem scalarConjugate_identity (K : IntermediateField ℚ ℂ) |
| 155 | (x : K ⊗[ℚ] M) : ComplexMultiplication.ScalarDescent.CM.scalarConjugate ℚ K M 1 x = x := by |
| 156 | induction x using TensorProduct.inductionOn with |
| 157 | | tmul a m => rfl |
| 158 | | add x y hx hy => simp only [map_add, hx, hy] |
| 159 | |
| 160 | omit [NumberField E] [IsGalois ℚ E] in |
| 161 | /-- The range of the extended operator is the span of its coefficient-field range. |
| 162 | This gives CMExtraction's coefficient-space identification by construction. -/ |
| 163 | theorem extended_range_eq_conjugateSpace |
| 164 | (K : IntermediateField ℚ ℂ) |
| 165 | (x : K ⊗[ℚ] (M →ₗ[ℚ] M)) : |
| 166 | LinearMap.range (ComplexMultiplication.Hodge.MapDescent.CM.complexHomOfCoefficients K M M x) = |
| 167 | CMExtraction.Definitions.CM.conjugateSpace K (LinearMap.range (ComplexMultiplication.HomBaseChange.CM.homBaseChange K M M x)) 1 := by |
| 168 | let Q := ComplexMultiplication.HomBaseChange.CM.homBaseChange K M M x |
| 169 | let P := ComplexMultiplication.Hodge.MapDescent.CM.complexHomOfCoefficients K M M x |
| 170 | let S := CMExtraction.Definitions.CM.conjugateSpace K (LinearMap.range Q) 1 |
| 171 | apply le_antisymm |
| 172 | · rintro _ ⟨w, rfl⟩ |
| 173 | change P w ∈ S |
| 174 | induction w using TensorProduct.inductionOn with |
| 175 | | add y z hy hz => simpa only [map_add] using S.add_mem hy hz |
| 176 | | tmul a m => |
| 177 | have hmem : ComplexMultiplication.EmbeddingCoefficientField.CM.coefficientInclusion K M (Q ((1 : K) ⊗ₜ[ℚ] m)) ∈ S := by |
| 178 | apply Submodule.subset_span |
| 179 | exact ⟨Q ((1 : K) ⊗ₜ[ℚ] m), ⟨(1 : K) ⊗ₜ[ℚ] m, rfl⟩, |
| 180 | by rw [scalarConjugate_identity]⟩ |
| 181 | have heq := ComplexMultiplication.Hodge.MapDescent.CM.complexHomOfCoefficients_apply_inclusion K M M x ((1 : K) ⊗ₜ[ℚ] m) |
| 182 | simp only [ComplexMultiplication.EmbeddingCoefficientField.CM.coefficientInclusion_tmul, IntermediateField.coe_one] at heq |
| 183 | have hm : P ((1 : ℂ) ⊗ₜ[ℚ] m) ∈ S := heq.symm ▸ hmem |
| 184 | have ha := S.smul_mem a hm |
| 185 | simpa only [← map_smul, TensorProduct.smul_tmul', smul_eq_mul, mul_one] using ha |
| 186 | · apply Submodule.span_le.mpr |
| 187 | rintro z ⟨y, ⟨w, rfl⟩, rfl⟩ |
| 188 | rw [scalarConjugate_identity] |
| 189 | exact ⟨ComplexMultiplication.EmbeddingCoefficientField.CM.coefficientInclusion K M w, ComplexMultiplication.Hodge.MapDescent.CM.complexHomOfCoefficients_apply_inclusion K M M x w⟩ |
| 190 | |
| 191 | end |
| 192 | |
| 193 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Coefficients.CM |