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.AlgebraicGeometry.AbelianModuli.ReferenceFamily.OrthogonalHermitianCoordinates |
| 2 | import OAI.Geometry.ComplexBall.PrescribedSignsB |
| 3 | |
| 4 | /-! # Negative Line -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.NegativeLine |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Every negative line for the prescribed diagonal form has a unique |
| 13 | affine ball coordinate. The last coordinate cannot vanish because the |
| 14 | first two diagonal entries are positive. -/ |
| 15 | |
| 16 | open OAI.Geometry.ComplexBall.PrescribedSignsB |
| 17 | |
| 18 | theorem complex_self_product_nonneg (z : ℂ) : 0 ≤ (z * star z).re := by |
| 19 | change 0 ≤ z.re * z.re - z.im * (-z.im) |
| 20 | nlinarith [sq_nonneg z.re, sq_nonneg z.im] |
| 21 | |
| 22 | theorem negativeDiagonal_last_ne_zero (β : ℂ) (x : Fin 3 → ℂ) |
| 23 | (hx : (ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) x x).re < 0) : |
| 24 | x 2 ≠ 0 := by |
| 25 | intro hz |
| 26 | rw [OrthogonalHermitianCoordinates.complexHermitianMatrixForm_diagonal, hz] at hx |
| 27 | simp only [star_zero, mul_zero, add_zero, Complex.add_re] at hx |
| 28 | exact (not_lt_of_ge (add_nonneg (complex_self_product_nonneg (x 0)) |
| 29 | (complex_self_product_nonneg (x 1)))) hx |
| 30 | |
| 31 | def negativeLineCoordinate (x : Fin 3 → ℂ) : Geometry.ComplexBall.PrescribedSignsB.BallChart := |
| 32 | fun i => x i.castSucc / x 2 |
| 33 | |
| 34 | theorem negativeLineCoordinate_vector (x : Fin 3 → ℂ) (hx : x 2 ≠ 0) : |
| 35 | Geometry.ComplexBall.PrescribedSignsB.lineVector (negativeLineCoordinate x) = (x 2)⁻¹ • x := by |
| 36 | ext i |
| 37 | fin_cases i <;> simp [Geometry.ComplexBall.PrescribedSignsB.lineVector, negativeLineCoordinate, div_eq_mul_inv, mul_comm, hx] |
| 38 | |
| 39 | theorem lineVector_span_injective : Function.Injective (fun z : Geometry.ComplexBall.PrescribedSignsB.BallChart => |
| 40 | Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector z}) := by |
| 41 | intro z w h |
| 42 | have hm : Geometry.ComplexBall.PrescribedSignsB.lineVector z ∈ Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector w} := |
| 43 | (congrArg (fun S : Submodule ℂ Geometry.ComplexBall.PrescribedSignsB.Vec => Geometry.ComplexBall.PrescribedSignsB.lineVector z ∈ S) h).mp (Submodule.mem_span_singleton_self _) |
| 44 | obtain ⟨a, ha⟩ := Submodule.mem_span_singleton.mp hm |
| 45 | have ha1 : a = 1 := by |
| 46 | have h2 := congrFun ha 2 |
| 47 | simpa [Geometry.ComplexBall.PrescribedSignsB.lineVector] using h2 |
| 48 | rw [ha1, one_smul] at ha |
| 49 | ext i |
| 50 | fin_cases i |
| 51 | · exact (congrFun ha 0).symm |
| 52 | · exact (congrFun ha 1).symm |
| 53 | |
| 54 | theorem exists_unique_negativeLine_coordinate (β : ℂ) (P : Submodule ℂ (Fin 3 → ℂ)) |
| 55 | (hdim : Module.finrank ℂ P = 1) |
| 56 | (hneg : ∀ x ∈ P, x ≠ 0 → |
| 57 | (ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) x x).re < 0) : |
| 58 | ∃! z : Geometry.ComplexBall.PrescribedSignsB.BallChart, P = Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector z} ∧ |
| 59 | (ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) (Geometry.ComplexBall.PrescribedSignsB.lineVector z) (Geometry.ComplexBall.PrescribedSignsB.lineVector z)).re < 0 := by |
| 60 | have hp : 0 < Module.finrank ℂ P := hdim ▸ Nat.zero_lt_one |
| 61 | obtain ⟨v, hv⟩ := Module.finrank_pos_iff_exists_ne_zero.mp hp |
| 62 | have hnv : v.val ≠ 0 := fun h => hv (Subtype.ext h) |
| 63 | have hlast : v.val 2 ≠ 0 := negativeDiagonal_last_ne_zero β v.val (hneg v.val v.property hnv) |
| 64 | let z := negativeLineCoordinate v.val |
| 65 | have hz : Geometry.ComplexBall.PrescribedSignsB.lineVector z ∈ P := (negativeLineCoordinate_vector v.val hlast).symm ▸ |
| 66 | P.smul_mem (v.val 2)⁻¹ v.property |
| 67 | have hspan : Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector z} = P := |
| 68 | Submodule.eq_of_le_of_finrank_eq (Submodule.span_le.mpr (Set.singleton_subset_iff.mpr hz)) |
| 69 | ((finrank_span_singleton (Geometry.ComplexBall.PrescribedSignsB.lineVector_ne_zero z)).trans hdim.symm) |
| 70 | refine ⟨z, ⟨hspan.symm, hneg _ hz (Geometry.ComplexBall.PrescribedSignsB.lineVector_ne_zero z)⟩, ?_⟩ |
| 71 | intro w hw |
| 72 | exact lineVector_span_injective (hw.1.symm.trans hspan.symm) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | section |
| 77 | |
| 78 | /-! The affine negative-line formula describes the actual image of |
| 79 | the one-dimensional subspace under a complex-linear isomorphism. -/ |
| 80 | |
| 81 | open OAI.Geometry.ComplexBall.PrescribedSignsB |
| 82 | |
| 83 | theorem negativeLineCoordinate_span (x : Fin 3 → ℂ) (hx : x 2 ≠ 0) : |
| 84 | Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector (negativeLineCoordinate x)} = Submodule.span ℂ {x} := by |
| 85 | rw [negativeLineCoordinate_vector x hx] |
| 86 | exact Submodule.span_singleton_smul_eq (isUnit_iff_ne_zero.mpr (inv_ne_zero hx)) x |
| 87 | |
| 88 | theorem map_lineVector_span (f : (Fin 3 → ℂ) →ₗ[ℂ] (Fin 3 → ℂ)) |
| 89 | (z : Geometry.ComplexBall.PrescribedSignsB.BallChart) (hz : f (Geometry.ComplexBall.PrescribedSignsB.lineVector z) 2 ≠ 0) : |
| 90 | (Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector z}).map f = |
| 91 | Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector (negativeLineCoordinate (f (Geometry.ComplexBall.PrescribedSignsB.lineVector z)))} := by |
| 92 | rw [Submodule.map_span, Set.image_singleton] |
| 93 | exact (negativeLineCoordinate_span (f (Geometry.ComplexBall.PrescribedSignsB.lineVector z)) hz).symm |
| 94 | |
| 95 | def normalizedLineMap (eA eB f : (Fin 3 → ℂ) ≃ₗ[ℂ] (Fin 3 → ℂ)) : |
| 96 | (Fin 3 → ℂ) ≃ₗ[ℂ] (Fin 3 → ℂ) := eA.trans (f.trans eB.symm) |
| 97 | |
| 98 | theorem normalized_line_submodule_transport |
| 99 | (P Q : Submodule ℂ (Fin 3 → ℂ)) |
| 100 | (eA eB f : (Fin 3 → ℂ) ≃ₗ[ℂ] (Fin 3 → ℂ)) (z w : Geometry.ComplexBall.PrescribedSignsB.BallChart) |
| 101 | (hP : P.map eA.symm.toLinearMap = Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector z}) |
| 102 | (hQ : Q.map eB.symm.toLinearMap = Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector w}) |
| 103 | (hz : normalizedLineMap eA eB f (Geometry.ComplexBall.PrescribedSignsB.lineVector z) 2 ≠ 0) |
| 104 | (hw : w = negativeLineCoordinate (normalizedLineMap eA eB f (Geometry.ComplexBall.PrescribedSignsB.lineVector z))) : |
| 105 | P.map f.toLinearMap = Q := by |
| 106 | apply Submodule.map_injective_of_injective eB.symm.injective |
| 107 | rw [hQ] |
| 108 | have hn : eB.symm.toLinearMap.comp f.toLinearMap = |
| 109 | (normalizedLineMap eA eB f).toLinearMap.comp eA.symm.toLinearMap := by |
| 110 | apply LinearMap.ext |
| 111 | intro x |
| 112 | exact congrArg (fun y => eB.symm (f y)) (eA.apply_symm_apply x).symm |
| 113 | rw [← Submodule.map_comp, hn, Submodule.map_comp, hP] |
| 114 | exact (map_lineVector_span (normalizedLineMap eA eB f).toLinearMap z hz).trans |
| 115 | (congrArg (fun t => Submodule.span ℂ {Geometry.ComplexBall.PrescribedSignsB.lineVector t}) hw.symm) |
| 116 | |
| 117 | theorem diagonalIsometry_last_ne_zero (β : ℂ) |
| 118 | (f : (Fin 3 → ℂ) ≃ₗ[ℂ] (Fin 3 → ℂ)) |
| 119 | (hf : ∀ x y, ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) (f x) (f y) = |
| 120 | ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) x y) |
| 121 | (z : Geometry.ComplexBall.PrescribedSignsB.BallChart) |
| 122 | (hz : (ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) (Geometry.ComplexBall.PrescribedSignsB.lineVector z) (Geometry.ComplexBall.PrescribedSignsB.lineVector z)).re < 0) : |
| 123 | f (Geometry.ComplexBall.PrescribedSignsB.lineVector z) 2 ≠ 0 := |
| 124 | negativeDiagonal_last_ne_zero β (f (Geometry.ComplexBall.PrescribedSignsB.lineVector z)) |
| 125 | ((congrArg (fun t : ℂ => t.re < 0) (hf (Geometry.ComplexBall.PrescribedSignsB.lineVector z) (Geometry.ComplexBall.PrescribedSignsB.lineVector z))).mpr hz) |
| 126 | |
| 127 | end |
| 128 | |
| 129 | /-! Explicit affine projective coordinates preserve the negative domain |
| 130 | and compose as the original linear maps. -/ |
| 131 | |
| 132 | open OAI.Geometry.ComplexBall.PrescribedSignsB |
| 133 | |
| 134 | theorem hermitian_smul_self_real |
| 135 | (F : (Fin 3 → ℂ) →ₗ[ℂ] (Fin 3 → ℂ) →ₗ⋆[ℂ] ℂ) (c : ℂ) (x : Fin 3 → ℂ) : |
| 136 | (F (c • x) (c • x)).re = Complex.normSq c * (F x x).re := by |
| 137 | have h : F (c • x) (c • x) = (c * star c) * F x x := by |
| 138 | simp only [map_smul, LinearMap.smul_apply, map_smulₛₗ, smul_eq_mul] |
| 139 | change star c * (c * F x x) = c * star c * F x x |
| 140 | ring |
| 141 | rw [h, Complex.star_def, Complex.mul_conj] |
| 142 | simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] |
| 143 | |
| 144 | theorem negativeLineCoordinate_negative (β : ℂ) (x : Fin 3 → ℂ) |
| 145 | (hx : (ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) x x).re < 0) : |
| 146 | (ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) |
| 147 | (Geometry.ComplexBall.PrescribedSignsB.lineVector (negativeLineCoordinate x)) (Geometry.ComplexBall.PrescribedSignsB.lineVector (negativeLineCoordinate x))).re < 0 := by |
| 148 | have hl := negativeDiagonal_last_ne_zero β x hx |
| 149 | rw [negativeLineCoordinate_vector x hl, hermitian_smul_self_real] |
| 150 | exact mul_neg_of_pos_of_neg (Complex.normSq_pos.mpr (inv_ne_zero hl)) hx |
| 151 | |
| 152 | theorem negativeLineCoordinate_smul (c : ℂ) (hc : c ≠ 0) (x : Fin 3 → ℂ) : |
| 153 | negativeLineCoordinate (c • x) = negativeLineCoordinate x := by |
| 154 | funext i |
| 155 | change (c * x i.castSucc) / (c * x 2) = x i.castSucc / x 2 |
| 156 | exact mul_div_mul_left _ _ hc |
| 157 | |
| 158 | theorem negativeLineCoordinate_lineVector (z : Geometry.ComplexBall.PrescribedSignsB.BallChart) : negativeLineCoordinate (Geometry.ComplexBall.PrescribedSignsB.lineVector z) = z := by |
| 159 | funext i |
| 160 | fin_cases i <;> simp [negativeLineCoordinate, Geometry.ComplexBall.PrescribedSignsB.lineVector] |
| 161 | |
| 162 | theorem negativeLineCoordinate_comp |
| 163 | (f g : (Fin 3 → ℂ) ≃ₗ[ℂ] (Fin 3 → ℂ)) (z : Geometry.ComplexBall.PrescribedSignsB.BallChart) (hg : g (Geometry.ComplexBall.PrescribedSignsB.lineVector z) 2 ≠ 0) : |
| 164 | negativeLineCoordinate (f (Geometry.ComplexBall.PrescribedSignsB.lineVector (negativeLineCoordinate (g (Geometry.ComplexBall.PrescribedSignsB.lineVector z))))) = |
| 165 | negativeLineCoordinate ((f * g) (Geometry.ComplexBall.PrescribedSignsB.lineVector z)) := by |
| 166 | rw [negativeLineCoordinate_vector _ hg, f.map_smul, negativeLineCoordinate_smul _ (inv_ne_zero hg)] |
| 167 | rfl |
| 168 | |
| 169 | end |
| 170 | |
| 171 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.NegativeLine |