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.Cartan |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.HeckeKernel |
| 3 | |
| 4 | /-! # Rational Span -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.RationalSpan |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every spherical operator is a finite rational linear combination of |
| 11 | the constructed raw double-coset operators. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | section General |
| 16 | |
| 17 | variable {G I : Type*} [Group G] (U : Subgroup G) |
| 18 | |
| 19 | theorem kernel_sub_smul_raw_apply (S T : HeckeKernel.SphericalHecke U) {g : G} |
| 20 | (hT : HeckeKernel.IsRawDoubleCoset U g T) {x : G ⧸ U} (hx : x ∈ HeckeKernel.doubleCosetOrbit U g) |
| 21 | (r : ℚ) (hr : HeckeKernel.kernel U S x = r) (y : G ⧸ U) : |
| 22 | HeckeKernel.kernel U (S - r • T) y = |
| 23 | if y ∈ HeckeKernel.doubleCosetOrbit U g then 0 else HeckeKernel.kernel U S y := by |
| 24 | have hlin : HeckeKernel.kernel U (S - r • T) = HeckeKernel.kernel U S - r • HeckeKernel.kernel U T := by |
| 25 | exact (HeckeKernel.kernelLinear U).map_sub S (r • T) |>.trans |
| 26 | (congrArg (fun z => HeckeKernel.kernel U S - z) ((HeckeKernel.kernelLinear U).map_smul r T)) |
| 27 | rw [hlin] |
| 28 | change HeckeKernel.kernel U S y - r * HeckeKernel.kernel U T y = _ |
| 29 | rw [HeckeKernel.raw_kernel_at U hT] |
| 30 | by_cases hy : y ∈ HeckeKernel.doubleCosetOrbit U g |
| 31 | · rw [ite_eq_left hy, ite_eq_left hy, HeckeKernel.kernel_eq_of_same_orbit U S g hy hx, hr, mul_one, sub_self] |
| 32 | · rw [ite_eq_right hy, ite_eq_right hy, mul_zero, sub_zero] |
| 33 | |
| 34 | theorem exists_raw_rational_expansion (rep : I → G) (basis : I → HeckeKernel.SphericalHecke U) |
| 35 | (hraw : ∀ i, HeckeKernel.IsRawDoubleCoset U (rep i) (basis i)) |
| 36 | (hcover : ∀ x : G ⧸ U, ∃ i, x ∈ HeckeKernel.doubleCosetOrbit U (rep i)) (T : HeckeKernel.SphericalHecke U) : |
| 37 | ∃ c : I →₀ ℚ, T = Finsupp.linearCombination ℚ basis c := by |
| 38 | suffices ∀ (s : Finset (G ⧸ U)) (S : HeckeKernel.SphericalHecke U), |
| 39 | (HeckeKernel.kernel U S).support = s → ∃ c : I →₀ ℚ, S = Finsupp.linearCombination ℚ basis c by |
| 40 | exact this _ T rfl |
| 41 | intro s |
| 42 | induction s using Finset.strongInductionOn with |
| 43 | | _ s ih => |
| 44 | intro S hs |
| 45 | by_cases hempty : s = ∅ |
| 46 | · refine ⟨0, ?_⟩ |
| 47 | rw [map_zero] |
| 48 | apply HeckeKernel.kernel_injective U |
| 49 | exact Finsupp.support_eq_empty.mp (hs.trans hempty) |
| 50 | obtain ⟨x, hx⟩ := Finset.nonempty_iff_ne_empty.mpr hempty |
| 51 | obtain ⟨i, hi⟩ := hcover x |
| 52 | let r := HeckeKernel.kernel U S x |
| 53 | let R := S - r • basis i |
| 54 | have hval (y : G ⧸ U) : HeckeKernel.kernel U R y = |
| 55 | if y ∈ HeckeKernel.doubleCosetOrbit U (rep i) then 0 else HeckeKernel.kernel U S y := |
| 56 | kernel_sub_smul_raw_apply U S (basis i) (hraw i) hi r rfl y |
| 57 | have hsub : (HeckeKernel.kernel U R).support ⊆ s := by |
| 58 | intro y hy |
| 59 | rw [Finsupp.mem_support_iff, hval] at hy |
| 60 | by_cases hmem : y ∈ HeckeKernel.doubleCosetOrbit U (rep i) |
| 61 | · rw [ite_eq_left hmem] at hy |
| 62 | exact False.elim (hy rfl) |
| 63 | · rw [ite_eq_right hmem] at hy |
| 64 | rw [← hs] |
| 65 | exact Finsupp.mem_support_iff.mpr hy |
| 66 | have hnot : x ∉ (HeckeKernel.kernel U R).support := by |
| 67 | rw [Finsupp.mem_support_iff, hval, ite_eq_left hi] |
| 68 | exact not_not_intro rfl |
| 69 | have hstrict : (HeckeKernel.kernel U R).support ⊂ s := |
| 70 | Finset.ssubset_iff_subset_ne.mpr ⟨hsub, fun heq => hnot (heq.symm ▸ hx)⟩ |
| 71 | obtain ⟨c, hc⟩ := ih _ hstrict R rfl |
| 72 | refine ⟨c + Finsupp.single i r, ?_⟩ |
| 73 | rw [map_add, Finsupp.linearCombination_single] |
| 74 | change S - r • basis i = _ at hc |
| 75 | exact (sub_eq_iff_eq_add (a := S) (b := r • basis i)).mp hc |
| 76 | |
| 77 | end General |
| 78 | |
| 79 | variable (s q : ℕ) [Fact q.Prime] |
| 80 | |
| 81 | theorem exists_spherical_rational_expansion (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) (T : HeckeKernel.Hecke s q) : |
| 82 | ∃ c : Local.LocalType s →₀ ℚ, T = c.sum (fun t r => r • CentralConvolution.sphericalBasis s q t) := by |
| 83 | apply exists_raw_rational_expansion (HeckeKernel.integralLevel s q) (HeckeKernel.representative s q) |
| 84 | (CentralConvolution.sphericalBasis s q) (CentralConvolution.sphericalBasis_isRaw s q) |
| 85 | intro x |
| 86 | induction x using Quotient.inductionOn with |
| 87 | | h x => |
| 88 | obtain ⟨t, l, r, hxr⟩ := Cartan.exists_split_cartan q s hElementaryDivisors x⁻¹ |
| 89 | refine ⟨t, (HeckeKernel.mem_doubleCosetOrbit _ _ _).mpr ⟨r⁻¹, l⁻¹, ?_⟩⟩ |
| 90 | have h := congrArg Inv.inv hxr |
| 91 | simpa only [inv_inv, mul_inv_rev, Subgroup.coe_inv, mul_assoc] using h |
| 92 | |
| 93 | theorem sphericalBasis_span (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) : |
| 94 | Submodule.span ℚ (Set.range (CentralConvolution.sphericalBasis s q)) = ⊤ := by |
| 95 | rw [← Finsupp.range_linearCombination] |
| 96 | apply LinearMap.range_eq_top.mpr |
| 97 | intro T |
| 98 | obtain ⟨c, hc⟩ := exists_spherical_rational_expansion s q hElementaryDivisors T |
| 99 | exact ⟨c, hc.symm⟩ |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.RationalSpan |