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.NumberTheory.Quaternion.Arithmetic.PrimeField |
| 2 | import Mathlib.LinearAlgebra.Matrix.ToLin |
| 3 | import OAI.NumberTheory.Quaternion.Arithmetic.TangentCone |
| 4 | |
| 5 | /-! # Regular Matrix Embedding -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.Quaternion.Arithmetic.RegularMatrixEmbedding |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! A finite-dimensional topological algebra embeds as a closed algebra |
| 14 | of matrices over an extension of its scalar field. This represents an |
| 15 | entire residue-prime block in one normed matrix algebra. -/ |
| 16 | |
| 17 | open scoped Classical |
| 18 | open _root_.Topology |
| 19 | |
| 20 | section |
| 21 | |
| 22 | variable {κ K A : Type*} [Field κ] [Field K] [Algebra κ K] |
| 23 | [Ring A] [Algebra κ A] [FiniteDimensional κ A] |
| 24 | |
| 25 | def regularMatrixEmbedding : |
| 26 | A →ₐ[κ] Matrix (Fin (Module.finrank κ A)) (Fin (Module.finrank κ A)) K := |
| 27 | (Algebra.ofId κ K).mapMatrix.comp (Algebra.leftMulMatrix (Module.finBasis κ A)) |
| 28 | |
| 29 | theorem regularMatrixEmbedding_injective : Function.Injective (regularMatrixEmbedding (κ := κ) (K := K) (A := A)) := by |
| 30 | intro x y hxy |
| 31 | apply Algebra.leftMulMatrix_injective (Module.finBasis κ A) |
| 32 | apply Matrix.map_injective (algebraMap κ K).injective |
| 33 | exact hxy |
| 34 | |
| 35 | end |
| 36 | |
| 37 | variable {κ K A : Type*} [NontriviallyNormedField κ] [CompleteSpace κ] |
| 38 | [NormedField K] [NormedAlgebra κ K] |
| 39 | [Ring A] [Algebra κ A] [FiniteDimensional κ A] |
| 40 | [TopologicalSpace A] [IsTopologicalRing A] [T2Space A] [ContinuousSMul κ A] |
| 41 | |
| 42 | theorem regularMatrixEmbedding_isClosedEmbedding : |
| 43 | IsClosedEmbedding (regularMatrixEmbedding (κ := κ) (K := K) (A := A)) := |
| 44 | LinearMap.isClosedEmbedding_of_injective |
| 45 | (f := (regularMatrixEmbedding (κ := κ) (K := K) (A := A)).toLinearMap) |
| 46 | (LinearMap.ker_eq_bot.mpr regularMatrixEmbedding_injective) |
| 47 | |
| 48 | end |
| 49 | |
| 50 | /-! A closed injective linear representation preserves the actual |
| 51 | tangent cone and tangent span. Finite-dimensionality makes a linear |
| 52 | left inverse continuous. -/ |
| 53 | |
| 54 | open scoped Classical |
| 55 | open Set Filter _root_.Topology |
| 56 | |
| 57 | section |
| 58 | |
| 59 | theorem tangentCone_subset_closed_submodule_at |
| 60 | {κ E : Type*} [Field κ] [AddCommGroup E] [Module κ E] [TopologicalSpace E] |
| 61 | (W : Submodule κ E) (hW : IsClosed (W : Set E)) {s : Set E} (hs : s ⊆ W) |
| 62 | {x : E} (hx : x ∈ W) : tangentConeAt κ s x ⊆ (W : Set E) := by |
| 63 | intro y hy |
| 64 | obtain ⟨α, l, hl, c, d, hd, hds, hcd⟩ := exists_fun_of_mem_tangentConeAt hy |
| 65 | apply hW.mem_of_tendsto hcd |
| 66 | filter_upwards [hds] with a ha |
| 67 | have hm : d a ∈ W := by simpa only [add_sub_cancel_left] using W.sub_mem (hs ha) hx |
| 68 | exact W.smul_mem (c a) hm |
| 69 | |
| 70 | variable {κ E B : Type*} [NontriviallyNormedField κ] [CompleteSpace κ] |
| 71 | [AddCommGroup E] [Module κ E] [TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousSMul κ E] |
| 72 | [AddCommGroup B] [Module κ B] [TopologicalSpace B] [IsTopologicalAddGroup B] [ContinuousSMul κ B] |
| 73 | [T2Space B] [FiniteDimensional κ B] |
| 74 | |
| 75 | theorem tangentCone_image_of_closed_linear_embedding |
| 76 | (f : E →L[κ] B) (hf : IsClosedEmbedding f) (s : Set E) (x : E) : |
| 77 | tangentConeAt κ (f '' s) (f x) = f '' tangentConeAt κ s x := by |
| 78 | apply Subset.antisymm |
| 79 | · intro y hy |
| 80 | obtain ⟨P, hP⟩ := f.toLinearMap.exists_leftInverse_of_injective (LinearMap.ker_eq_bot.mpr hf.injective) |
| 81 | let p : B →L[κ] E := P.toContinuousLinearMap |
| 82 | have hp (a : E) : p (f a) = a := LinearMap.congr_fun hP a |
| 83 | have himage : p '' (f '' s) = s := by |
| 84 | simp only [image_image, hp, image_id'] |
| 85 | have ht := TangentCone.continuousLinearMap_mapsTo_tangentCone p (f '' s) (f x) hy |
| 86 | rw [himage, hp] at ht |
| 87 | have hyr : y ∈ f.toLinearMap.range := |
| 88 | tangentCone_subset_closed_submodule_at f.toLinearMap.range hf.isClosed_range |
| 89 | (fun _ h => by obtain ⟨a, _, rfl⟩ := h; exact ⟨a, rfl⟩) ⟨x, rfl⟩ hy |
| 90 | obtain ⟨a, ha⟩ := hyr |
| 91 | refine ⟨p y, ht, ?_⟩ |
| 92 | rw [← ha] |
| 93 | exact congrArg f (hp a) |
| 94 | · rintro y ⟨a, ha, rfl⟩ |
| 95 | exact TangentCone.continuousLinearMap_mapsTo_tangentCone f s x ha |
| 96 | |
| 97 | theorem tangentSpan_image_of_closed_linear_embedding |
| 98 | (f : E →L[κ] B) (hf : IsClosedEmbedding f) (s : Set E) (x : E) : |
| 99 | Submodule.span κ (tangentConeAt κ (f '' s) (f x)) = |
| 100 | (Submodule.span κ (tangentConeAt κ s x)).map f.toLinearMap := by |
| 101 | rw [tangentCone_image_of_closed_linear_embedding f hf, Submodule.map_span] |
| 102 | rfl |
| 103 | |
| 104 | theorem tangentSpan_image_mem_iff |
| 105 | (f : E →L[κ] B) (hf : IsClosedEmbedding f) (s : Set E) (x a : E) : |
| 106 | f a ∈ Submodule.span κ (tangentConeAt κ (f '' s) (f x)) ↔ |
| 107 | a ∈ Submodule.span κ (tangentConeAt κ s x) := by |
| 108 | rw [tangentSpan_image_of_closed_linear_embedding f hf, Submodule.mem_map] |
| 109 | constructor |
| 110 | · rintro ⟨b, hb, hba⟩ |
| 111 | exact hf.injective hba ▸ hb |
| 112 | · intro ha |
| 113 | exact ⟨a, ha, rfl⟩ |
| 114 | |
| 115 | end |
| 116 | |
| 117 | variable {κ A B : Type*} [NontriviallyNormedField κ] [CompleteSpace κ] |
| 118 | [Ring A] [Algebra κ A] [TopologicalSpace A] [IsTopologicalRing A] |
| 119 | [ContinuousSMul κ A] [FiniteDimensional κ A] [T2Space A] |
| 120 | [Ring B] [Algebra κ B] [TopologicalSpace B] [IsTopologicalRing B] |
| 121 | [ContinuousSMul κ B] [T2Space B] [FiniteDimensional κ B] |
| 122 | |
| 123 | theorem algebraHom_tangentSpan_image (f : A →ₐ[κ] B) (hf : IsClosedEmbedding f) (s : Set A) : |
| 124 | Submodule.span κ (tangentConeAt κ (f '' s) 1) = |
| 125 | (Submodule.span κ (tangentConeAt κ s 1)).map f.toLinearMap := by |
| 126 | let fc : A →L[κ] B := f.toLinearMap.toContinuousLinearMap |
| 127 | have ht := tangentSpan_image_of_closed_linear_embedding fc hf s 1 |
| 128 | change Submodule.span κ (tangentConeAt κ (f '' s) (f 1)) = |
| 129 | (Submodule.span κ (tangentConeAt κ s 1)).map f.toLinearMap at ht |
| 130 | simpa only [map_one] using ht |
| 131 | |
| 132 | theorem algebraHom_tangentSpan_image_mem_iff |
| 133 | (f : A →ₐ[κ] B) (hf : IsClosedEmbedding f) (s : Set A) (a : A) : |
| 134 | f a ∈ Submodule.span κ (tangentConeAt κ (f '' s) 1) ↔ |
| 135 | a ∈ Submodule.span κ (tangentConeAt κ s 1) := by |
| 136 | rw [algebraHom_tangentSpan_image f hf, Submodule.mem_map] |
| 137 | constructor |
| 138 | · rintro ⟨b, hb, hba⟩ |
| 139 | exact hf.injective hba ▸ hb |
| 140 | · intro ha |
| 141 | exact ⟨a, ha, rfl⟩ |
| 142 | |
| 143 | end |
| 144 | |
| 145 | end OAI.NumberTheory.Quaternion.Arithmetic.RegularMatrixEmbedding |