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.RingTheory.Nilpotent.Basic |
| 2 | import Mathlib.LinearAlgebra.Span.Basic |
| 3 | import Mathlib.Algebra.Group.Subgroup.Basic |
| 4 | import Mathlib.Tactic.Abel |
| 5 | import Mathlib.Tactic.NoncommRing |
| 6 | |
| 7 | /-! # Nil Submodule Unipotent Group -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.NilSubmoduleUnipotentGroup.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A multiplicatively closed submodule consisting of nilpotent |
| 14 | elements defines a unipotent subgroup of the units. -/ |
| 15 | |
| 16 | open scoped Classical |
| 17 | |
| 18 | variable {k A : Type*} [CommRing k] [Ring A] [Module k A] |
| 19 | |
| 20 | theorem nilSubmodule_unit_inverse_sub_one_mem |
| 21 | (W : Submodule k A) (hmul : ∀ x ∈ W, ∀ y ∈ W, x * y ∈ W) |
| 22 | (hnil : ∀ x ∈ W, IsNilpotent x) (g : Aˣ) (hg : (g : A) - 1 ∈ W) : |
| 23 | (↑g⁻¹ : A) - 1 ∈ W := by |
| 24 | let x := -((g : A) - 1) |
| 25 | have hx : x ∈ W := W.neg_mem hg |
| 26 | obtain ⟨n, hn⟩ := hnil x hx |
| 27 | let S := ∑ i ∈ Finset.range n, x ^ i |
| 28 | have hprod : (g : A) * S = 1 := by |
| 29 | have hgeom := mul_geom_sum x n |
| 30 | have he : (g : A) = 1 - x := by dsimp [x]; abel |
| 31 | rw [he] |
| 32 | change (1 - x) * (∑ i ∈ Finset.range n, x ^ i) = 1 |
| 33 | rw [show 1 - x = -(x - 1) by abel, neg_mul, hgeom, hn] |
| 34 | abel |
| 35 | have hS : S = (↑g⁻¹ : A) := by |
| 36 | calc |
| 37 | S = (↑g⁻¹ : A) * ((g : A) * S) := by rw [← mul_assoc, Units.inv_mul, one_mul] |
| 38 | _ = _ := by rw [hprod, mul_one] |
| 39 | have hxS : x * S ∈ W := by |
| 40 | rw [show x * S = ∑ i ∈ Finset.range n, x ^ (i + 1) by |
| 41 | simp only [S, Finset.mul_sum, pow_succ']] |
| 42 | have hpow (i : ℕ) : x ^ (i + 1) ∈ W := by |
| 43 | induction i with |
| 44 | | zero => simpa only [zero_add, pow_one] using hx |
| 45 | | succ i ih => |
| 46 | rw [pow_succ] |
| 47 | exact hmul _ ih x hx |
| 48 | exact W.sum_mem (fun i _ => hpow i) |
| 49 | have he : (↑g⁻¹ : A) - 1 = x * S := by |
| 50 | rw [← hS] |
| 51 | have hgS : S - x * S = 1 := by |
| 52 | have he : (g : A) = 1 - x := by dsimp [x]; abel |
| 53 | simpa only [he, sub_mul, one_mul] using hprod |
| 54 | exact sub_eq_iff_eq_add.mpr ((sub_eq_iff_eq_add.mp hgS).trans (add_comm _ _)) |
| 55 | rwa [he] |
| 56 | |
| 57 | def unipotentSubgroupOfNilSubmodule |
| 58 | (W : Submodule k A) (hmul : ∀ x ∈ W, ∀ y ∈ W, x * y ∈ W) |
| 59 | (hnil : ∀ x ∈ W, IsNilpotent x) : Subgroup Aˣ where |
| 60 | carrier := {g | (g : A) - 1 ∈ W} |
| 61 | one_mem' := by |
| 62 | change (1 : A) - 1 ∈ W |
| 63 | rw [sub_self] |
| 64 | exact W.zero_mem |
| 65 | mul_mem' {g h} hg hh := by |
| 66 | change (g : A) * (h : A) - 1 ∈ W |
| 67 | have he : (g : A) * (h : A) - 1 = |
| 68 | ((g : A) - 1) * ((h : A) - 1) + ((g : A) - 1) + ((h : A) - 1) := by noncomm_ring |
| 69 | rw [he] |
| 70 | exact W.add_mem (W.add_mem (hmul _ hg _ hh) hg) hh |
| 71 | inv_mem' {g} hg := nilSubmodule_unit_inverse_sub_one_mem W hmul hnil g hg |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.ArithmeticGroups.Lattices.NilSubmoduleUnipotentGroup.Construction |