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.BasisLift |
| 2 | |
| 3 | /-! # Bounded Basis -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.BoundedBasis.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! One step of lattice basis reduction, with controlled lifts from an |
| 12 | orthogonal projection. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open Set _root_.Module |
| 16 | |
| 17 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 18 | |
| 19 | def latticeProjection (Λ : Submodule ℤ E) (v : E) : Λ →ₗ[ℤ] ProjectedLattice.Construction.projectedLattice Λ v where |
| 20 | toFun x := ⟨ProjectedLattice.Construction.perpendicularProjection v x.val, ⟨x.val, x.property, rfl⟩⟩ |
| 21 | map_add' x y := Subtype.ext ((ProjectedLattice.Construction.perpendicularProjection v).map_add x.val y.val) |
| 22 | map_smul' m x := Subtype.ext |
| 23 | (((ProjectedLattice.Construction.perpendicularProjection v).toLinearMap.restrictScalars ℤ).map_smul m x.val) |
| 24 | |
| 25 | @[simp] theorem latticeProjection_coe (Λ : Submodule ℤ E) (v : E) (x : Λ) : |
| 26 | (latticeProjection Λ v x).val = ProjectedLattice.Construction.perpendicularProjection v x.val := rfl |
| 27 | |
| 28 | theorem shortest_projection_kernel (Λ : Submodule ℤ E) (v : Λ) (hv0 : v.val ≠ 0) |
| 29 | (hmin : ∀ x ∈ Λ, x ≠ 0 → ‖v.val‖ ≤ ‖x‖) : |
| 30 | (latticeProjection Λ v.val).ker = Submodule.span ℤ ({v} : Set Λ) := by |
| 31 | ext x |
| 32 | change latticeProjection Λ v.val x = 0 ↔ _ |
| 33 | rw [← Subtype.val_inj] |
| 34 | change ProjectedLattice.Construction.perpendicularProjection v.val x.val = 0 ↔ _ |
| 35 | rw [ProjectedLattice.Construction.perpendicularProjection, Submodule.orthogonalProjectionOnto_eq_zero_iff, |
| 36 | Submodule.orthogonal_orthogonal] |
| 37 | constructor |
| 38 | · intro hx |
| 39 | obtain ⟨t, ht⟩ := Submodule.mem_span_singleton.mp hx |
| 40 | obtain ⟨m, hm⟩ := ShortestVector.Construction.shortest_vector_scalar_is_integer Λ v.property hv0 hmin t |
| 41 | (ht ▸ x.property) |
| 42 | refine Submodule.mem_span_singleton.mpr ⟨m, Subtype.ext ?_⟩ |
| 43 | simpa only [hm, Int.cast_smul_eq_zsmul, Submodule.coe_smul] using ht |
| 44 | · intro hx |
| 45 | obtain ⟨m, hm⟩ := Submodule.mem_span_singleton.mp hx |
| 46 | refine Submodule.mem_span_singleton.mpr ⟨(m : ℝ), ?_⟩ |
| 47 | simpa only [Int.cast_smul_eq_zsmul, Submodule.coe_smul] using congrArg Subtype.val hm |
| 48 | |
| 49 | theorem exists_reduced_basis_lift (Λ : Submodule ℤ E) (v : Λ) (hv0 : v.val ≠ 0) |
| 50 | (hmin : ∀ x ∈ Λ, x ≠ 0 → ‖v.val‖ ≤ ‖x‖) |
| 51 | {ι : Type*} (b : Basis ι ℤ (ProjectedLattice.Construction.projectedLattice Λ v.val)) : |
| 52 | ∃ B : Basis (Unit ⊕ ι) ℤ Λ, |
| 53 | B (Sum.inl ()) = v ∧ |
| 54 | ∀ i, ProjectedLattice.Construction.perpendicularProjection v.val (B (Sum.inr i)).val = (b i).val ∧ |
| 55 | ‖(B (Sum.inr i)).val‖ ≤ ‖(b i).val‖ + ‖v.val‖ / 2 := by |
| 56 | have hpre (i : ι) : ∃ y : Λ, |
| 57 | latticeProjection Λ v.val y = b i ∧ ‖y.val‖ ≤ ‖(b i).val‖ + ‖v.val‖ / 2 := by |
| 58 | obtain ⟨x, hx, he⟩ := (b i).property |
| 59 | obtain ⟨y, hy, hyp, hyb⟩ := ProjectedLattice.Construction.projection_reduced_lift Λ v.property hx |
| 60 | refine ⟨⟨y, hy⟩, Subtype.ext (hyp.trans he), ?_⟩ |
| 61 | simpa only [show ProjectedLattice.Construction.perpendicularProjection v.val x = (b i).val from he] using hyb |
| 62 | choose u hu hub using hpre |
| 63 | let : Module.IsTorsionFree ℤ E := Module.IsTorsionFree.trans ℝ |
| 64 | obtain ⟨B, hB0, hBi⟩ := BasisLift.Construction.basis_lift_cyclic_kernel (latticeProjection Λ v.val) v |
| 65 | (show v ≠ 0 from fun he => hv0 (congrArg Subtype.val he)) |
| 66 | (shortest_projection_kernel Λ v hv0 hmin) b u hu |
| 67 | refine ⟨B, hB0, fun i => ?_⟩ |
| 68 | rw [hBi] |
| 69 | exact ⟨congrArg Subtype.val (hu i), hub i⟩ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | /-! A lattice spanned by short vectors has an integral basis with uniformly |
| 74 | bounded lengths. The proof iterates shortest-vector projection. -/ |
| 75 | |
| 76 | open scoped Classical |
| 77 | open Set _root_.Module |
| 78 | |
| 79 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 80 | |
| 81 | theorem projection_short_vectors_span (Λ : Submodule ℤ E) (R : ℝ) |
| 82 | (hspan : Submodule.span ℝ {x : E | x ∈ Λ ∧ ‖x‖ ≤ R} = ⊤) (v : E) : |
| 83 | Submodule.span ℝ {x : (Submodule.span ℝ ({v} : Set E))ᗮ | |
| 84 | x ∈ ProjectedLattice.Construction.projectedLattice Λ v ∧ ‖x‖ ≤ R} = ⊤ := by |
| 85 | let p := (ProjectedLattice.Construction.perpendicularProjection v).toLinearMap |
| 86 | have hp : p.range = ⊤ := by |
| 87 | apply LinearMap.range_eq_top.mpr |
| 88 | intro y |
| 89 | exact ⟨y.val, Submodule.orthogonalProjectionOnto_mem_subspace_eq_self y⟩ |
| 90 | apply top_unique |
| 91 | calc |
| 92 | ⊤ = Submodule.span ℝ (p '' {x : E | x ∈ Λ ∧ ‖x‖ ≤ R}) := by |
| 93 | rw [← Submodule.map_span, hspan, Submodule.map_top, hp] |
| 94 | _ ≤ Submodule.span ℝ {x | x ∈ ProjectedLattice.Construction.projectedLattice Λ v ∧ ‖x‖ ≤ R} := by |
| 95 | apply Submodule.span_mono |
| 96 | rintro _ ⟨x, ⟨hx, hxb⟩, rfl⟩ |
| 97 | refine ⟨⟨x, hx, rfl⟩, ?_⟩ |
| 98 | exact ((Submodule.span ℝ ({v} : Set E))ᗮ.norm_orthogonalProjectionOnto_apply_le x).trans hxb |
| 99 | |
| 100 | theorem bounded_spanning_lattice_basis (n : ℕ) |
| 101 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 102 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] (hdim : finrank ℝ E = n) |
| 103 | (R : ℝ) (hR : 0 ≤ R) |
| 104 | (hspan : Submodule.span ℝ {x : E | x ∈ Λ ∧ ‖x‖ ≤ R} = ⊤) : |
| 105 | ∃ b : Basis (Fin n) ℤ Λ, ∀ i, ‖(b i).val‖ ≤ n * R := by |
| 106 | induction n generalizing E with |
| 107 | | zero => |
| 108 | let : Subsingleton E := Module.finrank_zero_iff.mp hdim |
| 109 | exact ⟨Basis.empty Λ, fun i => Fin.elim0 i⟩ |
| 110 | | succ n ih => |
| 111 | have hy : ∃ y : E, (y ∈ Λ ∧ ‖y‖ ≤ R) ∧ y ≠ 0 := by |
| 112 | by_contra! hzero |
| 113 | have he : (⊤ : Submodule ℝ E) = ⊥ := hspan.symm.trans |
| 114 | (Submodule.span_eq_bot.mpr (fun x hx => hzero x hx)) |
| 115 | have hz := congrArg (fun W : Submodule ℝ E => finrank ℝ W) he |
| 116 | simp only [finrank_top, finrank_bot] at hz |
| 117 | omega |
| 118 | obtain ⟨y, ⟨hyΛ, hyR⟩, hy0⟩ := hy |
| 119 | obtain ⟨v, hvΛ, hv0, hmin⟩ := ShortestVector.Construction.exists_shortest_lattice_vector Λ y hyΛ hy0 |
| 120 | have hvR : ‖v‖ ≤ R := (hmin y hyΛ hy0).trans hyR |
| 121 | let W : Submodule ℝ E := Submodule.span ℝ {v} |
| 122 | let Λ' := ProjectedLattice.Construction.projectedLattice Λ v |
| 123 | let : DiscreteTopology Λ' := ProjectedLattice.Construction.projected_lattice_discrete Λ hvΛ hv0 hmin |
| 124 | have hdim' : finrank ℝ Wᗮ = n := by |
| 125 | have he := W.finrank_add_finrank_orthogonal |
| 126 | have hW : finrank ℝ W = 1 := finrank_span_singleton hv0 |
| 127 | omega |
| 128 | obtain ⟨b, hb⟩ := ih Λ' hdim' (projection_short_vectors_span Λ R hspan v) |
| 129 | obtain ⟨B, hB0, hBi⟩ := exists_reduced_basis_lift Λ ⟨v, hvΛ⟩ hv0 hmin b |
| 130 | have hB (i : Unit ⊕ Fin n) : ‖(B i).val‖ ≤ (n + 1 : ℕ) * R := by |
| 131 | rcases i with u | i |
| 132 | · cases u |
| 133 | rw [hB0] |
| 134 | have hn : 0 ≤ (n : ℝ) * R := mul_nonneg (Nat.cast_nonneg n) hR |
| 135 | push_cast |
| 136 | change ‖v‖ ≤ _ |
| 137 | nlinarith |
| 138 | · have hh := (hBi i).2 |
| 139 | have hi := hb i |
| 140 | change ‖(b i).val‖ ≤ (n : ℝ) * R at hi |
| 141 | push_cast |
| 142 | nlinarith |
| 143 | let e : (Unit ⊕ Fin n) ≃ Fin (n + 1) := Fintype.equivFinOfCardEq (by simp [Nat.add_comm]) |
| 144 | refine ⟨B.reindex e, fun i => ?_⟩ |
| 145 | simpa only [Basis.reindex_apply] using hB (e.symm i) |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end OAI.NumberTheory.ArithmeticGroups.Lattices.BoundedBasis.Construction |