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.Geometric.CompactChoices |
| 2 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Parameter.ImageComparison |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SubgroupDetection |
| 4 | |
| 5 | /-! # Compact Choice Detection -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactChoiceDetection |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The prescribed compact module type forces the entire chosen block |
| 12 | or the identity subgroup, as functors on every test scheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped _root_.CategoryTheory.MonObj |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Geometric.CompactChoices |
| 18 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Parameter.ImageComparison OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SubgroupDetection.EtaleSubgroupModels |
| 19 | |
| 20 | variable {S : Scheme} {A P : Over S} [GrpObj A] [IsCommMonObj A] |
| 21 | (q m : ℕ) [NeZero q] (flag : Bool) (p : A ⟶ A) [IsMonHom p] |
| 22 | [IsFinite (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ m) p).hom] [Etale (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ m) p).hom] |
| 23 | |
| 24 | local instance compactModuleAtLevel : |
| 25 | Module (ZMod (q ^ m)) (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if flag then m else 0)) := |
| 26 | AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.rankThreeElementaryModule_structure q m (fun _ => if flag then m else 0) |
| 27 | (fun _ => by cases flag <;> simp) |
| 28 | |
| 29 | def compactBlockFamily : AbelianScheme.TorsionQuotient.SubgroupFunctor.RelativeSubgroup (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ m) p) P := |
| 30 | if flag then Kernel.Base.fixedKernelFamily (𝟙 _) else AbelianScheme.IsogenyQuotient.Kernel.Tuples.Construction.trivialRelativeSubgroup |
| 31 | |
| 32 | def compactBlockFamilyModel : (compactBlockFamily (P := P) q m flag p).Model := by |
| 33 | cases flag with |
| 34 | | false => exact AbelianScheme.IsogenyQuotient.Kernel.Tuples.Construction.trivialRelativeSubgroup_model |
| 35 | | true => exact Kernel.Base.fixedKernelFamily_model (𝟙 (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ m) p)) |
| 36 | |
| 37 | variable (F : AbelianScheme.IsogenyQuotient.SubgroupFunctor.Construction.SupportedChoice A (q ^ m) |
| 38 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if flag then m else 0)) p P) |
| 39 | (coordinates : ∀ (K : Type) [Field K] [IsAlgClosed K] |
| 40 | (b : Spec (.of K) ⟶ S) (_ : Over.mk b ⟶ P), |
| 41 | Additive (Over.mk b ⟶ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ m) p) ≃+ (Fin 3 → ZMod (q ^ m))) |
| 42 | |
| 43 | include coordinates in |
| 44 | theorem compactChoice_block_eq : |
| 45 | AbelianScheme.IsogenyQuotient.SubgroupTransport.Construction.relativeSubgroupPullback (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p) F.val.subgroup = |
| 46 | compactBlockFamily q m flag p := by |
| 47 | apply AbelianScheme.TorsionQuotient.SubgroupDetection.EtaleSubgroupModels.eq_of_geometric_points |
| 48 | (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.supportedTorsionBlock_model (q ^ m) p F.val.subgroup |
| 49 | (Classical.choice F.val.geometric) F.val.killed F.property) |
| 50 | (compactBlockFamilyModel q m flag p) |
| 51 | intro K _ _ b t |
| 52 | ext z |
| 53 | let FK : AbelianScheme.IsogenyQuotient.SubgroupFunctor.Construction.SupportedChoice A (q ^ m) |
| 54 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if flag then m else 0)) p (Over.mk b) := |
| 55 | ⟨F.val.baseChange t, AbelianScheme.IsogenyQuotient.SubgroupFunctor.Construction.supportedOn_baseChange F.val.subgroup p F.property t⟩ |
| 56 | have h := Geometric.CompactChoices.geometricCompactChoice_membership q m flag K b p (coordinates K b t) FK (Additive.ofMul z) |
| 57 | change z ≫ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p ∈ F.val.subgroup.points (Over.mk b) ((𝟙 _) ≫ t) ↔ |
| 58 | if flag then True else z = 1 at h |
| 59 | rw [Category.id_comp] at h |
| 60 | cases flag with |
| 61 | | false => exact h |
| 62 | | true => |
| 63 | constructor |
| 64 | · intro _ |
| 65 | exact ⟨z, Category.comp_id z⟩ |
| 66 | · intro _ |
| 67 | exact h.mpr trivial |
| 68 | |
| 69 | omit [NeZero q] [IsFinite (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ m) p).hom] |
| 70 | [Etale (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ m) p).hom] in |
| 71 | theorem compactBlockFamily_image : |
| 72 | AbelianScheme.IsogenyQuotient.SubgroupTransport.Construction.relativeSubgroupImage (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p) (compactBlockFamily (P := P) q m flag p) = |
| 73 | if flag then Kernel.Base.fixedKernelFamily (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p) else AbelianScheme.IsogenyQuotient.Kernel.Tuples.Construction.trivialRelativeSubgroup := by |
| 74 | cases flag with |
| 75 | | false => |
| 76 | ext X t z |
| 77 | constructor |
| 78 | · rintro ⟨y, hy, rfl⟩ |
| 79 | change y = 1 at hy |
| 80 | change y ≫ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p = 1 |
| 81 | rw [hy, MonObj.one_comp] |
| 82 | · intro hz |
| 83 | change z = 1 at hz |
| 84 | exact ⟨1, rfl, (MonObj.one_comp (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p)).trans hz.symm⟩ |
| 85 | | true => |
| 86 | simpa [compactBlockFamily] using |
| 87 | (Parameter.ImageComparison.fixedKernelFamily_image (P := P) (𝟙 (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ m) p)) |
| 88 | (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p)) |
| 89 | |
| 90 | include coordinates in |
| 91 | theorem compactChoice_eq : |
| 92 | F.val.subgroup = |
| 93 | if flag then Kernel.Base.fixedKernelFamily (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p) else AbelianScheme.IsogenyQuotient.Kernel.Tuples.Construction.trivialRelativeSubgroup := |
| 94 | (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.supportedTorsionBlock_image (q ^ m) p F.val.subgroup F.val.killed F.property).symm.trans |
| 95 | ((congrArg (AbelianScheme.IsogenyQuotient.SubgroupTransport.Construction.relativeSubgroupImage (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ m) p)) |
| 96 | (compactChoice_block_eq q m flag p F coordinates)).trans |
| 97 | (compactBlockFamily_image q m flag p)) |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactChoiceDetection |