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 Mathlib.NumberTheory.Padics.RingHoms |
| 2 | import Mathlib.GroupTheory.QuotientGroup.Basic |
| 3 | import Mathlib.Algebra.Group.Pi.Lemmas |
| 4 | |
| 5 | /-! # Padic -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Padic.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Compute the actual additive quotient of a q-adic coordinate lattice by |
| 13 | its diagonal q-powers. The quotient is the prescribed product of Z/(q^a), |
| 14 | using the genuine residue maps and their proved kernels. |
| 15 | -/ |
| 16 | |
| 17 | variable (q : ℕ) [Fact q.Prime] {d : ℕ} |
| 18 | |
| 19 | def padicCoordinateResidues (a : Fin d → ℕ) : |
| 20 | (Fin d → ℤ_[q]) →+ (∀ i, ZMod (q ^ a i)) where |
| 21 | toFun x i := PadicInt.toZModPow (a i) (x i) |
| 22 | map_zero' := funext (fun _ => map_zero _) |
| 23 | map_add' x y := funext (fun i => map_add _ (x i) (y i)) |
| 24 | |
| 25 | theorem padicCoordinateResidues_surjective (a : Fin d → ℕ) : |
| 26 | Function.Surjective (padicCoordinateResidues q a) := by |
| 27 | intro x |
| 28 | choose r hr using fun i => ZMod.ringHom_surjective (PadicInt.toZModPow (p := q) (a i)) (x i) |
| 29 | exact ⟨r, funext hr⟩ |
| 30 | |
| 31 | def padicDiagonalSubgroup (a : Fin d → ℕ) : AddSubgroup (Fin d → ℤ_[q]) where |
| 32 | carrier := {x | ∀ i, x i ∈ Ideal.span {(q : ℤ_[q]) ^ a i}} |
| 33 | zero_mem' i := (Ideal.span {(q : ℤ_[q]) ^ a i}).zero_mem |
| 34 | add_mem' hx hy i := (Ideal.span {(q : ℤ_[q]) ^ a i}).add_mem (hx i) (hy i) |
| 35 | neg_mem' hx i := (Ideal.span {(q : ℤ_[q]) ^ a i}).neg_mem (hx i) |
| 36 | |
| 37 | /-- The coordinate residue map has exactly the diagonal q-power subgroup as kernel. -/ |
| 38 | theorem padicCoordinateResidues_ker (a : Fin d → ℕ) : |
| 39 | (padicCoordinateResidues q a).ker = padicDiagonalSubgroup q a := by |
| 40 | ext x |
| 41 | change (fun i => PadicInt.toZModPow (a i) (x i)) = 0 ↔ |
| 42 | ∀ i, x i ∈ Ideal.span {(q : ℤ_[q]) ^ a i} |
| 43 | rw [funext_iff] |
| 44 | apply forall_congr' |
| 45 | intro i |
| 46 | rw [← PadicInt.ker_toZModPow] |
| 47 | rfl |
| 48 | |
| 49 | /-- An actual quotient-group isomorphism, not merely an equality of cardinalities. -/ |
| 50 | def padicDiagonalQuotientEquiv (a : Fin d → ℕ) : |
| 51 | (Fin d → ℤ_[q]) ⧸ padicDiagonalSubgroup q a ≃+ (∀ i, ZMod (q ^ a i)) := |
| 52 | (QuotientAddGroup.quotientAddEquivOfEq (padicCoordinateResidues_ker q a).symm).trans |
| 53 | (QuotientAddGroup.quotientKerEquivOfSurjective (padicCoordinateResidues q a) |
| 54 | (padicCoordinateResidues_surjective q a)) |
| 55 | |
| 56 | theorem padicDiagonalQuotient_finite (a : Fin d → ℕ) : |
| 57 | Finite ((Fin d → ℤ_[q]) ⧸ padicDiagonalSubgroup q a) := by |
| 58 | exact Finite.of_equiv (∀ i, ZMod (q ^ a i)) (padicDiagonalQuotientEquiv q a).symm.toEquiv |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Padic.Construction |