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.Lie.Semisimple.Basic |
| 2 | |
| 3 | /-! # Lie Scalar Simplicity -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.LieScalarSimplicity |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Simplicity is retained when changing the scalar field of a Lie |
| 10 | algebra with the same bracket. The scalar-stable part of any ideal |
| 11 | contains its brackets with the whole Lie algebra. -/ |
| 12 | |
| 13 | variable {κ K L : Type*} [CommRing κ] [CommRing K] [LieRing L] |
| 14 | variable [LieAlgebra κ L] [LieAlgebra K L] |
| 15 | |
| 16 | def scalarIdealCore (I : LieIdeal κ L) : LieIdeal K L where |
| 17 | carrier := {x | ∀ a : K, a • x ∈ I} |
| 18 | zero_mem' := by intro a; rw [smul_zero]; exact I.zero_mem |
| 19 | add_mem' hx hy a := by rw [smul_add]; exact I.add_mem (hx a) (hy a) |
| 20 | smul_mem' b x hx a := by simpa only [smul_smul] using hx (a * b) |
| 21 | lie_mem := by |
| 22 | intro x y hy a |
| 23 | rw [← lie_smul] |
| 24 | exact I.lie_mem (hy a) |
| 25 | |
| 26 | theorem scalarIdealCore_mem (I : LieIdeal κ L) {x : L} (hx : x ∈ scalarIdealCore (K := K) I) : |
| 27 | x ∈ I := by |
| 28 | simpa only [one_smul] using hx (1 : K) |
| 29 | |
| 30 | theorem lie_mem_scalarIdealCore (I : LieIdeal κ L) (x : L) {y : L} (hy : y ∈ I) : |
| 31 | ⁅x, y⁆ ∈ scalarIdealCore (K := K) I := by |
| 32 | intro a |
| 33 | rw [← smul_lie] |
| 34 | exact I.lie_mem hy |
| 35 | |
| 36 | theorem isSimple_of_simple_coefficients [LieAlgebra.IsSimple K L] : |
| 37 | LieAlgebra.IsSimple κ L where |
| 38 | non_abelian := LieAlgebra.IsSimple.non_abelian K |
| 39 | eq_bot_or_eq_top I := by |
| 40 | rcases LieAlgebra.IsSimple.eq_bot_or_eq_top (scalarIdealCore (K := K) I) with hJ | hJ |
| 41 | · left |
| 42 | have hcenter : LieAlgebra.center K L = ⊥ := by |
| 43 | apply (LieAlgebra.IsSimple.eq_bot_or_eq_top (LieAlgebra.center K L)).resolve_right |
| 44 | intro hc |
| 45 | exact LieAlgebra.IsSimple.non_abelian K |
| 46 | ((LieAlgebra.isLieAbelian_iff_center_eq_top K L).mpr hc) |
| 47 | apply le_antisymm _ bot_le |
| 48 | intro y hy |
| 49 | have hc : y ∈ LieAlgebra.center K L := by |
| 50 | apply (LieModule.mem_maxTrivSubmodule K L L y).mpr |
| 51 | intro x |
| 52 | have hm := lie_mem_scalarIdealCore (K := K) I x hy |
| 53 | rwa [hJ, LieSubmodule.mem_bot] at hm |
| 54 | rwa [hcenter] at hc |
| 55 | · right |
| 56 | apply le_antisymm le_top |
| 57 | intro x _ |
| 58 | apply scalarIdealCore_mem (K := K) I |
| 59 | rw [hJ] |
| 60 | trivial |
| 61 | |
| 62 | theorem nonzero_invariant_subalgebra_eq |
| 63 | (J B : LieSubalgebra κ L) [LieAlgebra.IsSimple κ B] |
| 64 | (hJB : J ≤ B) (hJ : J ≠ ⊥) |
| 65 | (hbracket : ∀ x y : L, x ∈ B → y ∈ J → ⁅x, y⁆ ∈ J) : J = B := by |
| 66 | obtain ⟨I, hI⟩ := (LieSubalgebra.exists_nested_lieIdeal_coe_eq_iff κ J hJB).mpr hbracket |
| 67 | rcases LieAlgebra.IsSimple.eq_bot_or_eq_top I with hbot | htop |
| 68 | · exfalso |
| 69 | apply hJ |
| 70 | apply le_antisymm _ bot_le |
| 71 | intro x hx |
| 72 | let y : B := ⟨x, hJB hx⟩ |
| 73 | have hy : y ∈ I := by |
| 74 | change y ∈ I.toLieSubalgebra |
| 75 | rw [hI, LieSubalgebra.mem_ofLe] |
| 76 | exact hx |
| 77 | rw [hbot, LieSubmodule.mem_bot] at hy |
| 78 | exact congrArg Subtype.val hy |
| 79 | · apply le_antisymm hJB |
| 80 | intro x hx |
| 81 | let y : B := ⟨x, hx⟩ |
| 82 | have hy : y ∈ I := by rw [htop]; trivial |
| 83 | change y ∈ I.toLieSubalgebra at hy |
| 84 | rw [hI, LieSubalgebra.mem_ofLe] at hy |
| 85 | exact hy |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.NumberTheory.Quaternion.Arithmetic.LieScalarSimplicity |