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.ArithmeticGroups.Lattices.DiagonalActionSquareBound |
| 2 | import Mathlib.Topology.DiscreteSubset |
| 3 | import Mathlib.Topology.Instances.Int |
| 4 | |
| 5 | /-! # Real Coordinates -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Integral.RealCoordinates.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Integral coordinate vectors are closed and discrete, have a unit |
| 12 | gap in each nonzero coordinate, and meet bounded sets in finitely many points. -/ |
| 13 | |
| 14 | open Set |
| 15 | |
| 16 | def integralRealCoordinates (ι : Type*) : Set (ι → ℝ) := |
| 17 | Set.range (fun z : ι → ℤ => fun i => (z i : ℝ)) |
| 18 | |
| 19 | theorem integralRealCoordinates_closed (ι : Type*) : IsClosed (integralRealCoordinates ι) := |
| 20 | (Topology.IsClosedEmbedding.piMap (fun _ : ι => Int.isClosedEmbedding_coe_real)).isClosed_range |
| 21 | |
| 22 | theorem integralRealCoordinates_discrete (ι : Type*) [Finite ι] : |
| 23 | IsDiscrete (integralRealCoordinates ι) := |
| 24 | (Topology.IsClosedEmbedding.piMap (fun _ : ι => Int.isClosedEmbedding_coe_real)).isEmbedding.isInducing.isDiscrete_range |
| 25 | |
| 26 | theorem integralRealCoordinates_gap {ι : Type*} (x : ι → ℝ) |
| 27 | (hx : x ∈ integralRealCoordinates ι) (i : ι) : x i = 0 ∨ 1 ≤ |x i| := by |
| 28 | obtain ⟨z, rfl⟩ := hx |
| 29 | change (z i : ℝ) = 0 ∨ 1 ≤ |(z i : ℝ)| |
| 30 | by_cases hz : z i = 0 |
| 31 | · exact Or.inl (by rw [hz, Int.cast_zero]) |
| 32 | · right |
| 33 | exact_mod_cast (Int.one_le_abs hz) |
| 34 | |
| 35 | theorem integral_coordinates_finite_of_bounded |
| 36 | {V ι : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [ProperSpace V] [Fintype ι] |
| 37 | (e : V ≃L[ℝ] (ι → ℝ)) (S : Set V) (R : ℝ) (hR : ∀ x ∈ S, ‖x‖ ≤ R) |
| 38 | (hint : ∀ x ∈ S, e x ∈ integralRealCoordinates ι) : S.Finite := by |
| 39 | have hclosed : IsClosed (e ⁻¹' integralRealCoordinates ι) := |
| 40 | (integralRealCoordinates_closed ι).preimage e.continuous |
| 41 | have hdiscrete : IsDiscrete (e ⁻¹' integralRealCoordinates ι) := |
| 42 | (integralRealCoordinates_discrete ι).preimage e.continuous.continuousOn e.injective |
| 43 | apply (Metric.finite_isBounded_inter_isClosed hdiscrete |
| 44 | (Metric.isBounded_closedBall (x := (0 : V)) (r := R)) hclosed).subset |
| 45 | intro x hx |
| 46 | exact ⟨by simpa only [Metric.mem_closedBall, dist_zero_right] using hR x hx, hint x hx⟩ |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Integral.RealCoordinates.Construction |