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 Mathlib |
| 2 | |
| 3 | /-! # Shortest Vector -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.ShortestVector.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Shortest vectors and integral points on their real lines. -/ |
| 10 | |
| 11 | open scoped Classical |
| 12 | open Set _root_.Metric |
| 13 | |
| 14 | theorem exists_shortest_lattice_vector |
| 15 | {E : Type*} [NormedAddCommGroup E] [ProperSpace E] |
| 16 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] |
| 17 | (y : E) (hy : y ∈ Λ) (hy0 : y ≠ 0) : |
| 18 | ∃ v ∈ Λ, v ≠ 0 ∧ ∀ x ∈ Λ, x ≠ 0 → ‖v‖ ≤ ‖x‖ := by |
| 19 | have hclosed : IsClosed (Λ : Set E) := |
| 20 | show IsClosed (Λ.toAddSubgroup : Set E) from AddSubgroup.isClosed_of_discreteTopology |
| 21 | have hdisc : IsDiscrete (Λ : Set E) := isDiscrete_iff_discreteTopology.mpr inferInstance |
| 22 | let S : Set E := ((Λ : Set E) ∩ closedBall 0 ‖y‖) \ {0} |
| 23 | have hfinite : S.Finite := |
| 24 | ((isCompact_closedBall 0 ‖y‖).inter_left hclosed).finite |
| 25 | (hdisc.mono inter_subset_left) |>.sdiff |
| 26 | have hyS : y ∈ S := ⟨⟨hy, by simp⟩, hy0⟩ |
| 27 | obtain ⟨v, hv, hmin⟩ := Set.exists_min_image S (fun x : E => ‖x‖) hfinite ⟨y, hyS⟩ |
| 28 | refine ⟨v, hv.1.1, hv.2, fun x hx hx0 => ?_⟩ |
| 29 | by_cases hxy : ‖x‖ ≤ ‖y‖ |
| 30 | · exact hmin x ⟨⟨hx, by simpa using hxy⟩, hx0⟩ |
| 31 | · exact (hmin y hyS).trans (le_of_not_ge hxy) |
| 32 | |
| 33 | theorem shortest_vector_scalar_is_integer |
| 34 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 35 | (Λ : Submodule ℤ E) {v : E} (hv : v ∈ Λ) (hv0 : v ≠ 0) |
| 36 | (hmin : ∀ x ∈ Λ, x ≠ 0 → ‖v‖ ≤ ‖x‖) |
| 37 | (t : ℝ) (ht : t • v ∈ Λ) : ∃ m : ℤ, t = m := by |
| 38 | let m := round t |
| 39 | have hzmem : (t - (m : ℝ)) • v ∈ Λ := by |
| 40 | rw [sub_smul] |
| 41 | exact Λ.sub_mem ht (by simpa only [Int.cast_smul_eq_zsmul] using Λ.smul_mem m hv) |
| 42 | have hnorm : ‖(t - (m : ℝ)) • v‖ < ‖v‖ := by |
| 43 | rw [norm_smul, Real.norm_eq_abs] |
| 44 | have hround : |t - (m : ℝ)| ≤ 1 / 2 := abs_sub_round t |
| 45 | have hvpos : 0 < ‖v‖ := norm_pos_iff.mpr hv0 |
| 46 | nlinarith |
| 47 | have hz : (t - (m : ℝ)) • v = 0 := by |
| 48 | by_contra hne |
| 49 | exact (not_lt_of_ge (hmin _ hzmem hne)) hnorm |
| 50 | have he : t - (m : ℝ) = 0 := (smul_eq_zero.mp hz).resolve_right hv0 |
| 51 | exact ⟨m, sub_eq_zero.mp he⟩ |
| 52 | |
| 53 | theorem shortest_vector_line_intersection |
| 54 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 55 | (Λ : Submodule ℤ E) {v : E} (hv : v ∈ Λ) (hv0 : v ≠ 0) |
| 56 | (hmin : ∀ x ∈ Λ, x ≠ 0 → ‖v‖ ≤ ‖x‖) : |
| 57 | (Submodule.span ℝ ({v} : Set E)).restrictScalars ℤ ⊓ Λ = Submodule.span ℤ {v} := by |
| 58 | apply le_antisymm |
| 59 | · intro x hx |
| 60 | obtain ⟨t, rfl⟩ := Submodule.mem_span_singleton.mp hx.1 |
| 61 | obtain ⟨m, rfl⟩ := shortest_vector_scalar_is_integer Λ hv hv0 hmin t hx.2 |
| 62 | exact Submodule.mem_span_singleton.mpr ⟨m, by simp only [Int.cast_smul_eq_zsmul]⟩ |
| 63 | · apply Submodule.span_le.mpr |
| 64 | intro x hx |
| 65 | have he : x = v := Set.mem_singleton_iff.mp hx |
| 66 | rw [he] |
| 67 | exact ⟨Submodule.mem_span_singleton_self v, hv⟩ |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.NumberTheory.ArithmeticGroups.Lattices.ShortestVector.Construction |