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.ActiveChoices |
| 2 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Geometric.CompactChoices |
| 3 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ChoiceTypeTransport |
| 4 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Universal.Choices |
| 5 | |
| 6 | /-! # Enumeration -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Geometric.Enumeration.Neighbor |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Enumerate the original complete chosen-block tuple. Compact |
| 13 | coordinates have one constructed choice each; the active coordinate is |
| 14 | the subspace of the prescribed dimension. Every original choice appears |
| 15 | once, and the active relative subgroup is retained literally. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Universal.Choices.Construction OAI.AlgebraicGeometry.Isogenies.NeighborCounting.HeckeExponents OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ActiveTorsionChoices |
| 21 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Geometric.ActiveChoices OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Geometric.CompactChoices OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ChoiceTypeTransport |
| 22 | |
| 23 | def zeroComponentEquiv {s : ℕ} (C : Fin (s + 1) → Type*) |
| 24 | (c : ∀ v : Fin s, C v.succ) (hc : ∀ v (a : C v.succ), a = c v) : |
| 25 | (∀ v, C v) ≃ C 0 where |
| 26 | toFun f := f 0 |
| 27 | invFun a := Fin.cases a c |
| 28 | left_inv f := funext fun v => Fin.cases rfl (fun w => (hc w (f w.succ)).symm) v |
| 29 | right_inv _ := rfl |
| 30 | |
| 31 | variable {S : Scheme} {A : Over S} [GrpObj A] [IsCommMonObj A] |
| 32 | (q : ℕ) [Fact q.Prime] {s : ℕ} (c : Fin s → Bool) (i : Fin 3) |
| 33 | (p : Fin (s + 1) → (A ⟶ A)) [∀ v, IsMonHom (p v)] |
| 34 | (K : Type) [Field K] [IsAlgClosed K] (b : Spec (.of K) ⟶ S) |
| 35 | [∀ v, IsFinite (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v)).hom] |
| 36 | [∀ v, Etale (AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v)).hom] |
| 37 | |
| 38 | local instance : NeZero q := ⟨(Fact.out : q.Prime).ne_zero⟩ |
| 39 | local instance : Fact (1 ≤ HeckeExponents.neighborLevel i) := ⟨by unfold HeckeExponents.neighborLevel; omega⟩ |
| 40 | |
| 41 | local instance neighborModule (v : Fin (s + 1)) : |
| 42 | Module (ZMod (q ^ HeckeExponents.neighborLevel i)) |
| 43 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v)) := |
| 44 | AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.rankThreeElementaryModule_structure q (HeckeExponents.neighborLevel i) |
| 45 | (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v) |
| 46 | (HeckeExponents.neighborExponents_bound 0 (Fin.cases false c) i v) |
| 47 | |
| 48 | local instance activeModule : Module (ZMod (q ^ HeckeExponents.neighborLevel i)) |
| 49 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.activeExponents i)) := |
| 50 | AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.rankThreeElementaryModule_structure q (HeckeExponents.neighborLevel i) (HeckeExponents.activeExponents i) |
| 51 | (fun k => (HeckeExponents.activeExponents_bound i k).trans (by unfold HeckeExponents.neighborLevel; omega)) |
| 52 | |
| 53 | local instance compactModule (v : Fin s) : Module (ZMod (q ^ HeckeExponents.neighborLevel i)) |
| 54 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if c v then HeckeExponents.neighborLevel i else 0)) := |
| 55 | AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.rankThreeElementaryModule_structure q (HeckeExponents.neighborLevel i) _ |
| 56 | (fun _ => by split_ifs <;> omega) |
| 57 | |
| 58 | abbrev originalChoice (v : Fin (s + 1)) := |
| 59 | AbelianScheme.IsogenyQuotient.SubgroupFunctor.Construction.SupportedChoice A (q ^ HeckeExponents.neighborLevel i) |
| 60 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.neighborExponents 0 (Fin.cases false c) i v)) (p v) (Over.mk b) |
| 61 | |
| 62 | def activeChoiceEquiv : originalChoice q c i p K b 0 ≃ |
| 63 | AbelianScheme.IsogenyQuotient.SubgroupFunctor.Construction.SupportedChoice A (q ^ HeckeExponents.neighborLevel i) |
| 64 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.activeExponents i)) (p 0) (Over.mk b) := |
| 65 | ChoiceTypeTransport.supportedChoiceTypeEquiv _ _ (by |
| 66 | rw [HeckeExponents.neighborExponents_active] |
| 67 | exact AddEquiv.refl _) |
| 68 | |
| 69 | def compactChoiceEquiv (v : Fin s) : originalChoice q c i p K b v.succ ≃ |
| 70 | AbelianScheme.IsogenyQuotient.SubgroupFunctor.Construction.SupportedChoice A (q ^ HeckeExponents.neighborLevel i) |
| 71 | (AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if c v then HeckeExponents.neighborLevel i else 0)) |
| 72 | (p v.succ) (Over.mk b) := |
| 73 | ChoiceTypeTransport.supportedChoiceTypeEquiv _ _ (by |
| 74 | rw [HeckeExponents.neighborExponents_compact 0 v.succ (Fin.succ_ne_zero v)] |
| 75 | exact AddEquiv.refl _) |
| 76 | |
| 77 | variable (coordinates : ∀ v : Fin s, |
| 78 | Additive (Over.mk b ⟶ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p v.succ)) ≃+ |
| 79 | (Fin 3 → ZMod (q ^ HeckeExponents.neighborLevel i))) |
| 80 | |
| 81 | def originalCompactChoice (v : Fin s) : originalChoice q c i p K b v.succ := |
| 82 | (compactChoiceEquiv q c i p K b v).symm |
| 83 | (CompactChoices.geometricCompactChoice q (HeckeExponents.neighborLevel i) (c v) K b (p v.succ) (coordinates v)) |
| 84 | |
| 85 | theorem originalCompactChoice_unique (v : Fin s) (F : originalChoice q c i p K b v.succ) : |
| 86 | F = originalCompactChoice q c i p K b coordinates v := by |
| 87 | apply (compactChoiceEquiv q c i p K b v).injective |
| 88 | rw [originalCompactChoice, Equiv.apply_symm_apply] |
| 89 | exact CompactChoices.geometricCompactChoice_unique q (HeckeExponents.neighborLevel i) (c v) K b (p v.succ) (coordinates v) _ |
| 90 | |
| 91 | def originalTupleSubspaceEquiv : (∀ v, originalChoice q c i p K b v) ≃ |
| 92 | {L : Submodule (ZMod q) |
| 93 | (ActiveTorsionChoices.killedSubgroup q (Additive (Over.mk b ⟶ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p 0)))) // |
| 94 | Module.finrank (ZMod q) L = HeckeExponents.neighborLevel i} := |
| 95 | (zeroComponentEquiv (originalChoice q c i p K b) |
| 96 | (originalCompactChoice q c i p K b coordinates) |
| 97 | (originalCompactChoice_unique q c i p K b coordinates)).trans |
| 98 | ((activeChoiceEquiv q c i p K b).trans |
| 99 | (ActiveChoices.geometricActiveChoiceEquiv q (HeckeExponents.neighborLevel i) i K b (p 0))) |
| 100 | |
| 101 | theorem originalTupleSubspaceEquiv_membership |
| 102 | (F : ∀ v, originalChoice q c i p K b v) |
| 103 | (x : ActiveTorsionChoices.killedSubgroup q (Additive (Over.mk b ⟶ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlock (q ^ HeckeExponents.neighborLevel i) (p 0)))) : |
| 104 | x ∈ (originalTupleSubspaceEquiv q c i p K b coordinates F).val ↔ |
| 105 | x.val.toMul ≫ AbelianScheme.IsogenyQuotient.OppositeKernel.Construction.torsionBlockInclusion (q ^ HeckeExponents.neighborLevel i) (p 0) ∈ |
| 106 | (F 0).val.subgroup.points (Over.mk b) (𝟙 _) := |
| 107 | ActiveChoices.geometricActiveChoiceEquiv_membership q (HeckeExponents.neighborLevel i) i K b (p 0) |
| 108 | (activeChoiceEquiv q c i p K b (F 0)) x |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Geometric.Enumeration.Neighbor |