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.UnitsWeakApproximation |
| 2 | |
| 3 | /-! # Finite Algebra Approximation -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.FiniteAlgebraApproximation |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Simultaneous approximation in local scalar extensions of a finite |
| 10 | algebra, expressed through compatible bases. -/ |
| 11 | |
| 12 | open scoped Classical _root_.NumberField |
| 13 | open IsDedekindDomain Set |
| 14 | |
| 15 | variable {F : Type*} [Field F] [NumberField F] {ι : Type*} [Fintype ι] |
| 16 | (v : ι → HeightOneSpectrum (𝓞 F)) |
| 17 | {A : Type*} [Ring A] [Algebra F A] |
| 18 | {C : ι → Type*} [∀ i, Ring (C i)] [∀ i, Algebra F (C i)] |
| 19 | [∀ i, Algebra ((v i).adicCompletion F) (C i)] |
| 20 | [∀ i, IsScalarTower F ((v i).adicCompletion F) (C i)] |
| 21 | [∀ i, TopologicalSpace (C i)] [∀ i, IsTopologicalRing (C i)] |
| 22 | [∀ i, ContinuousSMul ((v i).adicCompletion F) (C i)] |
| 23 | |
| 24 | theorem denseRange_finiteAlgebraDiagonal_of_bases (hv : Function.Injective v) |
| 25 | (f : ∀ i, A →ₐ[F] C i) {m : ℕ} (b : Fin m → A) |
| 26 | (c : ∀ i, Module.Basis (Fin m) ((v i).adicCompletion F) (C i)) |
| 27 | (hc : ∀ i j, c i j = f i (b j)) : DenseRange (fun a : A => fun i => f i a) := by |
| 28 | let E : (∀ i, Fin m → (v i).adicCompletion F) → (∀ i, C i) := |
| 29 | fun t i => ∑ j, t i j • c i j |
| 30 | have hcont : Continuous E := by |
| 31 | apply continuous_pi |
| 32 | intro i |
| 33 | apply continuous_finsetSum |
| 34 | intro j _ |
| 35 | have ht : Continuous (fun t : ∀ i, Fin m → (v i).adicCompletion F => t i j) := |
| 36 | (continuous_apply j).comp (continuous_apply i) |
| 37 | exact ht.smul continuous_const |
| 38 | have hsurj : Function.Surjective E := by |
| 39 | intro x |
| 40 | refine ⟨fun i j => (c i).repr (x i) j, ?_⟩ |
| 41 | funext i |
| 42 | exact (c i).sum_repr (x i) |
| 43 | have hd := hsurj.denseRange.comp (FiniteScalarDensity.denseRange_finiteAffineDiagonal v hv m) hcont |
| 44 | apply hd.mono |
| 45 | rintro x ⟨a, rfl⟩ |
| 46 | refine ⟨∑ j, a j • b j, ?_⟩ |
| 47 | funext i |
| 48 | change f i (∑ j, a j • b j) = ∑ j, algebraMap F ((v i).adicCompletion F) (a j) • c i j |
| 49 | rw [map_sum] |
| 50 | apply Finset.sum_congr rfl |
| 51 | intro j _ |
| 52 | rw [map_smul, hc, IsScalarTower.algebraMap_smul] |
| 53 | |
| 54 | theorem denseRange_finiteAlgebraUnits_of_bases [FiniteDimensional F A] |
| 55 | [∀ i, IsOpenUnits (C i)] (hv : Function.Injective v) |
| 56 | (f : ∀ i, A →ₐ[F] C i) (hf : ∀ i, Function.Injective (f i)) |
| 57 | {m : ℕ} (b : Fin m → A) |
| 58 | (c : ∀ i, Module.Basis (Fin m) ((v i).adicCompletion F) (C i)) |
| 59 | (hc : ∀ i j, c i j = f i (b j)) : |
| 60 | DenseRange (UnitsWeakApproximation.unitsPiDiagonal (fun i => (f i).toRingHom)) := |
| 61 | UnitsWeakApproximation.denseRange_unitsPiDiagonal (F := F) _ hf |
| 62 | (denseRange_finiteAlgebraDiagonal_of_bases v hv f b c hc) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.NumberTheory.Quaternion.Arithmetic.FiniteAlgebraApproximation |