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.AbelianScheme.TateComparison.IntegralTypeUniqueness |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.RationalSpan |
| 3 | |
| 4 | /-! # Spherical Basis -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.SphericalBasis |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual raw spherical operators are a rational basis. Its |
| 11 | coordinates are evaluations of the finite raw kernel at representatives. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable (s q : ℕ) [Fact q.Prime] |
| 16 | |
| 17 | def sphericalCoefficient (t : Local.LocalType s) : HeckeKernel.Hecke s q →ₗ[ℚ] ℚ := |
| 18 | (Finsupp.lapply (QuotientGroup.mk (HeckeKernel.representative s q t)⁻¹)).comp (HeckeKernel.kernelLinear (HeckeKernel.integralLevel s q)) |
| 19 | |
| 20 | theorem sphericalCoefficient_basis (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) (u v : Local.LocalType s) : |
| 21 | sphericalCoefficient s q u (CentralConvolution.sphericalBasis s q v) = if v = u then 1 else 0 := by |
| 22 | change HeckeKernel.kernel (HeckeKernel.integralLevel s q) (CentralConvolution.sphericalBasis s q v) |
| 23 | (QuotientGroup.mk (HeckeKernel.representative s q u)⁻¹) = _ |
| 24 | rw [HeckeKernel.raw_kernel_at (HeckeKernel.integralLevel s q) (CentralConvolution.sphericalBasis_isRaw s q v)] |
| 25 | have hu : QuotientGroup.mk (HeckeKernel.representative s q u)⁻¹ ∈ |
| 26 | HeckeKernel.doubleCosetOrbit (HeckeKernel.integralLevel s q) (HeckeKernel.representative s q u) := ⟨1, one_smul _ _⟩ |
| 27 | have hi : QuotientGroup.mk (HeckeKernel.representative s q u)⁻¹ ∈ |
| 28 | HeckeKernel.doubleCosetOrbit (HeckeKernel.integralLevel s q) (HeckeKernel.representative s q v) ↔ v = u := by |
| 29 | constructor |
| 30 | · intro hv |
| 31 | exact IntegralTypeUniqueness.rawType_eq_of_common s q hElementaryDivisors v u _ hv hu |
| 32 | · rintro rfl |
| 33 | exact hu |
| 34 | rw [hi] |
| 35 | |
| 36 | theorem sphericalCoefficient_expansion (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) |
| 37 | (c : Local.LocalType s →₀ ℚ) (t : Local.LocalType s) : |
| 38 | sphericalCoefficient s q t (Finsupp.linearCombination ℚ (CentralConvolution.sphericalBasis s q) c) = c t := by |
| 39 | change sphericalCoefficient s q t (c.sum (fun u r => r • CentralConvolution.sphericalBasis s q u)) = _ |
| 40 | rw [map_finsuppSum] |
| 41 | simp only [map_smul, sphericalCoefficient_basis s q hElementaryDivisors, smul_eq_mul] |
| 42 | simp_all |
| 43 | |
| 44 | theorem linearIndependent_of_coefficient_recovery {I V : Type*} [AddCommGroup V] [Module ℚ V] |
| 45 | (v : I → V) (c : I → V →ₗ[ℚ] ℚ) |
| 46 | (hc : ∀ l i, c i (Finsupp.linearCombination ℚ v l) = l i) : LinearIndependent ℚ v := by |
| 47 | apply linearIndependent_iff.mpr |
| 48 | intro l hl |
| 49 | ext i |
| 50 | have h := congrArg (c i) hl |
| 51 | rw [hc, map_zero] at h |
| 52 | exact h |
| 53 | |
| 54 | theorem sphericalBasis_linearIndependent (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) : |
| 55 | LinearIndependent ℚ (CentralConvolution.sphericalBasis s q) := by |
| 56 | exact linearIndependent_of_coefficient_recovery (CentralConvolution.sphericalBasis s q) (sphericalCoefficient s q) |
| 57 | (sphericalCoefficient_expansion s q hElementaryDivisors) |
| 58 | |
| 59 | def sphericalModuleBasis (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) : |
| 60 | Module.Basis (Local.LocalType s) ℚ (HeckeKernel.Hecke s q) := |
| 61 | Module.Basis.mk (sphericalBasis_linearIndependent s q hElementaryDivisors) |
| 62 | (by rw [RationalSpan.sphericalBasis_span s q hElementaryDivisors]) |
| 63 | |
| 64 | theorem sphericalModuleBasis_apply (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) (t : Local.LocalType s) : |
| 65 | sphericalModuleBasis s q hElementaryDivisors t = CentralConvolution.sphericalBasis s q t := Module.Basis.mk_apply _ _ _ |
| 66 | |
| 67 | theorem sphericalModuleBasis_repr (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) (T : HeckeKernel.Hecke s q) (t : Local.LocalType s) : |
| 68 | (sphericalModuleBasis s q hElementaryDivisors).repr T t = sphericalCoefficient s q t T := by |
| 69 | have h := sphericalCoefficient_expansion s q hElementaryDivisors ((sphericalModuleBasis s q hElementaryDivisors).repr T) t |
| 70 | have hb : Finsupp.linearCombination ℚ (CentralConvolution.sphericalBasis s q) |
| 71 | ((sphericalModuleBasis s q hElementaryDivisors).repr T) = T := by |
| 72 | have he : (sphericalModuleBasis s q hElementaryDivisors : Local.LocalType s → HeckeKernel.Hecke s q) = CentralConvolution.sphericalBasis s q := |
| 73 | funext (sphericalModuleBasis_apply s q hElementaryDivisors) |
| 74 | exact (congrArg (fun f : Local.LocalType s → HeckeKernel.Hecke s q => Finsupp.linearCombination ℚ f |
| 75 | ((sphericalModuleBasis s q hElementaryDivisors).repr T)) he).symm.trans |
| 76 | ((sphericalModuleBasis s q hElementaryDivisors).linearCombination_repr T) |
| 77 | rw [hb] at h |
| 78 | exact h.symm |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.SphericalBasis |