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.Intrinsic.ActiveLevel |
| 2 | import Mathlib.Algebra.Module.Submodule.Map |
| 3 | import Mathlib.LinearAlgebra.Dimension.Finrank |
| 4 | |
| 5 | /-! # Subspace Coordinates -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.SubspaceCoordinates |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Transport dimension-indexed subspaces through actual point-group |
| 12 | coordinates. The subgroup membership formula and dimension are preserved. -/ |
| 13 | |
| 14 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ActiveTypedSubspaces OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ActiveTorsionChoices OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Intrinsic.ActiveLevel |
| 15 | |
| 16 | variable {F V W : Type*} [Field F] [AddCommGroup V] [AddCommGroup W] |
| 17 | [Module F V] [Module F W] |
| 18 | |
| 19 | def dimensionSubspaceEquiv (e : V ≃ₗ[F] W) (n : ℕ) : |
| 20 | {L : Submodule F V // Module.finrank F L = n} ≃ |
| 21 | {L : Submodule F W // Module.finrank F L = n} := |
| 22 | (Submodule.orderIsoMapComap e).toEquiv.subtypeEquiv (fun L => by |
| 23 | change Module.finrank F L = n ↔ Module.finrank F (L.map e.toLinearMap) = n |
| 24 | rw [e.finrank_map_eq]) |
| 25 | |
| 26 | theorem dimensionSubspaceEquiv_membership (e : V ≃ₗ[F] W) (n : ℕ) |
| 27 | (L : {L : Submodule F V // Module.finrank F L = n}) (x : W) : |
| 28 | x ∈ (dimensionSubspaceEquiv e n L).val ↔ e.symm x ∈ L.val := |
| 29 | Submodule.mem_map_equiv L.val |
| 30 | |
| 31 | def killedPointSubspaceEquiv (q : ℕ) [Fact q.Prime] |
| 32 | {G H : Type*} [AddCommGroup G] [AddCommGroup H] (e : G ≃+ H) (n : ℕ) : |
| 33 | {L : Submodule (ZMod q) (ActiveTorsionChoices.killedSubgroup q G) // Module.finrank (ZMod q) L = n} ≃ |
| 34 | {L : Submodule (ZMod q) (ActiveTorsionChoices.killedSubgroup q H) // Module.finrank (ZMod q) L = n} := |
| 35 | dimensionSubspaceEquiv (ActiveTypedSubspaces.zmodLinearEquiv q (Intrinsic.ActiveLevel.killedSubgroupEquiv q e)) n |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.SubspaceCoordinates |