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.Isogenies.NeighborCounting.CompactDetection |
| 2 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ChoiceKernelComparison |
| 3 | |
| 4 | /-! # Kernel Detection -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.KernelDetection.Neighbor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Derive the complete neighbor kernel from its unchanged active |
| 11 | choice. All compact factors and opposite annihilators are retained. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped _root_.CategoryTheory.MonObj |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Kernel.Models OAI.AlgebraicGeometry.Isogenies.NeighborCounting.HeckeExponents |
| 17 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactDetection.Neighbor OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ChoiceKernelComparison |
| 18 | |
| 19 | variable {S : Scheme} {A P : Over S} [GrpObj A] [IsCommMonObj A] |
| 20 | (q : ℕ) [Fact q.Prime] {s : ℕ} (c : Fin s → Bool) (i : Fin 3) |
| 21 | (p r : Fin (s + 1) → (A ⟶ A)) [∀ v, IsMonHom (p v)] [∀ v, IsMonHom (r v)] |
| 22 | [∀ v, IsFinite (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v)).hom] |
| 23 | [∀ v, Etale (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v)).hom] |
| 24 | {W : Over S} [GrpObj W] |
| 25 | (pairing : ∀ v, AbelianScheme.IsogenyQuotient.Annihilator.Construction.SchemeBicharacter |
| 26 | (A := AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v)) |
| 27 | (B := AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (r v)) (W := W)) |
| 28 | |
| 29 | local instance : NeZero q := ⟨(Fact.out : q.Prime).ne_zero⟩ |
| 30 | |
| 31 | local instance neighborModule (v : Fin (s + 1)) : Module (ZMod (q ^ HeckeExponents.neighborLevel i)) |
| 32 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v)) := |
| 33 | AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.rankThreeElementaryModule_structure q (HeckeExponents.neighborLevel i) _ |
| 34 | (HeckeExponents.neighborExponents_bound 0 (Fin.cases false c) i v) |
| 35 | |
| 36 | variable (U : ∀ v, AbelianScheme.IsogenyQuotient.SubgroupFunctor.Construction.SupportedChoice A (q ^ HeckeExponents.neighborLevel i) |
| 37 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v)) (p v) P) |
| 38 | (coordinates : ∀ (v : Fin s) (K : Type) [Field K] [IsAlgClosed K] |
| 39 | (b : Spec (.of K) ⟶ S) (_ : Over.mk b ⟶ P), |
| 40 | Additive (Over.mk b ⟶ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v.succ)) ≃+ |
| 41 | (Fin 3 → ZMod (q ^ HeckeExponents.neighborLevel i))) |
| 42 | |
| 43 | include coordinates in |
| 44 | theorem neighborFullKernel_eq : |
| 45 | AbelianScheme.IsogenyQuotient.ChoiceKernel.Construction.choiceFullKernel (q ^ HeckeExponents.neighborLevel i) (s + 1) |
| 46 | (fun v => AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v)) |
| 47 | p r pairing U = |
| 48 | Kernel.Models.multiplierFullKernel (q ^ HeckeExponents.neighborLevel i) p r pairing 0 (Fin.cases false c) (U 0).val.subgroup := by |
| 49 | apply ChoiceKernelComparison.choice_full_kernel_of_chosen_families |
| 50 | intro v |
| 51 | refine Fin.cases ?_ (fun w => ?_) v |
| 52 | · simp [Kernel.Base.chosenKernel] |
| 53 | · rw [Kernel.Base.chosenKernel, ite_eq_right (Fin.succ_ne_zero w)] |
| 54 | exact CompactDetection.Neighbor.neighborCompactChoice_eq q c i p w (U w.succ) (coordinates w) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.KernelDetection.Neighbor |