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.CompactChoiceDetection |
| 2 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.HeckeExponents |
| 3 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ChoiceTypeTransport |
| 4 | |
| 5 | /-! # Compact Detection -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactDetection.Neighbor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Retain the original neighbor elementary module while deriving its |
| 12 | complete compact chosen subgroup on every test scheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped _root_.CategoryTheory.MonObj |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.HeckeExponents OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ChoiceTypeTransport |
| 18 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactChoiceDetection |
| 19 | |
| 20 | variable {S : Scheme} {A P : Over S} [GrpObj A] [IsCommMonObj A] |
| 21 | (q : ℕ) [Fact q.Prime] {s : ℕ} (c : Fin s → Bool) (i : Fin 3) |
| 22 | (p : Fin (s + 1) → (A ⟶ A)) [∀ v, IsMonHom (p v)] |
| 23 | (v : Fin s) |
| 24 | [IsFinite (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v.succ)).hom] |
| 25 | [Etale (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v.succ)).hom] |
| 26 | |
| 27 | local instance : NeZero q := ⟨(Fact.out : q.Prime).ne_zero⟩ |
| 28 | |
| 29 | local instance originalModule : Module (ZMod (q ^ HeckeExponents.neighborLevel i)) |
| 30 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v.succ)) := |
| 31 | AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.rankThreeElementaryModule_structure q (HeckeExponents.neighborLevel i) _ |
| 32 | (HeckeExponents.neighborExponents_bound 0 (Fin.cases false c) i v.succ) |
| 33 | |
| 34 | local instance compactModule : Module (ZMod (q ^ HeckeExponents.neighborLevel i)) |
| 35 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if c v then HeckeExponents.neighborLevel i else 0)) := |
| 36 | AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.rankThreeElementaryModule_structure q (HeckeExponents.neighborLevel i) _ |
| 37 | (fun _ => by split_ifs <;> omega) |
| 38 | |
| 39 | variable (F : AbelianScheme.IsogenyQuotient.SubgroupFunctor.Construction.SupportedChoice A (q ^ HeckeExponents.neighborLevel i) |
| 40 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v.succ)) (p v.succ) P) |
| 41 | (coordinates : ∀ (K : Type) [Field K] [IsAlgClosed K] |
| 42 | (b : Spec (.of K) ⟶ S) (_ : Over.mk b ⟶ P), |
| 43 | Additive (Over.mk b ⟶ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v.succ)) ≃+ |
| 44 | (Fin 3 → ZMod (q ^ HeckeExponents.neighborLevel i))) |
| 45 | |
| 46 | include coordinates in |
| 47 | theorem neighborCompactChoice_eq : |
| 48 | F.val.subgroup = |
| 49 | if c v then Kernel.Base.fixedKernelFamily (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ HeckeExponents.neighborLevel i) (p v.succ)) |
| 50 | else AbelianScheme.IsogenyQuotient.Kernel.Tuples.Construction.trivialRelativeSubgroup := by |
| 51 | let e : AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v.succ) ≃+ |
| 52 | AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if c v then HeckeExponents.neighborLevel i else 0) := by |
| 53 | rw [HeckeExponents.neighborExponents_compact 0 v.succ (Fin.succ_ne_zero v)] |
| 54 | exact AddEquiv.refl _ |
| 55 | exact CompactChoiceDetection.compactChoice_eq q (HeckeExponents.neighborLevel i) (c v) (p v.succ) |
| 56 | (ChoiceTypeTransport.supportedChoiceTypeEquiv _ _ e F) coordinates |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactDetection.Neighbor |