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.FiniteIndex |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.SelectedArithmeticProduct |
| 3 | |
| 4 | /-! # Exceptional Approximation -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.ExceptionalApproximation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The finite-index result fills the selected coordinates generated |
| 13 | by additive parameters, while leaving exceptional local factors explicit. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | open Set |
| 17 | |
| 18 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 19 | |
| 20 | instance completionCharZero (v : LocalAdeles.Place F) : CharZero (LocalAdeles.Completion v) where |
| 21 | cast_injective m n h := by |
| 22 | have he : (m : F) = (n : F) := (LocalAdeles.localEmbedding v).injective (by |
| 23 | simpa only [map_natCast] using h) |
| 24 | exact Nat.cast_injective he |
| 25 | |
| 26 | def localAdditiveGeneration (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (v : LocalAdeles.Place F) : Prop := |
| 27 | Subgroup.closure (Arithmetic.FiniteIndex.additiveParameterElements (K := LocalAdeles.Completion v) (G := LocalAdeles.LocalPoints G v)) = ⊤ |
| 28 | |
| 29 | theorem arithmetic_closure_contains_exceptional_identity |
| 30 | (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) (B T : Finset (ApproximationTopology.AwayPlace S)) |
| 31 | (hindex : (Groups.arithmeticProjection G S T).range.topologicalClosure.FiniteIndex) |
| 32 | (hgen : ∀ v : ApproximationTopology.AwayPlace S, v ∉ B → localAdditiveGeneration G v.val) |
| 33 | (x : Groups.SelectedLocalProduct G S T) (hx : ∀ v : (T : Set (ApproximationTopology.AwayPlace S)), v.val ∈ B → x v = 1) : |
| 34 | x ∈ (Groups.arithmeticProjection G S T).range.topologicalClosure := by |
| 35 | let := hindex |
| 36 | exact Arithmetic.FiniteIndex.finiteIndex_product_mem_of_exceptional_one (K := fun v : (T : Set (ApproximationTopology.AwayPlace S)) => |
| 37 | LocalAdeles.Completion v.val.val) (Groups.arithmeticProjection G S T).range.topologicalClosure |
| 38 | {v | v.val ∈ B} (fun v hv => hgen v.val hv) x hx |
| 39 | |
| 40 | end |
| 41 | |
| 42 | section |
| 43 | |
| 44 | /-! Approximate prescribed conditions at the exceptional places and |
| 45 | record the finite set of denominators of the resulting rational point. -/ |
| 46 | |
| 47 | open scoped Classical |
| 48 | open Set Filter _root_.Topology |
| 49 | |
| 50 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 51 | |
| 52 | def localAdelicTarget (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) {S : Finset (LocalAdeles.Place F)} |
| 53 | (T : Finset (ApproximationTopology.AwayPlace S)) (U : ∀ v : ApproximationTopology.AwayPlace S, Set (LocalAdeles.LocalPoints G v.val)) |
| 54 | (v : ApproximationTopology.AwayPlace S) : Set (LocalAdeles.LocalPoints G v.val) := |
| 55 | if v ∈ T then U v else LocalAdeles.integralLocalSubgroup G v.val |
| 56 | |
| 57 | theorem localAdelicTarget_isOpen (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) {S : Finset (LocalAdeles.Place F)} |
| 58 | (T : Finset (ApproximationTopology.AwayPlace S)) (U : ∀ v : ApproximationTopology.AwayPlace S, Set (LocalAdeles.LocalPoints G v.val)) |
| 59 | (hU : ∀ v ∈ T, IsOpen (U v)) (v : ApproximationTopology.AwayPlace S) : IsOpen (localAdelicTarget G T U v) := by |
| 60 | by_cases hv : v ∈ T |
| 61 | · simpa only [localAdelicTarget, ite_eq_left hv] using hU v hv |
| 62 | · simpa only [localAdelicTarget, ite_eq_right hv] using LocalAdeles.integralLocalSubgroup_isOpen G v.val |
| 63 | |
| 64 | theorem localAdelicTarget_nonempty (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) {S : Finset (LocalAdeles.Place F)} |
| 65 | (T : Finset (ApproximationTopology.AwayPlace S)) (U : ∀ v : ApproximationTopology.AwayPlace S, Set (LocalAdeles.LocalPoints G v.val)) |
| 66 | (hU : ∀ v ∈ T, (U v).Nonempty) (v : ApproximationTopology.AwayPlace S) : (localAdelicTarget G T U v).Nonempty := by |
| 67 | by_cases hv : v ∈ T |
| 68 | · simpa only [localAdelicTarget, ite_eq_left hv] using hU v hv |
| 69 | · exact ⟨1, by simpa only [localAdelicTarget, ite_eq_right hv] using! |
| 70 | (LocalAdeles.integralLocalSubgroup G v.val).one_mem⟩ |
| 71 | |
| 72 | theorem exceptional_weakApproximation_point (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 73 | (S : Finset (LocalAdeles.Place F)) (B T : Finset (ApproximationTopology.AwayPlace S)) |
| 74 | (hweak : DenseRange (fun g : G.RationalPoints => fun v : (B : Set (ApproximationTopology.AwayPlace S)) => |
| 75 | LocalAdeles.diagonalLocal G v.val.val g)) |
| 76 | (U : ∀ v : ApproximationTopology.AwayPlace S, Set (LocalAdeles.LocalPoints G v.val)) |
| 77 | (hU : ∀ v ∈ T, IsOpen (U v)) (hne : ∀ v ∈ T, (U v).Nonempty) : |
| 78 | ∃ a : G.RationalPoints, ∀ v ∈ B, LocalAdeles.diagonalLocal G v.val a ∈ localAdelicTarget G T U v := by |
| 79 | let V := Set.pi univ (fun v : (B : Set (ApproximationTopology.AwayPlace S)) => localAdelicTarget G T U v.val) |
| 80 | have hV : IsOpen V := isOpen_set_pi (Set.toFinite univ) |
| 81 | (fun v _ => localAdelicTarget_isOpen G T U hU v.val) |
| 82 | have hVne : V.Nonempty := by |
| 83 | refine ⟨fun v => (localAdelicTarget_nonempty G T U hne v.val).choose, ?_⟩ |
| 84 | intro v _ |
| 85 | exact (localAdelicTarget_nonempty G T U hne v.val).choose_spec |
| 86 | obtain ⟨a, ha⟩ := hweak.exists_mem_open hV hVne |
| 87 | exact ⟨a, fun v hv => ha ⟨v, hv⟩ (mem_univ _)⟩ |
| 88 | |
| 89 | theorem rational_point_finite_denominators (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 90 | (S : Finset (LocalAdeles.Place F)) (a : G.RationalPoints) : |
| 91 | ∃ D : Finset (ApproximationTopology.AwayPlace S), ∀ v : ApproximationTopology.AwayPlace S, v ∉ D → |
| 92 | LocalAdeles.diagonalLocal G v.val a ∈ LocalAdeles.integralLocalSubgroup G v.val := by |
| 93 | have hfin : {v : ApproximationTopology.AwayPlace S | LocalAdeles.diagonalLocal G v.val a ∉ LocalAdeles.integralLocalSubgroup G v.val}.Finite := |
| 94 | eventually_cofinite.mp (LocalAdeles.diagonalAway G S a).property |
| 95 | refine ⟨hfin.toFinset, fun v hv => ?_⟩ |
| 96 | simpa only [Set.Finite.mem_toFinset, mem_ofPred_eq, not_not] using hv |
| 97 | |
| 98 | end |
| 99 | |
| 100 | section |
| 101 | |
| 102 | /-! A rational approximation at exceptional factors can be corrected |
| 103 | at all other selected places while retaining integrality outside them. -/ |
| 104 | |
| 105 | open scoped Classical |
| 106 | open Set _root_.Topology |
| 107 | |
| 108 | theorem arithmetic_correction_of_finiteIndex |
| 109 | {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 110 | (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) (B T R : Finset (ApproximationTopology.AwayPlace S)) |
| 111 | (hTR : T ⊆ R) |
| 112 | (hindex : (Groups.arithmeticProjection G S R).range.topologicalClosure.FiniteIndex) |
| 113 | (hgen : ∀ v : ApproximationTopology.AwayPlace S, v ∉ B → localAdditiveGeneration G v.val) |
| 114 | (U : ∀ v : ApproximationTopology.AwayPlace S, Set (LocalAdeles.LocalPoints G v.val)) |
| 115 | (hU : ∀ v ∈ T, IsOpen (U v)) (hne : ∀ v ∈ T, (U v).Nonempty) |
| 116 | (a : G.RationalPoints) |
| 117 | (haB : ∀ v ∈ B, LocalAdeles.diagonalLocal G v.val a ∈ localAdelicTarget G T U v) |
| 118 | (haR : ∀ v : ApproximationTopology.AwayPlace S, v ∉ R → LocalAdeles.diagonalLocal G v.val a ∈ LocalAdeles.integralLocalSubgroup G v.val) : |
| 119 | ∃ g : G.RationalPoints, ∀ v : ApproximationTopology.AwayPlace S, |
| 120 | LocalAdeles.diagonalLocal G v.val g ∈ localAdelicTarget G T U v := by |
| 121 | let z := fun v : ApproximationTopology.AwayPlace S => (localAdelicTarget_nonempty G T U hne v).choose |
| 122 | have hz (v : ApproximationTopology.AwayPlace S) : z v ∈ localAdelicTarget G T U v := |
| 123 | (localAdelicTarget_nonempty G T U hne v).choose_spec |
| 124 | let x : Groups.SelectedLocalProduct G S R := fun v => |
| 125 | if v.val ∈ B then 1 else (LocalAdeles.diagonalLocal G v.val.val a)⁻¹ * z v.val |
| 126 | have hx (v : (R : Set (ApproximationTopology.AwayPlace S))) : |
| 127 | LocalAdeles.diagonalLocal G v.val.val a * x v ∈ localAdelicTarget G T U v.val := by |
| 128 | by_cases hv : v.val ∈ B |
| 129 | · simpa only [x, ite_eq_left hv, mul_one] using haB v.val hv |
| 130 | · simpa only [x, ite_eq_right hv, mul_inv_cancel_left] using hz v.val |
| 131 | have hcl := arithmetic_closure_contains_exceptional_identity G S B R hindex hgen x |
| 132 | (fun v hv => by simp only [x, ite_eq_left hv]) |
| 133 | let V := fun v : (R : Set (ApproximationTopology.AwayPlace S)) => |
| 134 | (fun y : LocalAdeles.LocalPoints G v.val.val => LocalAdeles.diagonalLocal G v.val.val a * y) ⁻¹' |
| 135 | localAdelicTarget G T U v.val |
| 136 | let W := Set.pi univ V |
| 137 | have hW : IsOpen W := isOpen_set_pi (Set.toFinite univ) (fun v _ => |
| 138 | (localAdelicTarget_isOpen G T U hU v.val).preimage (continuous_const.mul continuous_id)) |
| 139 | have hxW : x ∈ W := fun v _ => hx v |
| 140 | change x ∈ closure (range (Groups.arithmeticProjection G S R)) at hcl |
| 141 | obtain ⟨y, hy, ⟨b, rfl⟩⟩ := mem_closure_iff.mp hcl W hW hxW |
| 142 | refine ⟨a * b.val, fun v => ?_⟩ |
| 143 | by_cases hv : v ∈ R |
| 144 | · have h := hy ⟨v, hv⟩ (mem_univ _) |
| 145 | change LocalAdeles.diagonalLocal G v.val a * LocalAdeles.diagonalLocal G v.val b.val ∈ localAdelicTarget G T U v at h |
| 146 | simpa only [map_mul] using h |
| 147 | · have hvT : v ∉ T := fun h => hv (hTR h) |
| 148 | rw [localAdelicTarget, ite_eq_right hvT, map_mul] |
| 149 | exact (LocalAdeles.integralLocalSubgroup G v.val).mul_mem (haR v hv) (b.property v hv) |
| 150 | |
| 151 | end |
| 152 | |
| 153 | /-! Strong approximation reduces to finite invariant arithmetic |
| 154 | volume, additive generation outside a finite exceptional set, and |
| 155 | ordinary weak approximation at those exceptional places. -/ |
| 156 | |
| 157 | open scoped Classical _root_.NumberField |
| 158 | open Set |
| 159 | |
| 160 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 161 | |
| 162 | theorem strongApproximation_of_finiteIndex_exceptional_weakApproximation |
| 163 | (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 164 | (hindex : ∀ T : Finset (ApproximationTopology.AwayPlace S), (Groups.arithmeticProjection G S T).range.topologicalClosure.FiniteIndex) |
| 165 | (B : Finset (ApproximationTopology.AwayPlace S)) |
| 166 | (hweak : DenseRange (fun g : G.RationalPoints => fun v : (B : Set (ApproximationTopology.AwayPlace S)) => |
| 167 | LocalAdeles.diagonalLocal G v.val.val g)) |
| 168 | (hgen : ∀ v : ApproximationTopology.AwayPlace S, v ∉ B → localAdditiveGeneration G v.val) : |
| 169 | DenseRange (LocalAdeles.diagonalAway G S) := by |
| 170 | apply (ApproximationTopology.denseRange_diagonalAway_iff G S).mpr |
| 171 | intro T U hU hne |
| 172 | obtain ⟨a, haB⟩ := exceptional_weakApproximation_point G S B T hweak U hU hne |
| 173 | obtain ⟨D, haD⟩ := rational_point_finite_denominators G S a |
| 174 | let R := T ∪ D |
| 175 | have hTR : T ⊆ R := Finset.subset_union_left |
| 176 | have haR : ∀ v : ApproximationTopology.AwayPlace S, v ∉ R → |
| 177 | LocalAdeles.diagonalLocal G v.val a ∈ LocalAdeles.integralLocalSubgroup G v.val := by |
| 178 | intro v hv |
| 179 | exact haD v (fun h => hv (Finset.mem_union_right T h)) |
| 180 | obtain ⟨g, hg⟩ := arithmetic_correction_of_finiteIndex G S B T R hTR (hindex R) |
| 181 | hgen U hU hne a haB haR |
| 182 | refine ⟨g, ?_, ?_⟩ |
| 183 | · intro v hv |
| 184 | simpa only [localAdelicTarget, ite_eq_left hv, LocalAdeles.diagonalAway_apply] using hg v |
| 185 | · intro v hv |
| 186 | simpa only [localAdelicTarget, ite_eq_right hv, LocalAdeles.diagonalAway_apply] using! hg v |
| 187 | |
| 188 | theorem strongApproximation_of_volume_and_local_generation |
| 189 | (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (hconn : G.IsGeometricallyConnected) |
| 190 | (hsimple : AlgebraicHypotheses.IsAbsolutelyAlmostSimple G) (hsemi : G.IsSemisimple) |
| 191 | (S : Finset (LocalAdeles.Place F)) (harch : ∀ w : NumberField.InfinitePlace F, Sum.inl w ∈ S) |
| 192 | (hnoncompact : ∃ w : LocalAdeles.Place F, w ∈ S ∧ ¬ CompactSpace (LocalAdeles.LocalPoints G w)) |
| 193 | (hvolume : ∀ T : Finset (ApproximationTopology.AwayPlace S), CompactQuotientProjection.QuotientHasInvariantProbability (Ambient.arithmeticAmbientSubgroup G S T)) |
| 194 | (B : Finset (ApproximationTopology.AwayPlace S)) |
| 195 | (hweak : DenseRange (fun g : G.RationalPoints => fun v : (B : Set (ApproximationTopology.AwayPlace S)) => |
| 196 | LocalAdeles.diagonalLocal G v.val.val g)) |
| 197 | (hgen : ∀ v : ApproximationTopology.AwayPlace S, v ∉ B → localAdditiveGeneration G v.val) : |
| 198 | DenseRange (LocalAdeles.diagonalAway G S) := |
| 199 | strongApproximation_of_finiteIndex_exceptional_weakApproximation G S |
| 200 | (SelectedArithmeticProduct.arithmeticProjection_closure_finiteIndex_of_volume G hconn hsimple hsemi S harch hnoncompact hvolume) |
| 201 | B hweak hgen |
| 202 | |
| 203 | end |
| 204 | |
| 205 | end OAI.NumberTheory.Quaternion.Arithmetic.ExceptionalApproximation |