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.ComplexMultiplication.HodgeComparison.HermitianMatrixPositive |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.Metric |
| 3 | import Mathlib.Analysis.InnerProductSpace.NormDet |
| 4 | |
| 5 | /-! # Real Basis -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.RealBasis.CM.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Real metric volume and complex Gram determinants agree, with their |
| 14 | normalizations obtained by restriction of scalars. -/ |
| 15 | |
| 16 | variable {E F : Type*} [NormedAddCommGroup E] [NormedAddCommGroup F] |
| 17 | [InnerProductSpace ℂ E] [InnerProductSpace ℝ E] [IsScalarTower ℝ ℂ E] |
| 18 | [InnerProductSpace ℂ F] [InnerProductSpace ℝ F] [IsScalarTower ℝ ℂ F] |
| 19 | [CompleteSpace E] [CompleteSpace F] |
| 20 | |
| 21 | omit [IsScalarTower ℝ ℂ E] [CompleteSpace E] in |
| 22 | theorem real_inner_complex_re (u v : E) : inner ℝ u v = (inner ℂ u v).re := by |
| 23 | rw [real_inner_eq_norm_add_mul_self_sub_norm_mul_self_sub_norm_mul_self_div_two] |
| 24 | exact (re_inner_eq_norm_add_mul_self_sub_norm_mul_self_sub_norm_mul_self_div_two |
| 25 | (𝕜 := ℂ) u v).symm |
| 26 | |
| 27 | theorem complex_adjoint_restrictScalars (T : E →L[ℂ] F) : |
| 28 | (T.restrictScalars ℝ).adjoint = T.adjoint.restrictScalars ℝ := by |
| 29 | symm |
| 30 | apply (ContinuousLinearMap.eq_adjoint_iff _ _).mpr |
| 31 | intro u v |
| 32 | rw [real_inner_complex_re, real_inner_complex_re] |
| 33 | exact congrArg Complex.re (T.adjoint_inner_left v u) |
| 34 | |
| 35 | variable [FiniteDimensional ℂ E] |
| 36 | |
| 37 | local instance : FiniteDimensional ℝ E := FiniteDimensional.trans ℝ ℂ E |
| 38 | |
| 39 | theorem complex_normDet_restrictScalars (T : E →L[ℂ] F) : |
| 40 | (T.restrictScalars ℝ).toLinearMap.normDet = T.toLinearMap.normDet ^ 2 := by |
| 41 | have h := (T.restrictScalars ℝ).normDet_sq |
| 42 | rw [complex_adjoint_restrictScalars] at h |
| 43 | change (T.restrictScalars ℝ).toLinearMap.normDet ^ 2 = |
| 44 | (((T.adjoint.comp T).toLinearMap).restrictScalars ℝ).det at h |
| 45 | rw [LinearMap.det_restrictScalars, Algebra.norm_complex_apply] at h |
| 46 | change (T.restrictScalars ℝ).toLinearMap.normDet ^ 2 = |
| 47 | Complex.normSq (T.adjoint.comp T).det at h |
| 48 | rw [← T.normDet_sq] at h |
| 49 | change (T.restrictScalars ℝ).toLinearMap.normDet ^ 2 = |
| 50 | Complex.normSq ((T.toLinearMap.normDet ^ 2 : ℝ) : ℂ) at h |
| 51 | rw [Complex.normSq_ofReal] at h |
| 52 | have hn := (T.restrictScalars ℝ).toLinearMap.normDet_nonneg |
| 53 | nlinarith [sq_nonneg (T.toLinearMap.normDet)] |
| 54 | |
| 55 | theorem metricDensity_eq_complex_gram {ι κ : Type*} |
| 56 | [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] |
| 57 | (b : OrthonormalBasis ι ℝ E) (c : OrthonormalBasis κ ℂ E) |
| 58 | (B : E →L[ℝ] E →L[ℝ] ℝ) (T : E →L[ℂ] F) |
| 59 | (hB : ∀ u v, B u v = inner ℝ (T u) (T v)) : |
| 60 | (Metric.CM.Construction.metricDensity b.toBasis B : ℂ) = (Matrix.gram ℂ (fun i => T (c i))).det := by |
| 61 | have hM : Metric.CM.Construction.metricMatrix b.toBasis B = Matrix.gram ℝ (fun i => T (b i)) := by |
| 62 | ext i j |
| 63 | rw [Metric.CM.Construction.metricMatrix_apply, Matrix.gram_apply] |
| 64 | exact hB _ _ |
| 65 | have hR := (T.restrictScalars ℝ).toLinearMap.normDet_sq_eq_det_gram b |
| 66 | have hC := T.toLinearMap.normDet_sq_eq_det_gram c |
| 67 | change (T.restrictScalars ℝ).toLinearMap.normDet ^ 2 = |
| 68 | (Matrix.gram ℝ (fun i => T (b i))).det at hR |
| 69 | rw [Metric.CM.Construction.metricDensity, hM, ← hR, Real.sqrt_sq (LinearMap.normDet_nonneg _), |
| 70 | complex_normDet_restrictScalars] |
| 71 | exact hC |
| 72 | |
| 73 | end |
| 74 | |
| 75 | /-! A complex orthonormal basis and its multiples by I form a real |
| 76 | orthonormal basis, with the explicit paired coordinates retained. -/ |
| 77 | |
| 78 | variable {E ι : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] |
| 79 | [InnerProductSpace ℝ E] [IsScalarTower ℝ ℂ E] [Fintype ι] |
| 80 | |
| 81 | theorem complex_real_basis_orthonormal (b : OrthonormalBasis ι ℂ E) : |
| 82 | Orthonormal ℝ (Complex.basisOneI.smulTower b.toBasis) := by |
| 83 | classical |
| 84 | rw [orthonormal_iff_ite] |
| 85 | rintro ⟨a, i⟩ ⟨c, j⟩ |
| 86 | simp only [Module.Basis.smulTower_apply, real_inner_complex_re, inner_smul_left, |
| 87 | inner_smul_right] |
| 88 | fin_cases a <;> fin_cases c <;> by_cases hij : i = j <;> |
| 89 | simp [Complex.basisOneI, hij] |
| 90 | |
| 91 | def complexRealOrthonormalBasis (b : OrthonormalBasis ι ℂ E) : |
| 92 | OrthonormalBasis (Fin 2 × ι) ℝ E := |
| 93 | (Complex.basisOneI.smulTower b.toBasis).toOrthonormalBasis (complex_real_basis_orthonormal b) |
| 94 | |
| 95 | theorem complexRealOrthonormalBasis_apply (b : OrthonormalBasis ι ℂ E) (a : Fin 2) (i : ι) : |
| 96 | complexRealOrthonormalBasis b (a, i) = Complex.basisOneI a • b i := by |
| 97 | simp only [complexRealOrthonormalBasis, Module.Basis.coe_toOrthonormalBasis, |
| 98 | Module.Basis.smulTower_apply, OrthonormalBasis.coe_toBasis] |
| 99 | |
| 100 | theorem complexRealOrthonormalBasis_zero (b : OrthonormalBasis ι ℂ E) (i : ι) : |
| 101 | complexRealOrthonormalBasis b (0, i) = b i := by |
| 102 | rw [complexRealOrthonormalBasis_apply] |
| 103 | simp [Complex.basisOneI] |
| 104 | |
| 105 | theorem complexRealOrthonormalBasis_one (b : OrthonormalBasis ι ℂ E) (i : ι) : |
| 106 | complexRealOrthonormalBasis b (1, i) = Complex.I • b i := by |
| 107 | rw [complexRealOrthonormalBasis_apply] |
| 108 | simp [Complex.basisOneI] |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.RealBasis.CM.Construction |