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.FinSuccessorBasisLift |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.FractionalBasisLift |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.OrthogonalBasisLift |
| 4 | |
| 5 | /-! # Reduced Lattice Basis Existence -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.ReducedLatticeBasisExistence.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Shortest-vector projection and bounded fractional lifting perform |
| 14 | one full step of triangular lattice-basis reduction. -/ |
| 15 | |
| 16 | open _root_.Module |
| 17 | open scoped Classical |
| 18 | |
| 19 | theorem reduced_lattice_basis_successor |
| 20 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 21 | (Λ : Submodule ℤ E) (v : Λ) (hv0 : v.val ≠ 0) |
| 22 | (hmin : ∀ x ∈ Λ, x ≠ 0 → ‖v.val‖ ≤ ‖x‖) {n : ℕ} |
| 23 | (d : FinSuccessorBasisLift.Construction.ReducedLatticeBasis (ProjectedLattice.Construction.projectedLattice Λ v.val) n) : |
| 24 | Nonempty (FinSuccessorBasisLift.Construction.ReducedLatticeBasis Λ (n + 1)) := by |
| 25 | obtain ⟨B, c, hB0, hBi⟩ := FractionalBasisLift.Construction.exists_fractional_basis_lift Λ v hv0 hmin d.latticeBasis |
| 26 | obtain ⟨Q, hQ0, hQi, hQo⟩ := OrthogonalBasisLift.Construction.exists_orthogonal_basis_lift v.val hv0 d.orthogonalBasis d.orthogonal |
| 27 | let B' := B.reindex (FinSuccessorBasisLift.Construction.unitSumFinSuccEquiv n) |
| 28 | let Q' := Q.reindex (FinSuccessorBasisLift.Construction.unitSumFinSuccEquiv n) |
| 29 | have hB'0 : B' 0 = v := (FinSuccessorBasisLift.Construction.basis_reindex_unitSumFinSucc_zero B).trans hB0 |
| 30 | have hB'i (i : Fin n) : (B' i.succ).val = (d.latticeBasis i).val.val + c i • v.val := by |
| 31 | rw [show B' i.succ = B (Sum.inr i) from FinSuccessorBasisLift.Construction.basis_reindex_unitSumFinSucc_succ B i] |
| 32 | exact (hBi i).2 |
| 33 | have hQ'0 : Q' 0 = v.val := (FinSuccessorBasisLift.Construction.basis_reindex_unitSumFinSucc_zero Q).trans hQ0 |
| 34 | have hQ'i (i : Fin n) : Q' i.succ = (d.orthogonalBasis i).val := |
| 35 | (FinSuccessorBasisLift.Construction.basis_reindex_unitSumFinSucc_succ Q i).trans (hQi i) |
| 36 | have hrepr0 (x : E) : Q'.repr x 0 = Q.repr x (Sum.inl ()) := by |
| 37 | dsimp only [Q'] |
| 38 | rw [Basis.repr_reindex_apply] |
| 39 | rfl |
| 40 | have hreprS (x : E) (i : Fin n) : Q'.repr x i.succ = Q.repr x (Sum.inr i) := by |
| 41 | dsimp only [Q'] |
| 42 | rw [Basis.repr_reindex_apply] |
| 43 | simp [FinSuccessorBasisLift.Construction.unitSumFinSuccEquiv] |
| 44 | have hr00 : Q'.repr (B' 0).val 0 = 1 := by |
| 45 | rw [hB'0, ← hQ'0] |
| 46 | simp |
| 47 | have hr0S (j : Fin n) : Q'.repr (B' 0).val j.succ = 0 := by |
| 48 | rw [hB'0, ← hQ'0] |
| 49 | simp |
| 50 | have hrS0 (i : Fin n) : Q'.repr (B' i.succ).val 0 = c i := by |
| 51 | rw [hB'i, hrepr0] |
| 52 | exact OrthogonalBasisLift.Construction.orthogonal_lift_fractional_first v.val d.orthogonalBasis Q hQ0 hQi (d.latticeBasis i).val (c i) |
| 53 | have hrSS (i j : Fin n) : Q'.repr (B' i.succ).val j.succ = |
| 54 | d.orthogonalBasis.repr (d.latticeBasis i).val j := by |
| 55 | rw [hB'i, hreprS] |
| 56 | exact OrthogonalBasisLift.Construction.orthogonal_lift_fractional_rest v.val d.orthogonalBasis Q hQ0 hQi (d.latticeBasis i).val (c i) j |
| 57 | refine ⟨{ |
| 58 | latticeBasis := B' |
| 59 | orthogonalBasis := Q' |
| 60 | orthogonal := ?_ |
| 61 | upper := ?_ |
| 62 | diagonal := ?_ |
| 63 | reduced := ?_ |
| 64 | gap := ?_ }⟩ |
| 65 | · intro i j hij |
| 66 | simpa only [Q', Basis.reindex_apply] using |
| 67 | hQo (fun h => hij ((FinSuccessorBasisLift.Construction.unitSumFinSuccEquiv n).symm.injective h)) |
| 68 | · intro i j hij |
| 69 | revert j |
| 70 | refine Fin.cases ?_ (fun i => ?_) i |
| 71 | · intro j |
| 72 | refine Fin.cases ?_ (fun j _ => hr0S j) j |
| 73 | intro h |
| 74 | exact (lt_irrefl _ h).elim |
| 75 | · intro j |
| 76 | refine Fin.cases ?_ (fun j h => ?_) j |
| 77 | · intro h |
| 78 | exact (Fin.not_lt_zero _ h).elim |
| 79 | · rw [hrSS] |
| 80 | exact d.upper i j (Fin.succ_lt_succ_iff.mp h) |
| 81 | · intro i |
| 82 | exact Fin.cases hr00 (fun i => (hrSS i i).trans (d.diagonal i)) i |
| 83 | · intro i j hji |
| 84 | revert j |
| 85 | refine Fin.cases ?_ (fun i => ?_) i |
| 86 | · intro j h |
| 87 | exact (Fin.not_lt_zero _ h).elim |
| 88 | · intro j |
| 89 | refine Fin.cases ?_ (fun j h => ?_) j |
| 90 | · intro _ |
| 91 | rw [hrS0] |
| 92 | exact (hBi i).1 |
| 93 | · rw [hrSS] |
| 94 | exact d.reduced i j (Fin.succ_lt_succ_iff.mp h) |
| 95 | · intro i j hij |
| 96 | revert j |
| 97 | refine Fin.cases ?_ (fun i => ?_) i |
| 98 | · intro j |
| 99 | refine Fin.cases ?_ (fun j h => ?_) j |
| 100 | · intro h |
| 101 | simp at h |
| 102 | · have hj : j.val = 0 := by simpa using h.symm |
| 103 | rw [hQ'0, hQ'i, ← d.first_eq j hj] |
| 104 | exact ProjectedLattice.Construction.shortest_vector_projection_gap Λ v.property hmin (d.latticeBasis j).property |
| 105 | (fun hzero => d.latticeBasis.ne_zero j (Subtype.ext hzero)) |
| 106 | · intro j |
| 107 | refine Fin.cases ?_ (fun j h => ?_) j |
| 108 | · intro h |
| 109 | simp at h |
| 110 | · rw [hQ'i, hQ'i] |
| 111 | exact d.gap i j (by simpa using h) |
| 112 | |
| 113 | end |
| 114 | |
| 115 | /-! Every full discrete integral lattice has a basis in bounded |
| 116 | upper triangular position relative to an orthogonal real basis. -/ |
| 117 | |
| 118 | open _root_.Module |
| 119 | |
| 120 | theorem exists_reduced_lattice_basis (n : ℕ) |
| 121 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 122 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] (hdim : finrank ℝ E = n) |
| 123 | (hfull : Submodule.span ℝ (Λ : Set E) = ⊤) : Nonempty (FinSuccessorBasisLift.Construction.ReducedLatticeBasis Λ n) := by |
| 124 | induction n generalizing E with |
| 125 | | zero => |
| 126 | let : Subsingleton E := Module.finrank_zero_iff.mp hdim |
| 127 | exact ⟨{ |
| 128 | latticeBasis := Basis.empty Λ |
| 129 | orthogonalBasis := Basis.empty E |
| 130 | orthogonal := fun i => Fin.elim0 i |
| 131 | upper := fun i => Fin.elim0 i |
| 132 | diagonal := fun i => Fin.elim0 i |
| 133 | reduced := fun i => Fin.elim0 i |
| 134 | gap := fun i => Fin.elim0 i }⟩ |
| 135 | | succ n ih => |
| 136 | have hnz : ∃ y ∈ Λ, y ≠ 0 := by |
| 137 | by_contra! hz |
| 138 | have he : (⊤ : Submodule ℝ E) = ⊥ := hfull.symm.trans |
| 139 | (Submodule.span_eq_bot.mpr (fun x hx => hz x hx)) |
| 140 | have hf := congrArg (fun P : Submodule ℝ E => finrank ℝ P) he |
| 141 | simp only [finrank_top, finrank_bot] at hf |
| 142 | omega |
| 143 | obtain ⟨y, hy, hy0⟩ := hnz |
| 144 | obtain ⟨v, hv, hv0, hmin⟩ := ShortestVector.Construction.exists_shortest_lattice_vector Λ y hy hy0 |
| 145 | let W : Submodule ℝ E := Submodule.span ℝ {v} |
| 146 | let Λ' := ProjectedLattice.Construction.projectedLattice Λ v |
| 147 | let : DiscreteTopology Λ' := ProjectedLattice.Construction.projected_lattice_discrete Λ hv hv0 hmin |
| 148 | have hdim' : finrank ℝ Wᗮ = n := by |
| 149 | have he := W.finrank_add_finrank_orthogonal |
| 150 | have hw : finrank ℝ W = 1 := finrank_span_singleton hv0 |
| 151 | omega |
| 152 | obtain ⟨d⟩ := ih Λ' hdim' (ProjectedLattice.Construction.projected_lattice_full Λ hfull v) |
| 153 | exact reduced_lattice_basis_successor Λ ⟨v, hv⟩ hv0 hmin d |
| 154 | |
| 155 | end |
| 156 | |
| 157 | end OAI.NumberTheory.ArithmeticGroups.Lattices.ReducedLatticeBasisExistence.Construction |