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.ApproximationTopology |
| 2 | |
| 3 | /-! # Groups -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.Groups |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! S-integral rational points and the finite-product form of Arithmetic. |
| 10 | The arithmetic subgroups are defined by their actual local integrality |
| 11 | conditions. No density assertion is part of their data. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 16 | variable (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 17 | |
| 18 | /-- Rational points integral at every place outside R, in the fixed matrix |
| 19 | realization. At infinite places the integral subgroup is the whole group. -/ |
| 20 | def sIntegralPoints (R : Set (LocalAdeles.Place F)) : Subgroup G.RationalPoints where |
| 21 | carrier := {g | ∀ v, v ∉ R → LocalAdeles.diagonalLocal G v g ∈ LocalAdeles.integralLocalSubgroup G v} |
| 22 | one_mem' := by intro v _; simp |
| 23 | mul_mem' := by |
| 24 | intro g h hg hh v hv |
| 25 | simpa only [map_mul] using (LocalAdeles.integralLocalSubgroup G v).mul_mem (hg v hv) (hh v hv) |
| 26 | inv_mem' := by |
| 27 | intro g hg v hv |
| 28 | simpa only [map_inv] using (LocalAdeles.integralLocalSubgroup G v).inv_mem (hg v hv) |
| 29 | |
| 30 | theorem sIntegralPoints_mono {R R' : Set (LocalAdeles.Place F)} (h : R ⊆ R') : |
| 31 | sIntegralPoints G R ≤ sIntegralPoints G R' := by |
| 32 | intro g hg v hv |
| 33 | exact hg v (fun hR => hv (h hR)) |
| 34 | |
| 35 | variable (S : Finset (LocalAdeles.Place F)) (T : Finset (ApproximationTopology.AwayPlace S)) |
| 36 | |
| 37 | /-- The S ∪ T-integral rational points, indexed by the places of T outside S. -/ |
| 38 | def arithmeticSubgroup : Subgroup G.RationalPoints where |
| 39 | carrier := {g | ∀ v : ApproximationTopology.AwayPlace S, v ∉ T → |
| 40 | LocalAdeles.diagonalLocal G v.val g ∈ LocalAdeles.integralLocalSubgroup G v.val} |
| 41 | one_mem' := by intro v _; simp |
| 42 | mul_mem' := by |
| 43 | intro g h hg hh v hv |
| 44 | simpa only [map_mul] using (LocalAdeles.integralLocalSubgroup G v.val).mul_mem (hg v hv) (hh v hv) |
| 45 | inv_mem' := by |
| 46 | intro g hg v hv |
| 47 | simpa only [map_inv] using (LocalAdeles.integralLocalSubgroup G v.val).inv_mem (hg v hv) |
| 48 | |
| 49 | theorem arithmeticSubgroup_eq_sIntegralPoints : |
| 50 | arithmeticSubgroup G S T = |
| 51 | sIntegralPoints G ((S : Set (LocalAdeles.Place F)) ∪ Subtype.val '' (T : Set (ApproximationTopology.AwayPlace S))) := by |
| 52 | apply Subgroup.ext |
| 53 | intro g |
| 54 | constructor |
| 55 | · intro hg v hv |
| 56 | have hvS : v ∉ S := fun h => hv (Or.inl h) |
| 57 | have hvT : (⟨v, hvS⟩ : ApproximationTopology.AwayPlace S) ∉ T := |
| 58 | fun h => hv (Or.inr ⟨⟨v, hvS⟩, h, rfl⟩) |
| 59 | exact hg ⟨v, hvS⟩ hvT |
| 60 | · intro hg v hv |
| 61 | apply hg v.val |
| 62 | rintro (hS | ⟨w, hw, heq⟩) |
| 63 | · exact v.property hS |
| 64 | · exact hv ((Subtype.ext heq : w = v) ▸ hw) |
| 65 | |
| 66 | abbrev SelectedLocalProduct := |
| 67 | (v : (T : Set (ApproximationTopology.AwayPlace S))) → LocalAdeles.LocalPoints G v.val.val |
| 68 | |
| 69 | def arithmeticProjection : arithmeticSubgroup G S T →* SelectedLocalProduct G S T where |
| 70 | toFun g v := LocalAdeles.diagonalLocal G v.val.val g.val |
| 71 | map_one' := by funext v; exact map_one (LocalAdeles.diagonalLocal G v.val.val) |
| 72 | map_mul' g h := by funext v; exact map_mul (LocalAdeles.diagonalLocal G v.val.val) g.val h.val |
| 73 | |
| 74 | /-- Strong approximation is precisely density of the S ∪ T-integral rational |
| 75 | points in every selected finite local product. -/ |
| 76 | theorem strongApproximation_iff_arithmeticProjection_dense : |
| 77 | DenseRange (LocalAdeles.diagonalAway G S) ↔ |
| 78 | ∀ T : Finset (ApproximationTopology.AwayPlace S), DenseRange (arithmeticProjection G S T) := by |
| 79 | rw [ApproximationTopology.denseRange_diagonalAway_iff] |
| 80 | constructor |
| 81 | · intro h T a |
| 82 | rw [mem_closure_iff] |
| 83 | intro V hV ha |
| 84 | obtain ⟨U, hU, hsub⟩ := isOpen_pi_iff'.mp hV a ha |
| 85 | let U' : (v : ApproximationTopology.AwayPlace S) → Set (LocalAdeles.LocalPoints G v.val) := |
| 86 | fun v => if hv : v ∈ T then U ⟨v, hv⟩ else Set.univ |
| 87 | have ho : ∀ v ∈ T, IsOpen (U' v) := by |
| 88 | intro v hv |
| 89 | simpa only [U', dite_eq_left hv] using (hU ⟨v, hv⟩).1 |
| 90 | have hn : ∀ v ∈ T, (U' v).Nonempty := by |
| 91 | intro v hv |
| 92 | refine ⟨a ⟨v, hv⟩, ?_⟩ |
| 93 | simpa only [U', dite_eq_left hv] using (hU ⟨v, hv⟩).2 |
| 94 | obtain ⟨g, hg⟩ := h T U' ho hn |
| 95 | let γ : arithmeticSubgroup G S T := ⟨g, hg.2⟩ |
| 96 | refine ⟨arithmeticProjection G S T γ, hsub ?_, Set.mem_range_self γ⟩ |
| 97 | intro v _ |
| 98 | have hvT : v.val ∈ T := v.property |
| 99 | have hv := hg.1 v.val hvT |
| 100 | change LocalAdeles.diagonalLocal G v.val.val g ∈ U v |
| 101 | simpa only [U', dite_eq_left hvT, LocalAdeles.diagonalAway_apply] using hv |
| 102 | · intro h T U ho hn |
| 103 | let V : Set (SelectedLocalProduct G S T) := |
| 104 | Set.pi Set.univ (fun v => U v.val) |
| 105 | have hV : IsOpen V := |
| 106 | isOpen_set_pi (Set.toFinite Set.univ) (fun v _ => ho v.val v.property) |
| 107 | have hVN : V.Nonempty := by |
| 108 | refine ⟨fun v => (hn v.val v.property).choose, ?_⟩ |
| 109 | intro v _ |
| 110 | exact (hn v.val v.property).choose_spec |
| 111 | obtain ⟨g, hg⟩ := (h T).exists_mem_open hV hVN |
| 112 | refine ⟨g.val, ?_, g.property⟩ |
| 113 | intro v hv |
| 114 | exact hg ⟨v, hv⟩ (Set.mem_univ _) |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.NumberTheory.Quaternion.Arithmetic.Groups |