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 Mathlib |
| 2 | |
| 3 | /-! # Complex Linear Extension -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace RepresentationTheory.Theta.Adelic.ComplexLinearExtension |
| 10 | |
| 11 | /-! Complex-linear extension of a real-linear map out of a coordinate |
| 12 | space, using the actual coordinate basis. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | variable {I V : Type*} [Fintype I] [AddCommGroup V] [Module ℂ V] |
| 17 | |
| 18 | def complexExtension (f : (I → ℝ) →ₗ[ℝ] V) : (I → ℂ) →ₗ[ℂ] V := |
| 19 | (Pi.basisFun ℂ I).constr ℂ (fun i => f (Pi.single i 1)) |
| 20 | |
| 21 | theorem complexExtension_apply (f : (I → ℝ) →ₗ[ℝ] V) (z : I → ℂ) : |
| 22 | complexExtension f z = ∑ i, z i • f (Pi.single i 1) := by |
| 23 | rw [complexExtension, Module.Basis.constr_apply] |
| 24 | simp [Finsupp.sum_fintype] |
| 25 | |
| 26 | theorem complexExtension_real (f : (I → ℝ) →ₗ[ℝ] V) (x : I → ℝ) : |
| 27 | complexExtension f (fun i => (x i : ℂ)) = f x := by |
| 28 | rw [complexExtension_apply] |
| 29 | have h := congrArg f ((Pi.basisFun ℝ I).sum_repr x) |
| 30 | simpa only [map_sum, map_smul, Pi.basisFun_repr, Pi.basisFun_apply, Complex.coe_smul] using h |
| 31 | |
| 32 | theorem complexExtension_decomposition (f : (I → ℝ) →ₗ[ℝ] V) (z : I → ℂ) : |
| 33 | complexExtension f z = f (fun i => (z i).re) + Complex.I • f (fun i => (z i).im) := by |
| 34 | have hz : z = (fun i => ((z i).re : ℂ)) + Complex.I • (fun i => ((z i).im : ℂ)) := by |
| 35 | funext i |
| 36 | change z i = (z i).re + Complex.I * (z i).im |
| 37 | rw [mul_comm] |
| 38 | exact (Complex.re_add_im (z i)).symm |
| 39 | conv_lhs => rw [hz, map_add, map_smul, complexExtension_real, complexExtension_real] |
| 40 | |
| 41 | theorem complexExtension_unique (f : (I → ℝ) →ₗ[ℝ] V) (g : (I → ℂ) →ₗ[ℂ] V) |
| 42 | (hg : ∀ x : I → ℝ, g (fun i => (x i : ℂ)) = f x) : g = complexExtension f := by |
| 43 | apply (Pi.basisFun ℂ I).ext |
| 44 | intro i |
| 45 | have hi : (Pi.basisFun ℂ I) i = fun j => (((Pi.single i (1 : ℝ) : I → ℝ) j) : ℂ) := by |
| 46 | funext j |
| 47 | simp [Pi.basisFun_apply, Pi.single_apply] |
| 48 | split_ifs <;> norm_num |
| 49 | rw [hi, hg, complexExtension_real] |
| 50 | |
| 51 | end RepresentationTheory.Theta.Adelic.ComplexLinearExtension |
| 52 | |
| 53 | namespace RepresentationTheory.Theta.Adelic.ComplexLinearExtension.PairedComplexification |
| 54 | |
| 55 | /-! Complexifying a real coordinate space identified with a complex |
| 56 | vector space gives the standard and conjugate summands. -/ |
| 57 | |
| 58 | open scoped Classical ComplexConjugate |
| 59 | |
| 60 | open OAI.RepresentationTheory.Theta.Adelic.ComplexLinearExtension |
| 61 | variable {I J : Type*} [Fintype I] |
| 62 | |
| 63 | def conjugateVector : (J → ℂ) ≃ₗ[ℝ] (J → ℂ) := |
| 64 | LinearEquiv.piCongrRight (fun _ => Complex.conjAe.toLinearEquiv) |
| 65 | |
| 66 | variable (e : (I → ℝ) ≃ₗ[ℝ] (J → ℂ)) |
| 67 | |
| 68 | def pairedRealMap : (I → ℝ) →ₗ[ℝ] ((J → ℂ) × (J → ℂ)) := |
| 69 | e.toLinearMap.prod ((conjugateVector.toLinearMap).comp e.toLinearMap) |
| 70 | |
| 71 | def pairedComplexMap : (I → ℂ) →ₗ[ℂ] ((J → ℂ) × (J → ℂ)) := |
| 72 | complexExtension (pairedRealMap e) |
| 73 | |
| 74 | theorem pairedComplexMap_real (x : I → ℝ) : |
| 75 | pairedComplexMap e (fun i => (x i : ℂ)) = (e x, fun j => conj (e x j)) := |
| 76 | complexExtension_real (pairedRealMap e) x |
| 77 | |
| 78 | theorem pairedComplexMap_first (z : I → ℂ) (j : J) : |
| 79 | (pairedComplexMap e z).1 j = |
| 80 | e (fun i => (z i).re) j + Complex.I * e (fun i => (z i).im) j := by |
| 81 | exact congrArg (fun p : (J → ℂ) × (J → ℂ) => p.1 j) |
| 82 | (complexExtension_decomposition (pairedRealMap e) z) |
| 83 | |
| 84 | theorem pairedComplexMap_second (z : I → ℂ) (j : J) : |
| 85 | (pairedComplexMap e z).2 j = |
| 86 | conj (e (fun i => (z i).re) j) + Complex.I * conj (e (fun i => (z i).im) j) := by |
| 87 | exact congrArg (fun p : (J → ℂ) × (J → ℂ) => p.2 j) |
| 88 | (complexExtension_decomposition (pairedRealMap e) z) |
| 89 | |
| 90 | theorem pairedComplexMap_injective : Function.Injective (pairedComplexMap e) := by |
| 91 | apply LinearMap.ker_eq_bot.mp |
| 92 | apply LinearMap.ker_eq_bot'.mpr |
| 93 | intro z hz |
| 94 | have hu (j : J) : e (fun i => (z i).re) j = 0 ∧ e (fun i => (z i).im) j = 0 := by |
| 95 | have h₁ := congrArg (fun p : (J → ℂ) × (J → ℂ) => p.1 j) hz |
| 96 | have h₂ := congrArg (fun p : (J → ℂ) × (J → ℂ) => conj (p.2 j)) hz |
| 97 | rw [pairedComplexMap_first] at h₁ |
| 98 | rw [pairedComplexMap_second] at h₂ |
| 99 | simp only [Prod.fst_zero, Prod.snd_zero, Pi.zero_apply, map_add, map_mul, |
| 100 | Complex.conj_I, Complex.conj_conj, map_zero, neg_mul] at h₁ h₂ |
| 101 | constructor |
| 102 | · linear_combination (h₁ + h₂) / 2 |
| 103 | · have hi : Complex.I * e (fun i => (z i).im) j = 0 := by |
| 104 | linear_combination (h₁ - h₂) / 2 |
| 105 | exact (mul_eq_zero.mp hi).resolve_left Complex.I_ne_zero |
| 106 | have hr : (fun i => (z i).re) = 0 := e.injective (by |
| 107 | rw [map_zero] |
| 108 | funext j |
| 109 | exact (hu j).1) |
| 110 | have hi : (fun i => (z i).im) = 0 := e.injective (by |
| 111 | rw [map_zero] |
| 112 | funext j |
| 113 | exact (hu j).2) |
| 114 | funext i |
| 115 | apply Complex.ext |
| 116 | · exact congrFun hr i |
| 117 | · exact congrFun hi i |
| 118 | |
| 119 | theorem pairedComplexMap_surjective : Function.Surjective (pairedComplexMap e) := by |
| 120 | rintro ⟨x, y⟩ |
| 121 | let u : J → ℂ := fun j => (x j + conj (y j)) / 2 |
| 122 | let v : J → ℂ := fun j => -Complex.I * (x j - conj (y j)) / 2 |
| 123 | let a := e.symm u |
| 124 | let b := e.symm v |
| 125 | refine ⟨(fun i => (a i : ℂ)) + Complex.I • (fun i => (b i : ℂ)), ?_⟩ |
| 126 | rw [map_add, map_smul, pairedComplexMap_real, pairedComplexMap_real] |
| 127 | change (e (e.symm u), fun j => conj (e (e.symm u) j)) + |
| 128 | Complex.I • (e (e.symm v), fun j => conj (e (e.symm v) j)) = _ |
| 129 | rw [LinearEquiv.apply_symm_apply, LinearEquiv.apply_symm_apply] |
| 130 | apply Prod.ext |
| 131 | · funext j |
| 132 | change u j + Complex.I * v j = x j |
| 133 | dsimp [u, v] |
| 134 | linear_combination -(x j - conj (y j)) / 2 * Complex.I_mul_I |
| 135 | · funext j |
| 136 | change conj (u j) + Complex.I * conj (v j) = y j |
| 137 | simp only [u, v, map_div₀, map_add, map_sub, map_neg, map_mul, |
| 138 | Complex.conj_I, Complex.conj_conj, map_ofNat, neg_neg] |
| 139 | linear_combination (conj (x j) - y j) / 2 * Complex.I_mul_I |
| 140 | |
| 141 | def pairedComplexEquiv : (I → ℂ) ≃ₗ[ℂ] ((J → ℂ) × (J → ℂ)) := |
| 142 | LinearEquiv.ofBijective (pairedComplexMap e) |
| 143 | ⟨pairedComplexMap_injective e, pairedComplexMap_surjective e⟩ |
| 144 | |
| 145 | end RepresentationTheory.Theta.Adelic.ComplexLinearExtension.PairedComplexification |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end OAI |