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.NumberTheory.Quaternion.Arithmetic.TensorInvariantSubspaces |
| 2 | import Mathlib.Algebra.Lie.BaseChange |
| 3 | import Mathlib.RingTheory.Flat.FaithfullyFlat.Basic |
| 4 | import OAI.NumberTheory.Quaternion.Arithmetic.LieScalarSimplicity |
| 5 | |
| 6 | /-! # Simple Lie -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.Quaternion.Arithmetic.SimpleLie |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! A simple finite-dimensional Lie algebra over an algebraically closed |
| 15 | field remains simple after any field extension. -/ |
| 16 | |
| 17 | open scoped Classical TensorProduct |
| 18 | |
| 19 | variable {k K L : Type*} [Field k] [Field K] [Algebra k K] [LieRing L] [LieAlgebra k L] |
| 20 | |
| 21 | theorem tensor_ideal_stable_under_adjoint_algebra |
| 22 | (I : LieIdeal K (K ⊗[k] L)) {f : Module.End k L} (hf : f ∈ AdjointAssociativeDensity.adjointAssociativeAlgebra k L) : |
| 23 | ∀ x ∈ I, f.baseChange K x ∈ I := by |
| 24 | induction hf using Algebra.adjoin_induction with |
| 25 | | mem f hf => |
| 26 | obtain ⟨a, rfl⟩ := hf |
| 27 | intro x hx |
| 28 | have hm : (LieModule.toEnd K (K ⊗[k] L) (K ⊗[k] L) ((1 : K) ⊗ₜ[k] a)) x ∈ I := |
| 29 | I.lie_mem hx |
| 30 | rwa [LieModule.toEnd_baseChange] at hm |
| 31 | | algebraMap a => |
| 32 | intro x hx |
| 33 | rw [Algebra.algebraMap_eq_smul_one, LinearMap.baseChange_smul, LinearMap.baseChange_one] |
| 34 | exact (I.toSubmodule.restrictScalars k).smul_mem a hx |
| 35 | | add f g _ _ hf hg => |
| 36 | intro x hx |
| 37 | rw [LinearMap.baseChange_add, LinearMap.add_apply] |
| 38 | exact I.add_mem (hf x hx) (hg x hx) |
| 39 | | mul f g _ _ hf hg => |
| 40 | intro x hx |
| 41 | rw [LinearMap.baseChange_mul, Module.End.mul_apply] |
| 42 | exact hf _ (hg x hx) |
| 43 | |
| 44 | theorem simple_lie_baseChange_of_algClosed |
| 45 | [IsAlgClosed k] [FiniteDimensional k L] [LieAlgebra.IsSimple k L] : |
| 46 | LieAlgebra.IsSimple K (K ⊗[k] L) where |
| 47 | eq_bot_or_eq_top I := by |
| 48 | have hstable : ∀ f : Module.End k L, ∀ x ∈ I.toSubmodule, f.baseChange K x ∈ I.toSubmodule := by |
| 49 | intro f |
| 50 | apply tensor_ideal_stable_under_adjoint_algebra I |
| 51 | rw [AdjointAssociativeDensity.adjointAssociativeAlgebra_eq_top] |
| 52 | trivial |
| 53 | rcases TensorInvariantSubspaces.tensor_invariant_subspace_eq_bot_or_top I.toSubmodule hstable with hI | hI |
| 54 | · exact Or.inl (LieSubmodule.toSubmodule_injective hI) |
| 55 | · exact Or.inr (LieSubmodule.toSubmodule_injective hI) |
| 56 | non_abelian := by |
| 57 | intro habel |
| 58 | let : IsLieAbelian (K ⊗[k] L) := habel |
| 59 | apply LieAlgebra.IsSimple.non_abelian k (L := L) |
| 60 | constructor |
| 61 | intro x y |
| 62 | have h : ⁅(1 : K) ⊗ₜ[k] x, (1 : K) ⊗ₜ[k] y⁆ = 0 := LieModule.IsTrivial.trivial _ _ |
| 63 | rw [LieAlgebra.ExtendScalars.bracket_tmul, one_mul] at h |
| 64 | exact (Module.FaithfullyFlat.one_tmul_eq_zero_iff (R := k) (M := L) (A := K) ⁅x, y⁆).mp h |
| 65 | |
| 66 | end |
| 67 | |
| 68 | section |
| 69 | |
| 70 | /-! Simplicity descends along field extension and is preserved by Lie |
| 71 | isomorphisms. These results transfer geometric simplicity to the chosen |
| 72 | models of infinitesimal Lie algebras. -/ |
| 73 | |
| 74 | open scoped TensorProduct |
| 75 | |
| 76 | theorem simple_of_LieEquiv |
| 77 | {k L M : Type*} [CommRing k] [LieRing L] [LieAlgebra k L] |
| 78 | [LieRing M] [LieAlgebra k M] [LieAlgebra.IsSimple k L] |
| 79 | (e : L ≃ₗ⁅k⁆ M) : LieAlgebra.IsSimple k M where |
| 80 | eq_bot_or_eq_top I := by |
| 81 | rcases LieAlgebra.IsSimple.eq_bot_or_eq_top (LieIdeal.comap e.toLieHom I) with hI | hI |
| 82 | · left |
| 83 | apply le_antisymm _ bot_le |
| 84 | intro x hx |
| 85 | have hm : e.symm x ∈ LieIdeal.comap e.toLieHom I := by |
| 86 | change e (e.symm x) ∈ I |
| 87 | simpa only [e.apply_symm_apply] using hx |
| 88 | rw [hI, LieSubmodule.mem_bot] at hm |
| 89 | exact e.symm.injective (hm.trans e.symm.map_zero.symm) |
| 90 | · right |
| 91 | apply le_antisymm le_top |
| 92 | intro x _ |
| 93 | have hm : e.symm x ∈ LieIdeal.comap e.toLieHom I := by rw [hI]; trivial |
| 94 | change e (e.symm x) ∈ I at hm |
| 95 | simpa only [e.apply_symm_apply] using hm |
| 96 | non_abelian := by |
| 97 | intro hM |
| 98 | let : IsLieAbelian M := hM |
| 99 | apply LieAlgebra.IsSimple.non_abelian k (L := L) |
| 100 | constructor |
| 101 | intro x y |
| 102 | apply e.injective |
| 103 | rw [map_zero, e.toLieHom.map_lie] |
| 104 | exact LieModule.IsTrivial.trivial _ _ |
| 105 | |
| 106 | variable {k K L : Type*} [Field k] [Field K] [Algebra k K] [LieRing L] [LieAlgebra k L] |
| 107 | |
| 108 | theorem lieAbelian_baseChange [IsLieAbelian L] : IsLieAbelian (K ⊗[k] L) := by |
| 109 | constructor |
| 110 | intro x y |
| 111 | induction x using TensorProduct.inductionOn with |
| 112 | | add x z hx hz => rw [add_lie, hx, hz, add_zero] |
| 113 | | tmul a u => |
| 114 | induction y using TensorProduct.inductionOn with |
| 115 | | add y z hy hz => rw [lie_add, hy, hz, add_zero] |
| 116 | | tmul b v => |
| 117 | rw [LieAlgebra.ExtendScalars.bracket_tmul, LieModule.IsTrivial.trivial, |
| 118 | TensorProduct.tmul_zero] |
| 119 | |
| 120 | theorem lieIdeal_baseChange_injective : |
| 121 | Function.Injective (fun I : LieIdeal k L => I.baseChange K) := by |
| 122 | intro I J h |
| 123 | apply LieSubmodule.toSubmodule_injective |
| 124 | apply Submodule.baseChange_injective (A := K) |
| 125 | simpa only [LieSubmodule.coe_baseChange] using congrArg LieSubmodule.toSubmodule h |
| 126 | |
| 127 | theorem simple_lie_of_baseChange [LieAlgebra.IsSimple K (K ⊗[k] L)] : LieAlgebra.IsSimple k L where |
| 128 | eq_bot_or_eq_top I := by |
| 129 | rcases LieAlgebra.IsSimple.eq_bot_or_eq_top (I.baseChange K) with hI | hI |
| 130 | · left |
| 131 | apply lieIdeal_baseChange_injective (K := K) |
| 132 | simpa only [LieSubmodule.baseChange_bot] using hI |
| 133 | · right |
| 134 | apply lieIdeal_baseChange_injective (K := K) |
| 135 | simpa only [LieSubmodule.baseChange_top] using hI |
| 136 | non_abelian := by |
| 137 | intro hL |
| 138 | let : IsLieAbelian L := hL |
| 139 | exact LieAlgebra.IsSimple.non_abelian K (L := K ⊗[k] L) (lieAbelian_baseChange (K := K)) |
| 140 | |
| 141 | end |
| 142 | |
| 143 | /-! Restriction of scalars for a Lie subalgebra, with simplicity |
| 144 | transported to the resulting subtype. -/ |
| 145 | |
| 146 | variable {κ K A : Type*} [CommRing κ] [CommRing K] [Algebra κ K] |
| 147 | [LieRing A] [LieAlgebra κ A] [LieAlgebra K A] [IsScalarTower κ K A] |
| 148 | |
| 149 | def lieSubalgebraRestrictScalars (B : LieSubalgebra K A) : LieSubalgebra κ A := |
| 150 | { B.toSubmodule.restrictScalars κ with lie_mem' := B.lie_mem } |
| 151 | |
| 152 | theorem lieSubalgebraRestrictScalars_isSimple (B : LieSubalgebra K A) |
| 153 | [LieAlgebra.IsSimple K B] : LieAlgebra.IsSimple κ (lieSubalgebraRestrictScalars (κ := κ) B) := by |
| 154 | let : LieAlgebra κ B := { |
| 155 | lie_smul := fun c x y => Subtype.ext (lie_smul c x.val y.val) } |
| 156 | let : LieAlgebra.IsSimple κ B := LieScalarSimplicity.isSimple_of_simple_coefficients (K := K) |
| 157 | let e : B ≃ₗ⁅κ⁆ lieSubalgebraRestrictScalars (κ := κ) B := { |
| 158 | toFun := fun x => ⟨x.val, x.property⟩ |
| 159 | invFun := fun x => ⟨x.val, x.property⟩ |
| 160 | left_inv := fun _ => rfl |
| 161 | right_inv := fun _ => rfl |
| 162 | map_add' := fun _ _ => rfl |
| 163 | map_smul' := fun _ _ => rfl |
| 164 | map_lie' := rfl } |
| 165 | exact simple_of_LieEquiv e |
| 166 | |
| 167 | end |
| 168 | |
| 169 | end OAI.NumberTheory.Quaternion.Arithmetic.SimpleLie |