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.RepresentationTheory.Weil.Local.BallImage |
| 2 | import Mathlib.Analysis.Normed.Field.Ultra |
| 3 | |
| 4 | /-! # Square Ball -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.SquareBall.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Exact images of sufficiently small nonarchimedean balls under the two local square maps. -/ |
| 11 | |
| 12 | open Set _root_.Metric Filter |
| 13 | open scoped _root_.Topology |
| 14 | |
| 15 | def principalSquareCoordinate {k : Type*} [Field k] (x : k) : k := 2 * x + x ^ 2 |
| 16 | |
| 17 | def normOneSquareCoordinate {k : Type*} [Field k] (x : k) : k := 2 * x / (1 - x ^ 2) |
| 18 | |
| 19 | theorem principalSquareCoordinate_norm |
| 20 | {k : Type*} [NormedField k] [IsUltrametricDist k] (x : k) (hx : ‖x‖ < ‖(2 : k)‖) : |
| 21 | ‖principalSquareCoordinate x‖ = ‖(2 : k)‖ * ‖x‖ := by |
| 22 | have hn : ‖(2 : k) + x‖ = ‖(2 : k)‖ := by |
| 23 | rw [IsUltrametricDist.norm_add_eq_max_of_norm_ne_norm hx.ne', max_eq_left hx.le] |
| 24 | rw [principalSquareCoordinate, show 2 * x + x ^ 2 = ((2 : k) + x) * x by ring, |
| 25 | norm_mul, hn] |
| 26 | |
| 27 | theorem normOneSquareCoordinate_norm |
| 28 | {k : Type*} [NormedField k] [IsUltrametricDist k] (x : k) (hx : ‖x‖ < 1) : |
| 29 | ‖normOneSquareCoordinate x‖ = ‖(2 : k)‖ * ‖x‖ := by |
| 30 | have hx2 : ‖-(x ^ 2)‖ < ‖(1 : k)‖ := by |
| 31 | rw [norm_neg, norm_pow, norm_one] |
| 32 | nlinarith [norm_nonneg x] |
| 33 | have hn : ‖(1 : k) - x ^ 2‖ = 1 := by |
| 34 | rw [sub_eq_add_neg, IsUltrametricDist.norm_add_eq_max_of_norm_ne_norm hx2.ne', |
| 35 | max_eq_left hx2.le, norm_one] |
| 36 | rw [normOneSquareCoordinate, norm_div, norm_mul, hn, div_one] |
| 37 | |
| 38 | theorem principalSquareCoordinate_map_nhds |
| 39 | {k : Type*} [NontriviallyNormedField k] [CompleteSpace k] [CharZero k] : |
| 40 | Filter.map (principalSquareCoordinate : k → k) (𝓝 (0 : k)) = 𝓝 (0 : k) := by |
| 41 | have hd : HasStrictDerivAt (principalSquareCoordinate : k → k) 2 0 := by |
| 42 | simpa [principalSquareCoordinate] using! |
| 43 | ((hasStrictDerivAt_id (0 : k)).const_mul 2).add ((hasStrictDerivAt_id (0 : k)).pow 2) |
| 44 | simpa [principalSquareCoordinate] using hd.map_nhds_eq (by norm_num : (2 : k) ≠ 0) |
| 45 | |
| 46 | theorem normOneSquareCoordinate_map_nhds |
| 47 | {k : Type*} [NontriviallyNormedField k] [CompleteSpace k] [CharZero k] : |
| 48 | Filter.map (normOneSquareCoordinate : k → k) (𝓝 (0 : k)) = 𝓝 (0 : k) := by |
| 49 | have hd : HasStrictDerivAt (normOneSquareCoordinate : k → k) 2 0 := by |
| 50 | simpa [normOneSquareCoordinate] using! |
| 51 | (((hasStrictDerivAt_id (0 : k)).const_mul 2).div |
| 52 | ((hasStrictDerivAt_const (0 : k) (1 : k)).sub ((hasStrictDerivAt_id (0 : k)).pow 2)) |
| 53 | (by norm_num)) |
| 54 | simpa [normOneSquareCoordinate] using hd.map_nhds_eq (by norm_num : (2 : k) ≠ 0) |
| 55 | |
| 56 | theorem exists_common_square_ball_radius |
| 57 | {k : Type*} [NontriviallyNormedField k] [CompleteSpace k] [CharZero k] [IsUltrametricDist k] : |
| 58 | ∃ r₀ : ℝ, 0 < r₀ ∧ r₀ ≤ min 1 ‖(2 : k)‖ ∧ ∀ r : ℝ, 0 < r → r ≤ r₀ → |
| 59 | (principalSquareCoordinate : k → k) '' Metric.ball 0 r = Metric.ball 0 (‖(2 : k)‖ * r) ∧ |
| 60 | (normOneSquareCoordinate : k → k) '' Metric.ball 0 r = Metric.ball 0 (‖(2 : k)‖ * r) := by |
| 61 | have h2 : 0 < ‖(2 : k)‖ := norm_pos_iff.mpr (by norm_num) |
| 62 | obtain ⟨r₁, hr₁, hr₁b, h₁⟩ := BallImage.Construction.small_ball_image_of_norm_identity |
| 63 | (principalSquareCoordinate : k → k) ‖(2 : k)‖ ‖(2 : k)‖ h2 h2 |
| 64 | principalSquareCoordinate_map_nhds principalSquareCoordinate_norm |
| 65 | obtain ⟨r₂, hr₂, hr₂b, h₂⟩ := BallImage.Construction.small_ball_image_of_norm_identity |
| 66 | (normOneSquareCoordinate : k → k) ‖(2 : k)‖ 1 h2 zero_lt_one |
| 67 | normOneSquareCoordinate_map_nhds normOneSquareCoordinate_norm |
| 68 | refine ⟨min r₁ r₂, lt_min hr₁ hr₂, |
| 69 | le_min ((min_le_right _ _).trans hr₂b) ((min_le_left _ _).trans hr₁b), ?_⟩ |
| 70 | intro r hr hrr |
| 71 | exact ⟨h₁ r hr (hrr.trans (min_le_left _ _)), h₂ r hr (hrr.trans (min_le_right _ _))⟩ |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.RepresentationTheory.Weil.Local.SquareBall.Construction |