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.ExteriorMetricLowDegree |
| 2 | |
| 3 | /-! # Exterior Two Frame -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.ExteriorTwoFrame.CM.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Ordered wedges of an orthonormal real basis give the exact |
| 12 | factor-two resolution of the metric on genuine exterior two-vectors. -/ |
| 13 | |
| 14 | theorem sum_separated_products {ι R : Type*} [Fintype ι] [CommRing R] |
| 15 | (f g h k : ι → R) : |
| 16 | (∑ i, ∑ j, (f i * g j) * (h i * k j)) = (∑ i, f i * h i) * ∑ j, g j * k j := by |
| 17 | rw [Finset.sum_mul] |
| 18 | apply Finset.sum_congr rfl |
| 19 | intro i _ |
| 20 | rw [Finset.mul_sum] |
| 21 | apply Finset.sum_congr rfl |
| 22 | intro j _ |
| 23 | ring |
| 24 | |
| 25 | theorem sum_alternating_products {ι R : Type*} [Fintype ι] [CommRing R] |
| 26 | (f g h k : ι → R) : |
| 27 | (∑ i, ∑ j, (f i * g j - g i * f j) * (h i * k j - k i * h j)) = |
| 28 | 2 * ((∑ i, f i * h i) * (∑ j, g j * k j) - (∑ i, f i * k i) * ∑ j, g j * h j) := by |
| 29 | simp only [sub_mul, mul_sub, Finset.sum_sub_distrib] |
| 30 | rw [sum_separated_products, sum_separated_products, sum_separated_products, sum_separated_products] |
| 31 | ring |
| 32 | |
| 33 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 34 | |
| 35 | def exteriorTwoVector (u v : E) : ⋀[ℝ]^2 E := exteriorPower.ιMulti ℝ 2 ![u, v] |
| 36 | |
| 37 | theorem exteriorTwoVector_inner (u v w z : E) : |
| 38 | inner ℝ (exteriorTwoVector u v) (exteriorTwoVector w z) = |
| 39 | inner ℝ u w * inner ℝ v z - inner ℝ u z * inner ℝ v w := by |
| 40 | simp only [exteriorTwoVector, exteriorPower.inner_ιMulti_ιMulti, Matrix.det_fin_two, |
| 41 | Matrix.of_apply, Matrix.cons_val_zero, Matrix.cons_val_one] |
| 42 | ring |
| 43 | |
| 44 | theorem exteriorTwoVector_frame_pair {ι : Type*} [Fintype ι] |
| 45 | (b : OrthonormalBasis ι ℝ E) (u v w z : E) : |
| 46 | (∑ i, ∑ j, inner ℝ (exteriorTwoVector (b i) (b j)) (exteriorTwoVector u v) * |
| 47 | inner ℝ (exteriorTwoVector (b i) (b j)) (exteriorTwoVector w z)) = |
| 48 | 2 * inner ℝ (exteriorTwoVector u v) (exteriorTwoVector w z) := by |
| 49 | have hp (a c : E) : (∑ i, inner ℝ (b i) a * inner ℝ (b i) c) = inner ℝ a c := by |
| 50 | simpa only [real_inner_comm (b _) a] using b.sum_inner_mul_inner a c |
| 51 | simp only [exteriorTwoVector_inner] |
| 52 | have hs := sum_alternating_products (fun i => inner ℝ (b i) u) (fun i => inner ℝ (b i) v) |
| 53 | (fun i => inner ℝ (b i) w) (fun i => inner ℝ (b i) z) |
| 54 | simp only [hp] at hs |
| 55 | exact hs |
| 56 | |
| 57 | theorem exteriorTwo_frame_resolution {ι : Type*} [Fintype ι] |
| 58 | (b : OrthonormalBasis ι ℝ E) (x y : ⋀[ℝ]^2 E) : |
| 59 | (∑ i, ∑ j, inner ℝ (exteriorTwoVector (b i) (b j)) x * |
| 60 | inner ℝ (exteriorTwoVector (b i) (b j)) y) = 2 * inner ℝ x y := by |
| 61 | let B : (⋀[ℝ]^2 E) →ₗ[ℝ] (⋀[ℝ]^2 E) →ₗ[ℝ] ℝ := |
| 62 | ∑ i, ∑ j, (innerₗ (⋀[ℝ]^2 E) (exteriorTwoVector (b i) (b j))).smulRight |
| 63 | (innerₗ (⋀[ℝ]^2 E) (exteriorTwoVector (b i) (b j))) |
| 64 | have hB : B = (2 : ℝ) • innerₗ (⋀[ℝ]^2 E) := by |
| 65 | apply exteriorPower.linearMap_ext |
| 66 | apply AlternatingMap.ext |
| 67 | intro v |
| 68 | apply exteriorPower.linearMap_ext |
| 69 | apply AlternatingMap.ext |
| 70 | intro w |
| 71 | have hv : v = ![v 0, v 1] := by ext i; fin_cases i <;> rfl |
| 72 | have hw : w = ![w 0, w 1] := by ext i; fin_cases i <;> rfl |
| 73 | simp only [LinearMap.compAlternatingMap_apply, B, LinearMap.sum_apply, LinearMap.smulRight_apply, |
| 74 | LinearMap.smul_apply, smul_eq_mul, innerₗ_apply_apply] |
| 75 | change (∑ i, ∑ j, inner ℝ (exteriorTwoVector (b i) (b j)) (exteriorPower.ιMulti ℝ 2 v) * |
| 76 | inner ℝ (exteriorTwoVector (b i) (b j)) (exteriorPower.ιMulti ℝ 2 w)) = |
| 77 | 2 * inner ℝ (exteriorPower.ιMulti ℝ 2 v) (exteriorPower.ιMulti ℝ 2 w) |
| 78 | rw [hv, hw] |
| 79 | exact exteriorTwoVector_frame_pair b _ _ _ _ |
| 80 | simpa only [B, LinearMap.sum_apply, LinearMap.smulRight_apply, LinearMap.smul_apply, smul_eq_mul, |
| 81 | innerₗ_apply_apply] using |
| 82 | congrArg (fun C : (⋀[ℝ]^2 E) →ₗ[ℝ] (⋀[ℝ]^2 E) →ₗ[ℝ] ℝ => C x y) hB |
| 83 | |
| 84 | end |
| 85 | |
| 86 | /-! The genuine metric on two-forms is one half of the ordered |
| 87 | orthonormal coordinate sum. -/ |
| 88 | |
| 89 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 90 | |
| 91 | theorem covectorInner_frame {κ : Type*} [Fintype κ] (v : κ → E) (r : ℝ) |
| 92 | (hv : ∀ x y, (∑ k, inner ℝ (v k) x * inner ℝ (v k) y) = r * inner ℝ x y) |
| 93 | (f g : E →ₗ[ℝ] ℂ) : |
| 94 | (∑ k, star (f (v k)) * g (v k)) = (r : ℂ) * Analysis.HodgeTheory.Decomposition.CovectorPair.Constructions.covectorInner f g := by |
| 95 | classical |
| 96 | let b := stdOrthonormalBasis ℝ E |
| 97 | have hdelta (j k : Fin (Module.finrank ℝ E)) : |
| 98 | (∑ i, (inner ℝ (b j) (v i) : ℂ) * (inner ℝ (b k) (v i) : ℂ)) = |
| 99 | (r : ℂ) * (if j = k then 1 else 0) := by |
| 100 | have h := congrArg (fun t : ℝ => (t : ℂ)) (hv (b j) (b k)) |
| 101 | simpa only [Complex.ofReal_sum, Complex.ofReal_mul, b.inner_eq_ite, apply_ite, |
| 102 | Complex.ofReal_one, Complex.ofReal_zero, real_inner_comm (v _) (b _)] using h |
| 103 | rw [Analysis.HodgeTheory.Decomposition.CovectorPair.Constructions.covectorInner_eq_basis b, Analysis.HodgeTheory.Decomposition.CovectorPair.Constructions.covectorBasisPair] |
| 104 | simp only [OrthonormalBasis.coe_toBasis] |
| 105 | conv_lhs => |
| 106 | enter [2, i] |
| 107 | rw [Analysis.HodgeTheory.Decomposition.CovectorPair.Constructions.linearCovector_basis_expansion b f (v i), |
| 108 | Analysis.HodgeTheory.Decomposition.CovectorPair.Constructions.linearCovector_basis_expansion b g (v i)] |
| 109 | simp only [star_sum, star_mul, Complex.star_def, Complex.conj_ofReal, |
| 110 | Finset.sum_mul, Finset.mul_sum] |
| 111 | rw [Finset.sum_comm] |
| 112 | apply Finset.sum_congr rfl |
| 113 | intro j _ |
| 114 | rw [Finset.sum_comm] |
| 115 | have hterm (k : Fin (Module.finrank ℝ E)) : |
| 116 | (∑ i, star (f (b k)) * (inner ℝ (b k) (v i) : ℂ) * |
| 117 | ((inner ℝ (b j) (v i) : ℂ) * g (b j))) = |
| 118 | (star (f (b k)) * g (b j)) * ((r : ℂ) * (if k = j then 1 else 0)) := by |
| 119 | rw [← hdelta k j, Finset.mul_sum] |
| 120 | apply Finset.sum_congr rfl |
| 121 | intro i _ |
| 122 | ring |
| 123 | simp_rw [← Complex.star_def, hterm] |
| 124 | simp [mul_comm] |
| 125 | |
| 126 | theorem formMetricPair_two {ι : Type*} [Fintype ι] (b : OrthonormalBasis ι ℝ E) |
| 127 | (f g : Analysis.DifferentialForms.Manifold.Basic.FormValue E 2) : |
| 128 | (∑ i, ∑ j, star (f ![b i, b j]) * g ![b i, b j]) = |
| 129 | 2 * Analysis.HodgeTheory.Decomposition.ExteriorPair.Constructions.formMetricPair 2 f g := by |
| 130 | have hframe (x y : ⋀[ℝ]^2 E) : |
| 131 | (∑ k : ι × ι, inner ℝ (exteriorTwoVector (b k.1) (b k.2)) x * |
| 132 | inner ℝ (exteriorTwoVector (b k.1) (b k.2)) y) = 2 * inner ℝ x y := by |
| 133 | simpa only [Fintype.sum_prod_type] using exteriorTwo_frame_resolution b x y |
| 134 | have h := covectorInner_frame (fun k : ι × ι => exteriorTwoVector (b k.1) (b k.2)) 2 hframe |
| 135 | (Analysis.DifferentialForms.Manifold.ExteriorCovectorEquivalence.exteriorCovectorEquiv E 2 f) (Analysis.DifferentialForms.Manifold.ExteriorCovectorEquivalence.exteriorCovectorEquiv E 2 g) |
| 136 | simpa only [Fintype.sum_prod_type, exteriorTwoVector, Analysis.DifferentialForms.Manifold.ExteriorCovectorEquivalence.exteriorCovectorEquiv_apply_ιMulti, |
| 137 | Complex.ofReal_ofNat, Analysis.HodgeTheory.Decomposition.ExteriorPair.Constructions.formMetricPair] using h |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.ExteriorTwoFrame.CM.Construction |