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.CompactTypedChoices |
| 2 | import Mathlib.Algebra.Group.ULift |
| 3 | |
| 4 | /-! # Compact Choice Existence -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactChoiceExistence |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A constructed rank-three coordinate equivalence supplies the |
| 11 | compact subgroup of the original elementary type. Together with the |
| 12 | cardinality argument this proves existence and uniqueness, preserving |
| 13 | the entire subgroup or the identity subgroup as appropriate. -/ |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactTypedChoices |
| 16 | |
| 17 | variable (q m : ℕ) [NeZero q] (G : Type) [AddCommGroup G] |
| 18 | (e : G ≃+ (Fin 3 → ZMod (q ^ m))) |
| 19 | |
| 20 | def compactTypedChoice (flag : Bool) : |
| 21 | {J : AddSubgroup G // |
| 22 | Nonempty (J ≃+ AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if flag then m else 0))} := by |
| 23 | cases flag with |
| 24 | | false => |
| 25 | refine ⟨⊥, ⟨?_⟩⟩ |
| 26 | change (⊥ : AddSubgroup G) ≃+ ULift (Fin 3 → ZMod 1) |
| 27 | let : Unique (ULift (Fin 3 → ZMod 1)) := Unique.mk' _ |
| 28 | exact AddEquiv.ofUnique |
| 29 | | true => |
| 30 | exact ⟨⊤, ⟨AddSubgroup.topEquiv.trans (e.trans AddEquiv.ulift.symm)⟩⟩ |
| 31 | |
| 32 | omit [NeZero q] in |
| 33 | theorem compactTypedChoice_subgroup (flag : Bool) : |
| 34 | (compactTypedChoice q m G e flag).val = if flag then ⊤ else ⊥ := by |
| 35 | cases flag <;> rfl |
| 36 | |
| 37 | include e in |
| 38 | theorem compactTypedChoice_unique (flag : Bool) |
| 39 | (J : {J : AddSubgroup G // |
| 40 | Nonempty (J ≃+ AbelianScheme.IsogenyQuotient.ElementaryModules.Construction.RankThreeElementaryModule.{0} q (fun _ => if flag then m else 0))}) : |
| 41 | J = compactTypedChoice q m G e flag := by |
| 42 | have : Finite G := Finite.of_equiv (Fin 3 → ZMod (q ^ m)) e.symm.toEquiv |
| 43 | have hc : Nat.card G = (q ^ m) ^ 3 := by |
| 44 | simpa only [Nat.card_pi, Nat.card_zmod, Finset.prod_const, Finset.card_univ, |
| 45 | Fintype.card_fin] using Nat.card_congr e.toEquiv |
| 46 | apply Subtype.ext |
| 47 | exact (CompactTypedChoices.typed_compact_subgroup_eq q m G hc flag J.val J.property).trans |
| 48 | (compactTypedChoice_subgroup q m G e flag).symm |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.CompactChoiceExistence |