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.Algebra.Module.ZMod |
| 2 | import Mathlib.FieldTheory.Finite.Basic |
| 3 | import Mathlib.LinearAlgebra.Dimension.Free |
| 4 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 5 | import Mathlib.LinearAlgebra.FiniteDimensional.Basic |
| 6 | |
| 7 | /-! # Prime Torsion Labels -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.PrimeTorsionLabels |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A finite commutative group killed by a prime, with the proved correct |
| 14 | order, has an actual ordered standard full-level label isomorphism. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | theorem prime_torsion_label_equiv (p d : ℕ) [Fact p.Prime] |
| 20 | (G : Type) [CommGroup G] (hkill : ∀ x : G, x ^ p = 1) |
| 21 | (hcard : Nat.card G = p ^ d) : Nonempty (Multiplicative (Fin d → ZMod p) ≃* G) := by |
| 22 | let V := Additive G |
| 23 | have : Finite G := Nat.finite_of_card_ne_zero (hcard.trans_ne (pow_ne_zero _ (Fact.out : p.Prime).ne_zero)) |
| 24 | let _ : Fintype G := Fintype.ofFinite G |
| 25 | let _ : Fintype V := inferInstanceAs (Fintype (Additive G)) |
| 26 | let moduleV : Module (ZMod p) V := AddCommGroup.zmodModule (n := p) (fun x => by |
| 27 | change x.toMul ^ p = 1 |
| 28 | exact hkill x.toMul) |
| 29 | have freeV : Module.Free (ZMod p) V := Module.Free.of_divisionRing (ZMod p) V |
| 30 | have finiteV : Module.Finite (ZMod p) V := Module.Finite.of_finite |
| 31 | have hd : Module.finrank (ZMod p) V = d := by |
| 32 | apply Nat.pow_right_injective (Fact.out : p.Prime).one_lt |
| 33 | calc |
| 34 | p ^ Module.finrank (ZMod p) V = Fintype.card V := by |
| 35 | simpa only [ZMod.card] using (Module.card_eq_pow_finrank (K := ZMod p) (V := V)).symm |
| 36 | _ = p ^ d := by |
| 37 | change Fintype.card (Additive G) = p ^ d |
| 38 | rw [Fintype.card_additive, Fintype.card_eq_nat_card] |
| 39 | exact hcard |
| 40 | let b : Module.Basis (Fin d) (ZMod p) V := @Module.finBasisOfFinrankEq |
| 41 | (ZMod p) V inferInstance inferInstance moduleV freeV inferInstance finiteV d hd |
| 42 | let e : (Fin d → ZMod p) ≃ₗ[ZMod p] V := b.equivFun.symm |
| 43 | exact ⟨AddEquiv.toMultiplicativeLeft e.toAddEquiv⟩ |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.PrimeTorsionLabels |