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.ShortestVector |
| 2 | |
| 3 | /-! # Projected Lattice -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.ProjectedLattice.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Projection along a shortest vector preserves lattice discreteness and gives |
| 10 | a uniform lower bound for the lengths of nonzero projected vectors. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open Set |
| 14 | |
| 15 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 16 | |
| 17 | def perpendicularProjection (v : E) : E →L[ℝ] (Submodule.span ℝ ({v} : Set E))ᗮ := |
| 18 | (Submodule.span ℝ ({v} : Set E))ᗮ.orthogonalProjectionOnto |
| 19 | |
| 20 | def projectedLattice (Λ : Submodule ℤ E) (v : E) : |
| 21 | Submodule ℤ (Submodule.span ℝ ({v} : Set E))ᗮ := |
| 22 | Λ.map ((perpendicularProjection v).toLinearMap.restrictScalars ℤ) |
| 23 | |
| 24 | @[simp] theorem perpendicularProjection_self (v : E) : perpendicularProjection v v = 0 := by |
| 25 | apply Subtype.ext |
| 26 | exact Submodule.starProjection_orthogonalComplement_singleton_eq_zero v |
| 27 | |
| 28 | theorem projection_reduced_lift (Λ : Submodule ℤ E) {v : E} (hv : v ∈ Λ) |
| 29 | {x : E} (hx : x ∈ Λ) : |
| 30 | ∃ y ∈ Λ, perpendicularProjection v y = perpendicularProjection v x ∧ |
| 31 | ‖y‖ ≤ ‖perpendicularProjection v x‖ + ‖v‖ / 2 := by |
| 32 | let W : Submodule ℝ E := Submodule.span ℝ {v} |
| 33 | obtain ⟨t, ht⟩ := Submodule.mem_span_singleton.mp (W.starProjection_apply_mem x) |
| 34 | let m : ℤ := round t |
| 35 | let y : E := x - m • v |
| 36 | have hymem : y ∈ Λ := Λ.sub_mem hx (Λ.smul_mem m hv) |
| 37 | have hyp : perpendicularProjection v y = perpendicularProjection v x := by |
| 38 | simp [y] |
| 39 | have hy : y = (perpendicularProjection v x).val + (t - (m : ℝ)) • v := by |
| 40 | change x - m • v = Wᗮ.starProjection x + (t - (m : ℝ)) • v |
| 41 | rw [Submodule.starProjection_orthogonal_val, ← ht, sub_smul, Int.cast_smul_eq_zsmul] |
| 42 | abel |
| 43 | refine ⟨y, hymem, hyp, ?_⟩ |
| 44 | rw [hy] |
| 45 | calc |
| 46 | ‖(perpendicularProjection v x).val + (t - (m : ℝ)) • v‖ ≤ |
| 47 | ‖(perpendicularProjection v x).val‖ + ‖(t - (m : ℝ)) • v‖ := norm_add_le _ _ |
| 48 | _ ≤ ‖perpendicularProjection v x‖ + ‖v‖ / 2 := by |
| 49 | rw [norm_smul, Real.norm_eq_abs] |
| 50 | have hb := mul_le_mul_of_nonneg_right (abs_sub_round t) (norm_nonneg v) |
| 51 | change ‖perpendicularProjection v x‖ + |t - (m : ℝ)| * ‖v‖ ≤ _ |
| 52 | linarith |
| 53 | |
| 54 | theorem shortest_vector_projection_gap (Λ : Submodule ℤ E) {v : E} (hv : v ∈ Λ) |
| 55 | (hmin : ∀ x ∈ Λ, x ≠ 0 → ‖v‖ ≤ ‖x‖) |
| 56 | {w : (Submodule.span ℝ ({v} : Set E))ᗮ} (hw : w ∈ projectedLattice Λ v) |
| 57 | (hw0 : w ≠ 0) : ‖v‖ ≤ 2 * ‖w‖ := by |
| 58 | obtain ⟨x, hx, rfl⟩ := hw |
| 59 | obtain ⟨y, hy, hyp, hybound⟩ := projection_reduced_lift Λ hv hx |
| 60 | have hy0 : y ≠ 0 := by |
| 61 | intro he |
| 62 | apply hw0 |
| 63 | simpa [he] using hyp.symm |
| 64 | have h := hmin y hy hy0 |
| 65 | change ‖v‖ ≤ 2 * ‖perpendicularProjection v x‖ |
| 66 | linarith |
| 67 | |
| 68 | theorem projected_lattice_discrete (Λ : Submodule ℤ E) {v : E} (hv : v ∈ Λ) |
| 69 | (hv0 : v ≠ 0) (hmin : ∀ x ∈ Λ, x ≠ 0 → ‖v‖ ≤ ‖x‖) : |
| 70 | DiscreteTopology (projectedLattice Λ v) := by |
| 71 | apply discreteTopology_iff_isOpen_singleton_zero.mpr |
| 72 | have he : ({0} : Set (projectedLattice Λ v)) = Metric.ball 0 (‖v‖ / 2) := by |
| 73 | ext w |
| 74 | simp only [Set.mem_singleton_iff, Metric.mem_ball, dist_zero_right] |
| 75 | constructor |
| 76 | · rintro rfl |
| 77 | simpa using half_pos (norm_pos_iff.mpr hv0) |
| 78 | · intro hw |
| 79 | by_contra hw0 |
| 80 | have h := shortest_vector_projection_gap Λ hv hmin w.property |
| 81 | (show w.val ≠ 0 from fun he => hw0 (Subtype.ext he)) |
| 82 | change ‖v‖ ≤ 2 * ‖w‖ at h |
| 83 | linarith |
| 84 | rw [he] |
| 85 | exact Metric.isOpen_ball |
| 86 | |
| 87 | theorem projected_lattice_full (Λ : Submodule ℤ E) |
| 88 | (hΛ : Submodule.span ℝ (Λ : Set E) = ⊤) (v : E) : |
| 89 | Submodule.span ℝ (projectedLattice Λ v : Set (Submodule.span ℝ ({v} : Set E))ᗮ) = ⊤ := by |
| 90 | rw [projectedLattice, Submodule.map_coe, LinearMap.coe_restrictScalars, |
| 91 | ← Submodule.map_span, hΛ, Submodule.map_top] |
| 92 | apply LinearMap.range_eq_top.mpr |
| 93 | intro y |
| 94 | refine ⟨y.val, ?_⟩ |
| 95 | exact Submodule.orthogonalProjectionOnto_mem_subspace_eq_self y |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.NumberTheory.ArithmeticGroups.Lattices.ProjectedLattice.Construction |