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.FormalGeometry.Completion.WeightedHermitian |
| 2 | import Mathlib.LinearAlgebra.BilinearForm.TensorProduct |
| 3 | import Mathlib.LinearAlgebra.QuadraticForm.Basic |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 5 | |
| 6 | /-! # Rational Hermitian -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.RationalHermitian.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A positive rational diagonalization constructs a complex inner product |
| 13 | whose values on pure tensors recover the rational bilinear form. -/ |
| 14 | |
| 15 | open scoped TensorProduct BigOperators ComplexConjugate |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {ι : Type u} [Fintype ι] {V : Type v} [AddCommGroup V] [Module ℚ V] |
| 20 | (b : Module.Basis ι ℚ V) (B : LinearMap.BilinForm ℚ V) |
| 21 | |
| 22 | theorem rationalBilinear_eq_sum_diagonal (horth : B.IsOrthoᵢ b) (x y : V) : |
| 23 | B x y = ∑ i, B (b i) (b i) * b.repr x i * b.repr y i := by |
| 24 | classical |
| 25 | calc |
| 26 | B x y = ∑ i, ∑ j, b.repr x i * b.repr y j * B (b i) (b j) := by |
| 27 | conv_lhs => rw [← b.sum_repr x, ← b.sum_repr y] |
| 28 | simp only [map_sum, LinearMap.sum_apply, map_smul, LinearMap.smul_apply, smul_eq_mul] |
| 29 | simp only [Finset.mul_sum, mul_assoc] |
| 30 | rw [Finset.sum_comm] |
| 31 | apply Finset.sum_congr rfl |
| 32 | intro i _ |
| 33 | apply Finset.sum_congr rfl |
| 34 | intro j _ |
| 35 | ring |
| 36 | _ = _ := by |
| 37 | apply Finset.sum_congr rfl |
| 38 | intro i _ |
| 39 | rw [Finset.sum_eq_single i] |
| 40 | · ring |
| 41 | · intro j _ hij |
| 42 | rw [horth hij.symm, mul_zero] |
| 43 | · simp |
| 44 | |
| 45 | @[instance_reducible] |
| 46 | def rationalOrthogonalHermitianCore (hw : ∀ i, 0 < B (b i) (b i)) : |
| 47 | InnerProductSpace.Core ℂ (TensorProduct ℚ ℂ V) := |
| 48 | WeightedHermitian.Construction.weightedHermitianCore (b.baseChange ℂ) (fun i => (B (b i) (b i) : ℝ)) |
| 49 | (fun i => by exact_mod_cast hw i) |
| 50 | |
| 51 | theorem rationalOrthogonalHermitian_tmul (horth : B.IsOrthoᵢ b) |
| 52 | (r s : ℂ) (x y : V) : |
| 53 | WeightedHermitian.Construction.weightedHermitian (b.baseChange ℂ) (fun i => (B (b i) (b i) : ℝ)) |
| 54 | (r ⊗ₜ[ℚ] x) (s ⊗ₜ[ℚ] y) = conj r * s * (B x y : ℂ) := by |
| 55 | rw [rationalBilinear_eq_sum_diagonal b B horth x y] |
| 56 | simp only [WeightedHermitian.Construction.weightedHermitian, Module.Basis.baseChange_repr_tmul, Algebra.smul_def] |
| 57 | push_cast |
| 58 | rw [Finset.mul_sum] |
| 59 | apply Finset.sum_congr rfl |
| 60 | intro i _ |
| 61 | have hc (a : ℚ) : algebraMap ℚ ℂ a = (a : ℂ) := rfl |
| 62 | simp only [map_mul, hc, map_ratCast] |
| 63 | ring |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.RationalHermitian.Construction |