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.ActiveTypedSubspaces |
| 2 | import Mathlib.Algebra.Group.Subgroup.Map |
| 3 | |
| 4 | /-! # Active Torsion Choices -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ActiveTorsionChoices |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An active elementary subgroup inside higher torsion lies in the |
| 11 | actual q-torsion subgroup. Restriction retains its unmarked subgroup |
| 12 | and yields the required finite-dimensional subspace classification. -/ |
| 13 | |
| 14 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.HeckeExponents OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ActiveTypedSubspaces |
| 15 | |
| 16 | variable {G M : Type*} [AddCommGroup G] [AddCommGroup M] |
| 17 | |
| 18 | def typedSubgroupsBelowEquiv (S : AddSubgroup G) : |
| 19 | {J : AddSubgroup G // Nonempty (J ≃+ M) ∧ J ≤ S} ≃ |
| 20 | {J : AddSubgroup S // Nonempty (J ≃+ M)} where |
| 21 | toFun J := ⟨J.val.addSubgroupOf S, J.property.1.map |
| 22 | (fun e => (AddSubgroup.addSubgroupOfEquivOfLe J.property.2).trans e)⟩ |
| 23 | invFun J := ⟨J.val.map S.subtype, |
| 24 | ⟨J.property.map (fun e => (J.val.equivMapOfInjective S.subtype Subtype.val_injective).symm.trans e), by |
| 25 | rintro x ⟨y, _, rfl⟩ |
| 26 | exact y.property⟩⟩ |
| 27 | left_inv J := by |
| 28 | apply Subtype.ext |
| 29 | ext x |
| 30 | constructor |
| 31 | · rintro ⟨y, hy, rfl⟩ |
| 32 | exact hy |
| 33 | · intro hx |
| 34 | exact ⟨⟨x, J.property.2 hx⟩, hx, rfl⟩ |
| 35 | right_inv J := by |
| 36 | apply Subtype.ext |
| 37 | ext x |
| 38 | exact AddSubgroup.mem_map_iff_mem Subtype.val_injective |
| 39 | |
| 40 | def killedSubgroup (q : ℕ) (G : Type*) [AddCommGroup G] : AddSubgroup G where |
| 41 | carrier := {x | q • x = 0} |
| 42 | zero_mem' := nsmul_zero q |
| 43 | add_mem' hx hy := by |
| 44 | change q • _ = 0 at hx hy ⊢ |
| 45 | rw [nsmul_add, hx, hy, add_zero] |
| 46 | neg_mem' hx := by |
| 47 | change q • _ = 0 at hx ⊢ |
| 48 | rw [smul_neg, hx, neg_zero] |
| 49 | |
| 50 | instance killedSubgroupModule (q : ℕ) (G : Type*) [AddCommGroup G] : Module (ZMod q) (killedSubgroup q G) := |
| 51 | AddCommGroup.zmodModule (fun x => Subtype.ext x.property) |
| 52 | |
| 53 | theorem typed_subgroup_killed (q : ℕ) (hM : ∀ x : M, q • x = 0) |
| 54 | (J : AddSubgroup G) (hJ : Nonempty (J ≃+ M)) : J ≤ killedSubgroup q G := by |
| 55 | obtain ⟨e⟩ := hJ |
| 56 | intro x hx |
| 57 | have hz : q • (⟨x, hx⟩ : J) = 0 := by |
| 58 | apply e.injective |
| 59 | rw [map_nsmul, hM, map_zero] |
| 60 | exact congrArg Subtype.val hz |
| 61 | |
| 62 | def typedKilledRestrictionEquiv (q : ℕ) (hM : ∀ x : M, q • x = 0) : |
| 63 | {J : AddSubgroup G // Nonempty (J ≃+ M)} ≃ |
| 64 | {J : AddSubgroup (killedSubgroup q G) // Nonempty (J ≃+ M)} := |
| 65 | (Equiv.subtypeEquivRight (fun J => |
| 66 | ⟨fun h => ⟨h, typed_subgroup_killed q hM J h⟩, fun h => h.1⟩)).trans |
| 67 | (typedSubgroupsBelowEquiv (killedSubgroup q G)) |
| 68 | |
| 69 | theorem typedKilledRestrictionEquiv_membership (q : ℕ) (hM : ∀ x : M, q • x = 0) |
| 70 | (J : {J : AddSubgroup G // Nonempty (J ≃+ M)}) (x : killedSubgroup q G) : |
| 71 | x ∈ (typedKilledRestrictionEquiv q hM J).val ↔ x.val ∈ J.val := Iff.rfl |
| 72 | |
| 73 | variable (q : ℕ) [Fact q.Prime] (G : Type) [AddCommGroup G] [Finite G] |
| 74 | |
| 75 | def activeTorsionSubspaceEquiv (i : Fin 3) : |
| 76 | {J : AddSubgroup G // Nonempty (J ≃+ AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.activeExponents i))} ≃ |
| 77 | {L : Submodule (ZMod q) (killedSubgroup q G) // Module.finrank (ZMod q) L = HeckeExponents.neighborLevel i} := |
| 78 | (typedKilledRestrictionEquiv q (HeckeExponents.activeElementaryModule_killed q i)).trans |
| 79 | (ActiveTypedSubspaces.activeTypedSubspaceEquiv q (killedSubgroup q G) i) |
| 80 | |
| 81 | theorem activeTorsionSubspaceEquiv_membership (i : Fin 3) |
| 82 | (J : {J : AddSubgroup G // Nonempty (J ≃+ AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (HeckeExponents.activeExponents i))}) |
| 83 | (x : killedSubgroup q G) : |
| 84 | x ∈ (activeTorsionSubspaceEquiv q G i J).val ↔ x.val ∈ J.val := Iff.rfl |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ActiveTorsionChoices |