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.OrbitTopology |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.CompactRestrictedBoxes |
| 3 | import OAI.NumberTheory.Quaternion.Arithmetic.IntegralCompact |
| 4 | |
| 5 | /-! # Finite Orbit Compact -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.Quaternion.Arithmetic.FiniteOrbitCompact |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Requiring the finite-place images of a fixed rational quaternion |
| 12 | unit to be integral defines a compact set of finite-adelic points. -/ |
| 13 | |
| 14 | open scoped Classical _root_.NumberField _root_.Quaternion _root_.Matrix |
| 15 | open QuaternionAlgebra IsDedekindDomain Set Filter |
| 16 | |
| 17 | variable {F : Type} [Field F] [NumberField F] |
| 18 | |
| 19 | def quaternionScalarUnit {K : Type} [Field K] (ρ : F →+* K) (a b : F) |
| 20 | (r : ℍ[F,a,b]ˣ) : ℍ[K,ρ a,ρ b]ˣ := |
| 21 | Units.map (ConjugationQuaternion.quaternionCoefficientMap ρ a b).toMonoidHom r |
| 22 | |
| 23 | def quaternionFiniteOrbitBox (a b : F) (r : ℍ[F,a,b]ˣ) (v : HeightOneSpectrum (𝓞 F)) : |
| 24 | Set (LocalAdeles.LocalPoints (MatrixGroup.quaternionNormOneMatrixGroup a b) (.inr v)) := |
| 25 | {g | ∀ i, OrbitTopology.quaternionPointsOrbit a b (LocalAdeles.localEmbedding (.inr v)) |
| 26 | (quaternionScalarUnit (LocalAdeles.localEmbedding (.inr v)) a b r) g i ∈ LocalAdeles.localIntegerRing (.inr v)} |
| 27 | |
| 28 | theorem quaternionFiniteOrbitBox_isCompact (a b : F) (r : ℍ[F,a,b]ˣ) |
| 29 | (v : HeightOneSpectrum (𝓞 F)) : IsCompact (quaternionFiniteOrbitBox a b r v) := by |
| 30 | have hC : IsCompact {x : Fin 4 → LocalAdeles.Completion (.inr v) | ∀ i, x i ∈ LocalAdeles.localIntegerRing (.inr v)} := by |
| 31 | have hc := isCompact_univ_pi (fun _ : Fin 4 => IntegralCompact.finiteLocalIntegerRing_isCompact v) |
| 32 | simp only [Set.pi, mem_univ, forall_const] at hc |
| 33 | exact hc |
| 34 | exact OrbitTopology.quaternionPointsOrbit_compact_preimage a b (LocalAdeles.localEmbedding (.inr v)) |
| 35 | (quaternionScalarUnit (LocalAdeles.localEmbedding (.inr v)) a b r) _ hC |
| 36 | |
| 37 | theorem eventually_quaternionFiniteOrbitBox_integral (a b : F) (r : ℍ[F,a,b]ˣ) : |
| 38 | ∀ᶠ v : HeightOneSpectrum (𝓞 F) in cofinite, |
| 39 | quaternionFiniteOrbitBox a b r v ⊆ LocalAdeles.integralLocalSubgroup (MatrixGroup.quaternionNormOneMatrixGroup a b) (.inr v) := by |
| 40 | have hall : ∀ᶠ v : LocalAdeles.Place F in cofinite, |
| 41 | ∀ g : LocalAdeles.LocalPoints (MatrixGroup.quaternionNormOneMatrixGroup a b) v, |
| 42 | (∀ i, OrbitTopology.quaternionPointsOrbit a b (LocalAdeles.localEmbedding v) |
| 43 | (quaternionScalarUnit (LocalAdeles.localEmbedding v) a b r) g i ∈ LocalAdeles.localIntegerRing v) → |
| 44 | g ∈ LocalAdeles.integralLocalSubgroup (MatrixGroup.quaternionNormOneMatrixGroup a b) v := by |
| 45 | filter_upwards [LocalAdeles.eventually_integral_scalar a, LocalAdeles.eventually_integral_scalar b, |
| 46 | LocalAdeles.eventually_integral_scalar (r⁻¹).val.re, LocalAdeles.eventually_integral_scalar (r⁻¹).val.imI, |
| 47 | LocalAdeles.eventually_integral_scalar (r⁻¹).val.imJ, LocalAdeles.eventually_integral_scalar (r⁻¹).val.imK] |
| 48 | with v ha hb h0 h1 h2 h3 |
| 49 | intro g hg |
| 50 | exact OrbitReconstruction.quaternion_integral_of_integral_orbit a b (LocalAdeles.localEmbedding v) (LocalAdeles.localIntegerRing v) |
| 51 | ha hb (quaternionScalarUnit (LocalAdeles.localEmbedding v) a b r) ⟨h0, h1, h2, h3⟩ g hg |
| 52 | exact (show Function.Injective (Sum.inr : HeightOneSpectrum (𝓞 F) → LocalAdeles.Place F) from |
| 53 | Sum.inr_injective).tendsto_cofinite hall |
| 54 | |
| 55 | theorem quaternion_finite_integral_orbit_isCompact (a b : F) (r : ℍ[F,a,b]ˣ) : |
| 56 | IsCompact {g : FiniteAdelicMatrices.FiniteAdelicGroupPoints (MatrixGroup.quaternionNormOneMatrixGroup a b) | |
| 57 | ∀ v, g v ∈ quaternionFiniteOrbitBox a b r v} := |
| 58 | CompactRestrictedBoxes.isCompact_restricted_product_box _ _ _ (quaternionFiniteOrbitBox_isCompact a b r) |
| 59 | (eventually_quaternionFiniteOrbitBox_integral a b r) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.NumberTheory.Quaternion.Arithmetic.FiniteOrbitCompact |