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.AbelianScheme.TateComparison.Functor |
| 2 | import Mathlib.GroupTheory.OrderOfElement |
| 3 | |
| 4 | /-! # Finite Kernel Division -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FiniteKernelDivision.FiniteKernel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A surjective homomorphism with finite kernel has an additive inverse |
| 11 | up to the kernel cardinality. The map is constructed from its actual fibers. -/ |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {H H' : Type u} [AddCommGroup H] [AddCommGroup H'] |
| 16 | (f : H →+ H') |
| 17 | |
| 18 | theorem card_smul_eq_of_map_eq {x y : H} (h : f x = f y) : |
| 19 | Nat.card f.ker • x = Nat.card f.ker • y := by |
| 20 | have hz : x - y ∈ f.ker := by |
| 21 | change f (x - y) = 0 |
| 22 | rw [map_sub, h, sub_self] |
| 23 | have he : Nat.card f.ker • (x - y) = 0 := |
| 24 | congrArg Subtype.val (card_nsmul_eq_zero' (x := (⟨x - y, hz⟩ : f.ker))) |
| 25 | rwa [nsmul_sub, sub_eq_zero] at he |
| 26 | |
| 27 | def inverseMultiple (hf : Function.Surjective f) : H' →+ H where |
| 28 | toFun y := Nat.card f.ker • (hf y).choose |
| 29 | map_zero' := by |
| 30 | exact (card_smul_eq_of_map_eq f ((hf 0).choose_spec.trans f.map_zero.symm)).trans |
| 31 | (nsmul_zero _) |
| 32 | map_add' x y := by |
| 33 | have he : f (hf (x + y)).choose = f ((hf x).choose + (hf y).choose) := by |
| 34 | rw [(hf (x + y)).choose_spec, map_add, (hf x).choose_spec, (hf y).choose_spec] |
| 35 | exact (card_smul_eq_of_map_eq f he).trans (nsmul_add _ _ _) |
| 36 | |
| 37 | theorem inverseMultiple_comp (hf : Function.Surjective f) : |
| 38 | (inverseMultiple f hf).comp f = Nat.card f.ker • AddMonoidHom.id H := by |
| 39 | ext x |
| 40 | exact card_smul_eq_of_map_eq f (hf (f x)).choose_spec |
| 41 | |
| 42 | theorem comp_inverseMultiple (hf : Function.Surjective f) : |
| 43 | f.comp (inverseMultiple f hf) = Nat.card f.ker • AddMonoidHom.id H' := by |
| 44 | ext y |
| 45 | exact (f.map_nsmul _ _).trans (congrArg (fun z => Nat.card f.ker • z) (hf y).choose_spec) |
| 46 | |
| 47 | theorem card_ne_zero [Finite f.ker] : Nat.card f.ker ≠ 0 := |
| 48 | Nat.card_ne_zero.mpr ⟨inferInstance, inferInstance⟩ |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FiniteKernelDivision.FiniteKernel |