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.IntegralCompact |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.Groups |
| 3 | |
| 4 | /-! # Integral Adeles -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.IntegralAdeles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compact open integral subgroups of the away adeles. S-integral rational |
| 11 | points are exactly their inverse images under the diagonal homomorphism. -/ |
| 12 | |
| 13 | open scoped Classical _root_.NumberField RestrictedProduct |
| 14 | open Set |
| 15 | |
| 16 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 17 | variable (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 18 | |
| 19 | def integralAwaySubgroup : Subgroup (LocalAdeles.AwayAdelicPoints G S) where |
| 20 | carrier := {a | ∀ v, a v ∈ LocalAdeles.integralLocalSubgroup G v.val} |
| 21 | one_mem' v := (LocalAdeles.integralLocalSubgroup G v.val).one_mem |
| 22 | mul_mem' ha hb v := (LocalAdeles.integralLocalSubgroup G v.val).mul_mem (ha v) (hb v) |
| 23 | inv_mem' ha v := (LocalAdeles.integralLocalSubgroup G v.val).inv_mem (ha v) |
| 24 | |
| 25 | def integralAwayProductHomeomorph : |
| 26 | ((v : ApproximationTopology.AwayPlace S) → LocalAdeles.integralLocalSubgroup G v.val) ≃ₜ integralAwaySubgroup G S := |
| 27 | (RestrictedProduct.isEmbedding_structureMap |
| 28 | (R := fun v : ApproximationTopology.AwayPlace S => LocalAdeles.LocalPoints G v.val) |
| 29 | (A := fun v => (LocalAdeles.integralLocalSubgroup G v.val : Set (LocalAdeles.LocalPoints G v.val))) |
| 30 | (𝓕 := Filter.cofinite)).toHomeomorph.trans |
| 31 | (Homeomorph.setCongr (by rw [RestrictedProduct.range_structureMap]; rfl)) |
| 32 | |
| 33 | theorem integralAwaySubgroup_isOpen : |
| 34 | IsOpen (integralAwaySubgroup G S : Set (LocalAdeles.AwayAdelicPoints G S)) := by |
| 35 | have h := ApproximationTopology.basicAdelicSet_isOpen G S ∅ (fun _ => Set.univ) (by simp) |
| 36 | simpa [ApproximationTopology.basicAdelicSet, integralAwaySubgroup] using h |
| 37 | |
| 38 | theorem integralAwaySubgroup_isCompact |
| 39 | (hS : ∀ v : NumberField.InfinitePlace F, Sum.inl v ∈ S) : |
| 40 | IsCompact (integralAwaySubgroup G S : Set (LocalAdeles.AwayAdelicPoints G S)) := by |
| 41 | let : ∀ v : ApproximationTopology.AwayPlace S, CompactSpace (LocalAdeles.integralLocalSubgroup G v.val) := fun v => by |
| 42 | rcases v with ⟨v, hv⟩ |
| 43 | cases v with |
| 44 | | inl w => exact (hv (hS w)).elim |
| 45 | | inr w => exact isCompact_iff_compactSpace.mp (IntegralCompact.integralLocalSubgroup_isCompact G w) |
| 46 | have : CompactSpace (integralAwaySubgroup G S) := |
| 47 | (integralAwayProductHomeomorph G S).compactSpace |
| 48 | exact isCompact_iff_compactSpace.mpr this |
| 49 | |
| 50 | theorem sIntegralPoints_eq_comap_integralAway : |
| 51 | Groups.sIntegralPoints G (S : Set (LocalAdeles.Place F)) = |
| 52 | (integralAwaySubgroup G S).comap (LocalAdeles.diagonalAway G S) := by |
| 53 | apply Subgroup.ext |
| 54 | intro g |
| 55 | constructor |
| 56 | · intro hg v |
| 57 | exact hg v.val v.property |
| 58 | · intro hg v hv |
| 59 | exact hg ⟨v, hv⟩ |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.NumberTheory.Quaternion.Arithmetic.IntegralAdeles |