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.NumberTheory.NumberField.Basic |
| 2 | import Mathlib.RingTheory.Trace.Basic |
| 3 | import Mathlib.LinearAlgebra.BilinearForm.Properties |
| 4 | |
| 5 | /-! # Trace Reconstruction Eq -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.TraceReconstructionEq.TraceReconstruction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Reconstruct E-valued coefficients from a rational bilinear form |
| 12 | using the nondegenerate trace pairing. This is the linear-algebra step |
| 13 | needed to recover the Hermitian form of a marked PEL polarization. -/ |
| 14 | |
| 15 | variable {E V : Type*} [Field E] [NumberField E] [Algebra ℚ E] |
| 16 | [AddCommGroup V] [Module ℚ V] [Module E V] [IsScalarTower ℚ E V] |
| 17 | |
| 18 | def traceDual : E ≃ₗ[ℚ] Module.Dual ℚ E := |
| 19 | (Algebra.traceForm ℚ E).toDual (traceForm_nondegenerate ℚ E) |
| 20 | |
| 21 | def coefficientFunctional (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (x y : V) : E →ₗ[ℚ] ℚ where |
| 22 | toFun a := ψ (a • x) y |
| 23 | map_add' a b := by simp only [add_smul, map_add, LinearMap.add_apply] |
| 24 | map_smul' q a := by simp only [smul_assoc, map_smul, LinearMap.smul_apply, RingHom.id_apply] |
| 25 | |
| 26 | def coefficient (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (x y : V) : E := |
| 27 | traceDual.symm (coefficientFunctional ψ x y) |
| 28 | |
| 29 | theorem coefficient_spec (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (x y : V) (a : E) : |
| 30 | Algebra.trace ℚ E (coefficient ψ x y * a) = ψ (a • x) y := |
| 31 | LinearMap.BilinForm.apply_toDual_symm_apply (B := Algebra.traceForm ℚ E) |
| 32 | (hB := traceForm_nondegenerate ℚ E) (coefficientFunctional ψ x y) a |
| 33 | |
| 34 | theorem coefficient_trace (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (x y : V) : |
| 35 | Algebra.trace ℚ E (coefficient ψ x y) = ψ x y := by |
| 36 | simpa only [mul_one, one_smul] using coefficient_spec ψ x y (1 : E) |
| 37 | |
| 38 | theorem coefficient_eq_of_trace (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (x y : V) (u : E) |
| 39 | (hu : ∀ a : E, Algebra.trace ℚ E (u * a) = ψ (a • x) y) : coefficient ψ x y = u := by |
| 40 | apply (traceDual (E := E)).injective |
| 41 | apply LinearMap.ext |
| 42 | intro a |
| 43 | exact (coefficient_spec ψ x y a).trans (hu a).symm |
| 44 | |
| 45 | theorem coefficient_smul_left (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (a : E) (x y : V) : |
| 46 | coefficient ψ (a • x) y = a * coefficient ψ x y := by |
| 47 | apply coefficient_eq_of_trace |
| 48 | intro b |
| 49 | calc |
| 50 | Algebra.trace ℚ E ((a * coefficient ψ x y) * b) = |
| 51 | Algebra.trace ℚ E (coefficient ψ x y * (b * a)) := congrArg (Algebra.trace ℚ E) (by ring) |
| 52 | _ = ψ ((b * a) • x) y := coefficient_spec ψ x y (b * a) |
| 53 | _ = ψ (b • (a • x)) y := by rw [mul_smul] |
| 54 | |
| 55 | theorem coefficient_add_left (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (x z y : V) : |
| 56 | coefficient (E := E) ψ (x + z) y = coefficient ψ x y + coefficient ψ z y := by |
| 57 | apply coefficient_eq_of_trace |
| 58 | intro a |
| 59 | rw [add_mul, map_add, coefficient_spec (E := E), coefficient_spec (E := E), |
| 60 | smul_add, map_add, LinearMap.add_apply] |
| 61 | |
| 62 | theorem coefficient_add_right (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (x y z : V) : |
| 63 | coefficient (E := E) ψ x (y + z) = coefficient ψ x y + coefficient ψ x z := by |
| 64 | apply coefficient_eq_of_trace |
| 65 | intro a |
| 66 | rw [add_mul, map_add, coefficient_spec (E := E), coefficient_spec (E := E), map_add] |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.TraceReconstructionEq.TraceReconstruction |