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.LinearAlgebra.BilinearForm.DualLattice |
| 2 | import Mathlib.Algebra.Module.ZLattice.Basic |
| 3 | |
| 4 | /-! # Integral Dual Lattice -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.IntegralDualLattice |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A nondegenerate real pairing identifies its integral dual lattice |
| 11 | with the full integer dual of the original lattice. -/ |
| 12 | |
| 13 | open _root_.Module |
| 14 | |
| 15 | variable {V I : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 16 | [FiniteDimensional ℝ V] [Fintype I] |
| 17 | (L : Submodule ℤ V) [DiscreteTopology L] [IsZLattice ℝ L] |
| 18 | (b : Basis I ℤ L) (B : LinearMap.BilinForm ℝ V) (hB : B.Nondegenerate) |
| 19 | |
| 20 | def latticeDualRealExtension (f : L →ₗ[ℤ] ℤ) : V →ₗ[ℝ] ℝ := |
| 21 | (b.ofZLatticeBasis ℝ L).constr ℝ (fun i => (f (b i) : ℝ)) |
| 22 | |
| 23 | omit [Fintype I] in |
| 24 | theorem latticeDualRealExtension_apply (f : L →ₗ[ℤ] ℤ) (v : L) : |
| 25 | latticeDualRealExtension L b f v.val = (f v : ℝ) := by |
| 26 | have h : ((latticeDualRealExtension L b f).restrictScalars ℤ).comp L.subtype = |
| 27 | (Algebra.linearMap ℤ ℝ).comp f := by |
| 28 | apply b.ext |
| 29 | intro i |
| 30 | change latticeDualRealExtension L b f (b i).val = (f (b i) : ℝ) |
| 31 | rw [← b.ofZLatticeBasis_apply ℝ L i] |
| 32 | exact (b.ofZLatticeBasis ℝ L).constr_basis ℝ _ i |
| 33 | exact congrArg (fun q : L →ₗ[ℤ] ℝ => q v) h |
| 34 | |
| 35 | include b hB in |
| 36 | omit [Fintype I] in |
| 37 | theorem dualSubmoduleToDual_surjective : Function.Surjective (B.dualSubmoduleToDual L) := by |
| 38 | intro f |
| 39 | let v := (B.toDual hB).symm (latticeDualRealExtension L b f) |
| 40 | have hv (w : L) : B v w.val = (f w : ℝ) := |
| 41 | (B.apply_toDual_symm_apply (f := latticeDualRealExtension L b f) (v := w.val)).trans |
| 42 | (latticeDualRealExtension_apply L b f w) |
| 43 | have hvL : v ∈ B.dualSubmodule L := by |
| 44 | intro w hw |
| 45 | exact Submodule.mem_one.mpr ⟨f ⟨w, hw⟩, (hv ⟨w, hw⟩).symm⟩ |
| 46 | refine ⟨⟨v, hvL⟩, ?_⟩ |
| 47 | apply LinearMap.ext |
| 48 | intro w |
| 49 | apply Int.cast_injective (α := ℝ) |
| 50 | exact (B.dualSubmoduleParing_spec ⟨v, hvL⟩ w).trans (hv w) |
| 51 | |
| 52 | def integralDualLatticeEquiv : B.dualSubmodule L ≃ₗ[ℤ] (L →ₗ[ℤ] ℤ) := |
| 53 | LinearEquiv.ofBijective (B.dualSubmoduleToDual L) |
| 54 | ⟨B.dualSubmoduleToDual_injective hB L (IsZLattice.span_top (K := ℝ) (L := L)), |
| 55 | dualSubmoduleToDual_surjective L b B hB⟩ |
| 56 | |
| 57 | include b hB in |
| 58 | theorem dualLattice_discrete : DiscreteTopology (B.dualSubmodule L) := by |
| 59 | classical |
| 60 | rw [← b.ofZLatticeBasis_span ℝ L, B.dualSubmodule_span_of_basis hB (b.ofZLatticeBasis ℝ L)] |
| 61 | infer_instance |
| 62 | |
| 63 | theorem dualLattice_full : |
| 64 | letI := dualLattice_discrete L b B hB |
| 65 | IsZLattice ℝ (B.dualSubmodule L) := by |
| 66 | let := dualLattice_discrete L b B hB |
| 67 | classical |
| 68 | constructor |
| 69 | rw [← b.ofZLatticeBasis_span ℝ L, B.dualSubmodule_span_of_basis hB (b.ofZLatticeBasis ℝ L)] |
| 70 | exact ZSpan.span_top (B.dualBasis hB (b.ofZLatticeBasis ℝ L)) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.RepresentationTheory.Theta.Geometric.IntegralDualLattice |