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.FiniteScalarDensity |
| 2 | import Mathlib.Algebra.Algebra.Bilinear |
| 3 | import Mathlib.LinearAlgebra.FiniteDimensional.Basic |
| 4 | import Mathlib.Topology.Algebra.IsOpenUnits |
| 5 | |
| 6 | /-! # Units Weak Approximation -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.Quaternion.Arithmetic.UnitsWeakApproximation |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Weak approximation passes from a finite-dimensional algebra to |
| 13 | its unit group. Invertibility is reflected by any faithful ring map, |
| 14 | using finite-dimensional linear algebra. -/ |
| 15 | |
| 16 | open scoped Classical |
| 17 | open Set |
| 18 | |
| 19 | variable {F A B : Type*} [Field F] [Ring A] [Algebra F A] [FiniteDimensional F A] [Ring B] |
| 20 | |
| 21 | include F in |
| 22 | theorem finiteDimensional_isUnit_of_injective_map (f : A →+* B) (hf : Function.Injective f) |
| 23 | {a : A} (ha : IsUnit (f a)) : IsUnit a := by |
| 24 | have hi : Function.Injective (Algebra.lmul F A a) := by |
| 25 | intro x y hxy |
| 26 | apply hf |
| 27 | apply ha.mul_left_cancel |
| 28 | change a * x = a * y at hxy |
| 29 | simpa only [← map_mul] using congrArg f hxy |
| 30 | apply (Algebra.lmul_isUnit_iff (R := F)).mp |
| 31 | apply (Module.End.isUnit_iff _).mpr |
| 32 | exact ⟨hi, LinearMap.injective_iff_surjective.mp hi⟩ |
| 33 | |
| 34 | variable {ι : Type*} [Finite ι] {C : ι → Type*} [∀ i, Ring (C i)] |
| 35 | [∀ i, TopologicalSpace (C i)] [∀ i, IsOpenUnits (C i)] |
| 36 | |
| 37 | def unitsPiDiagonal (f : ∀ i, A →+* C i) : Aˣ →* (∀ i, (C i)ˣ) := |
| 38 | MonoidHom.pi (fun i => Units.map (f i)) |
| 39 | |
| 40 | omit [Algebra F A] [FiniteDimensional F A] in |
| 41 | theorem finite_units_pi_val_isOpenMap : |
| 42 | IsOpenMap (fun x : ∀ i, (C i)ˣ => fun i => (x i).val) := by |
| 43 | exact IsOpenMap.piMap (fun i => (IsOpenUnits.isOpenEmbedding_unitsVal (M := C i)).isOpenMap) |
| 44 | (by simp) |
| 45 | |
| 46 | include F in |
| 47 | theorem denseRange_unitsPiDiagonal (f : ∀ i, A →+* C i) |
| 48 | (hf : ∀ i, Function.Injective (f i)) |
| 49 | (hd : DenseRange (fun a : A => fun i => f i a)) : DenseRange (unitsPiDiagonal f) := by |
| 50 | cases isEmpty_or_nonempty ι with |
| 51 | | inl hi => |
| 52 | let := hi |
| 53 | intro x |
| 54 | have he : unitsPiDiagonal f 1 = x := Subsingleton.elim _ _ |
| 55 | exact subset_closure ⟨1, he⟩ |
| 56 | | inr hi => |
| 57 | let := hi |
| 58 | let i₀ : ι := Classical.choice hi |
| 59 | intro x |
| 60 | rw [mem_closure_iff] |
| 61 | intro V hV hx |
| 62 | have ho := finite_units_pi_val_isOpenMap (C := C) V hV |
| 63 | obtain ⟨a, y, hy, hya⟩ := hd.exists_mem_open ho ⟨(fun i => (x i).val), x, hx, rfl⟩ |
| 64 | have ha : IsUnit a := finiteDimensional_isUnit_of_injective_map (F := F) (f i₀) (hf i₀) (by |
| 65 | rw [← congrFun hya i₀] |
| 66 | exact (y i₀).isUnit) |
| 67 | obtain ⟨a, rfl⟩ := ha |
| 68 | have he : unitsPiDiagonal f a = y := by |
| 69 | funext i |
| 70 | apply Units.ext |
| 71 | exact (congrFun hya i).symm |
| 72 | exact ⟨unitsPiDiagonal f a, he ▸ hy, Set.mem_range_self a⟩ |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.Quaternion.Arithmetic.UnitsWeakApproximation |