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.RepresentationTheory.Weil.AdelicSplitting.Characters |
| 2 | import OAI.RepresentationTheory.Weil.AdelicSplitting.CentralProduct |
| 3 | |
| 4 | /-! # Integral -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting.Integral.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Integral orders, actual restricted unitary groups, and rational diagonal |
| 11 | maps. The order O_v[δ] suffices: finitely many nonmaximal or ramified orders |
| 12 | do not change the underlying restricted-product group. -/ |
| 13 | |
| 14 | open scoped _root_.NumberField Classical |
| 15 | open Filter IsDedekindDomain |
| 16 | |
| 17 | section Matrices |
| 18 | variable {R G I : Type*} [CommRing R] [Group G] [Fintype I] [DecidableEq I] |
| 19 | |
| 20 | def integralMatrixGroup (ρ : G →* Matrix I I R) (S : Subring R) : Subgroup G where |
| 21 | carrier := {g | (∀ i j, ρ g i j ∈ S) ∧ ∀ i j, ρ g⁻¹ i j ∈ S} |
| 22 | one_mem' := by |
| 23 | constructor <;> intro i j <;> by_cases h : i = j <;> simp [h] |
| 24 | mul_mem' := by |
| 25 | intro g h hg hh |
| 26 | constructor |
| 27 | · intro i j |
| 28 | rw [map_mul, Matrix.mul_apply] |
| 29 | exact S.sum_mem fun t _ => S.mul_mem (hg.1 i t) (hh.1 t j) |
| 30 | · intro i j |
| 31 | rw [mul_inv_rev, map_mul, Matrix.mul_apply] |
| 32 | exact S.sum_mem fun t _ => S.mul_mem (hh.2 i t) (hg.2 t j) |
| 33 | inv_mem' := by |
| 34 | intro g hg |
| 35 | exact ⟨hg.2, by simpa only [inv_inv] using hg.1⟩ |
| 36 | |
| 37 | end Matrices |
| 38 | |
| 39 | variable (F : Type*) [Field F] [NumberField F] |
| 40 | |
| 41 | def localIntegerRing : (v : ArchimedeanAdeles.Construction.Places F) → Subring (ArchimedeanAdeles.Construction.Completion F v) |
| 42 | | Sum.inl _ => ⊤ |
| 43 | | Sum.inr v => (v.adicCompletionIntegers F).toSubring |
| 44 | |
| 45 | def quadraticGenerator {R : Type*} [CommRing R] (d : R) : UnitaryBase.Construction.Quadratic R d := ⟨0, 1⟩ |
| 46 | |
| 47 | def quadraticOrder (d : F) (v : ArchimedeanAdeles.Construction.Places F) : Subring (ArchimedeanAdeles.Construction.localQuadratic F d v) := |
| 48 | (localIntegerRing F v).map (algebraMap (ArchimedeanAdeles.Construction.Completion F v) (ArchimedeanAdeles.Construction.localQuadratic F d v)) ⊔ |
| 49 | Subring.closure {quadraticGenerator (ArchimedeanAdeles.Construction.rationalScalar F v d)} |
| 50 | |
| 51 | theorem quadraticOrder_of_coeff (d : F) (v : ArchimedeanAdeles.Construction.Places F) (z : ArchimedeanAdeles.Construction.localQuadratic F d v) |
| 52 | (hr : z.re ∈ localIntegerRing F v) (hi : z.im ∈ localIntegerRing F v) : |
| 53 | z ∈ quadraticOrder F d v := by |
| 54 | have hs (a : ArchimedeanAdeles.Construction.Completion F v) (ha : a ∈ localIntegerRing F v) : |
| 55 | algebraMap (ArchimedeanAdeles.Construction.Completion F v) (ArchimedeanAdeles.Construction.localQuadratic F d v) a ∈ quadraticOrder F d v := by |
| 56 | have hle : (localIntegerRing F v).map |
| 57 | (algebraMap (ArchimedeanAdeles.Construction.Completion F v) (ArchimedeanAdeles.Construction.localQuadratic F d v)) ≤ quadraticOrder F d v := le_sup_left |
| 58 | exact hle (Subring.mem_map.mpr ⟨a, ha, rfl⟩) |
| 59 | have hd : quadraticGenerator (ArchimedeanAdeles.Construction.rationalScalar F v d) ∈ quadraticOrder F d v := by |
| 60 | have hle : Subring.closure {quadraticGenerator (ArchimedeanAdeles.Construction.rationalScalar F v d)} ≤ |
| 61 | quadraticOrder F d v := le_sup_right |
| 62 | exact hle (Subring.subset_closure (Set.mem_singleton _)) |
| 63 | have hz : z = algebraMap (ArchimedeanAdeles.Construction.Completion F v) (ArchimedeanAdeles.Construction.localQuadratic F d v) z.re + |
| 64 | algebraMap (ArchimedeanAdeles.Construction.Completion F v) (ArchimedeanAdeles.Construction.localQuadratic F d v) z.im * |
| 65 | quadraticGenerator (ArchimedeanAdeles.Construction.rationalScalar F v d) := by |
| 66 | apply QuadraticAlgebra.ext <;> |
| 67 | simp [quadraticGenerator, QuadraticAlgebra.re_mul, QuadraticAlgebra.im_mul] |
| 68 | rw [hz] |
| 69 | exact (quadraticOrder F d v).add_mem (hs z.re hr) |
| 70 | ((quadraticOrder F d v).mul_mem (hs z.im hi) hd) |
| 71 | |
| 72 | theorem rationalScalar_integral (a : F) : |
| 73 | ∀ᶠ v in cofinite, ArchimedeanAdeles.Construction.rationalScalar F v a ∈ localIntegerRing F v := by |
| 74 | have h := (algebraMap F (ArchimedeanAdeles.Construction.FiniteAdeles F) a).property |
| 75 | rw [Filter.eventually_cofinite] at h ⊢ |
| 76 | apply (h.image (Sum.inr : HeightOneSpectrum (𝓞 F) → ArchimedeanAdeles.Construction.Places F)).subset |
| 77 | intro v hv |
| 78 | cases v with |
| 79 | | inl w => exact False.elim (hv (Subring.mem_top _)) |
| 80 | | inr w => exact ⟨w, hv, rfl⟩ |
| 81 | |
| 82 | def rationalQuadraticLocal (d : F) (v : ArchimedeanAdeles.Construction.Places F) : UnitaryBase.Construction.Quadratic F d →+* ArchimedeanAdeles.Construction.localQuadratic F d v := |
| 83 | UnitaryBase.Construction.quadraticBaseChange (ArchimedeanAdeles.Construction.rationalScalar F v) d |
| 84 | |
| 85 | theorem rationalQuadraticLocal_integral (d : F) (z : UnitaryBase.Construction.Quadratic F d) : |
| 86 | ∀ᶠ v in cofinite, rationalQuadraticLocal F d v z ∈ quadraticOrder F d v := by |
| 87 | filter_upwards [rationalScalar_integral F z.re, rationalScalar_integral F z.im] with v hr hi |
| 88 | exact quadraticOrder_of_coeff F d v _ hr hi |
| 89 | |
| 90 | variable {n : ℕ} {d : F} (H : Matrix (Fin n) (Fin n) (UnitaryBase.Construction.Quadratic F d)) |
| 91 | |
| 92 | abbrev localizedForm (v : ArchimedeanAdeles.Construction.Places F) := H.map (rationalQuadraticLocal F d v) |
| 93 | abbrev LocalUnitary (v : ArchimedeanAdeles.Construction.Places F) := UnitaryBase.Construction.Unitary (localizedForm F H v) |
| 94 | |
| 95 | def localUnitaryIntegral (v : ArchimedeanAdeles.Construction.Places F) : Subgroup (LocalUnitary F H v) := |
| 96 | integralMatrixGroup |
| 97 | ((Units.coeHom _).comp (UnitaryBase.Construction.unitaryMatrix (localizedForm F H v))) (quadraticOrder F d v) |
| 98 | |
| 99 | def rationalUnitaryLocal (v : ArchimedeanAdeles.Construction.Places F) : UnitaryBase.Construction.Unitary H →* LocalUnitary F H v := |
| 100 | UnitaryBase.Construction.unitaryBaseChange (rationalQuadraticLocal F d v) |
| 101 | (UnitaryBase.Construction.quadraticBaseChange_star (ArchimedeanAdeles.Construction.rationalScalar F v) d) H |
| 102 | |
| 103 | theorem rationalUnitaryLocal_integral (g : UnitaryBase.Construction.Unitary H) : |
| 104 | ∀ᶠ v in cofinite, rationalUnitaryLocal F H v g ∈ localUnitaryIntegral F H v := by |
| 105 | have hv : ∀ᶠ v in cofinite, ∀ i j, |
| 106 | rationalQuadraticLocal F d v (g.val.val i j) ∈ quadraticOrder F d v := |
| 107 | Filter.eventually_all.mpr fun i => Filter.eventually_all.mpr fun j => |
| 108 | rationalQuadraticLocal_integral F d (g.val.val i j) |
| 109 | have hi : ∀ᶠ v in cofinite, ∀ i j, |
| 110 | rationalQuadraticLocal F d v ((g⁻¹).val.val i j) ∈ quadraticOrder F d v := |
| 111 | Filter.eventually_all.mpr fun i => Filter.eventually_all.mpr fun j => |
| 112 | rationalQuadraticLocal_integral F d ((g⁻¹).val.val i j) |
| 113 | filter_upwards [hv, hi] with v hv hi |
| 114 | refine ⟨hv, ?_⟩ |
| 115 | intro i j |
| 116 | change ((rationalUnitaryLocal F H v g)⁻¹).val.val i j ∈ quadraticOrder F d v |
| 117 | rw [← map_inv] |
| 118 | exact hi i j |
| 119 | |
| 120 | abbrev AdelicUnitary := RestrictedLimits.Construction.RestrictedGroup (localUnitaryIntegral F H) |
| 121 | |
| 122 | def rationalUnitary : UnitaryBase.Construction.Unitary H →* AdelicUnitary F H := |
| 123 | RestrictedLimits.Construction.diagonalMap (localUnitaryIntegral F H) (rationalUnitaryLocal F H) |
| 124 | (rationalUnitaryLocal_integral F H) |
| 125 | |
| 126 | @[simp] theorem rationalUnitary_apply (g : UnitaryBase.Construction.Unitary H) (v : ArchimedeanAdeles.Construction.Places F) : |
| 127 | rationalUnitary F H g v = rationalUnitaryLocal F H v g := rfl |
| 128 | |
| 129 | variable {m : ℕ} (K : Matrix (Fin m) (Fin m) (UnitaryBase.Construction.Quadratic F d)) |
| 130 | |
| 131 | def localPairIntegral (v : ArchimedeanAdeles.Construction.Places F) : |
| 132 | Subgroup (LocalUnitary F H v × LocalUnitary F K v) := |
| 133 | (localUnitaryIntegral F H v).prod (localUnitaryIntegral F K v) |
| 134 | |
| 135 | abbrev AdelicDualPair := RestrictedLimits.Construction.RestrictedGroup (localPairIntegral F H K) |
| 136 | |
| 137 | def rationalPairLocal (v : ArchimedeanAdeles.Construction.Places F) : |
| 138 | UnitaryBase.Construction.Unitary H × UnitaryBase.Construction.Unitary K →* LocalUnitary F H v × LocalUnitary F K v := |
| 139 | (rationalUnitaryLocal F H v).prodMap (rationalUnitaryLocal F K v) |
| 140 | |
| 141 | theorem rationalPairLocal_integral (g : UnitaryBase.Construction.Unitary H × UnitaryBase.Construction.Unitary K) : |
| 142 | ∀ᶠ v in cofinite, rationalPairLocal F H K v g ∈ localPairIntegral F H K v := by |
| 143 | filter_upwards [rationalUnitaryLocal_integral F H g.1, |
| 144 | rationalUnitaryLocal_integral F K g.2] with v h₁ h₂ |
| 145 | exact ⟨h₁, h₂⟩ |
| 146 | |
| 147 | def rationalPair : UnitaryBase.Construction.Unitary H × UnitaryBase.Construction.Unitary K →* AdelicDualPair F H K := |
| 148 | RestrictedLimits.Construction.diagonalMap (localPairIntegral F H K) (rationalPairLocal F H K) |
| 149 | (rationalPairLocal_integral F H K) |
| 150 | |
| 151 | def includeUnitaryPlace (v : ArchimedeanAdeles.Construction.Places F) : |
| 152 | LocalUnitary F H v × LocalUnitary F K v →ₜ* AdelicDualPair F H K := |
| 153 | RestrictedLimits.Construction.includePlaceContinuous (localPairIntegral F H K) v |
| 154 | |
| 155 | end |
| 156 | |
| 157 | end OAI.RepresentationTheory.Weil.AdelicSplitting.Integral.Construction |