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.Module.Projective |
| 2 | import Mathlib.RingTheory.Finiteness.Cardinality |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Pi |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 5 | |
| 6 | /-! # Split Module Kernel -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SplitModuleKernel |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A map between direct summands can be expressed by equations on the ambient modules, preserving its actual kernel. -/ |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (R : Type u) [CommRing R] |
| 17 | variable (M F : Type u) [AddCommGroup M] [Module R M] [AddCommGroup F] [Module R F] |
| 18 | |
| 19 | structure SplitModuleEmbedding where |
| 20 | inclusion : M →ₗ[R] F |
| 21 | projection : F →ₗ[R] M |
| 22 | split : projection.comp inclusion = LinearMap.id |
| 23 | |
| 24 | variable {R M F} |
| 25 | |
| 26 | theorem SplitModuleEmbedding.projection_inclusion (P : SplitModuleEmbedding R M F) (x : M) : |
| 27 | P.projection (P.inclusion x) = x := congrArg (fun f : M →ₗ[R] M => f x) P.split |
| 28 | |
| 29 | theorem SplitModuleEmbedding.inclusion_injective (P : SplitModuleEmbedding R M F) : |
| 30 | Function.Injective P.inclusion := Function.LeftInverse.injective P.projection_inclusion |
| 31 | |
| 32 | def SplitModuleEmbedding.baseChange (P : SplitModuleEmbedding R M F) |
| 33 | (A : Type u) [CommRing A] [Algebra R A] : |
| 34 | SplitModuleEmbedding A (TensorProduct R A M) (TensorProduct R A F) where |
| 35 | inclusion := P.inclusion.baseChange A |
| 36 | projection := P.projection.baseChange A |
| 37 | split := by rw [← LinearMap.baseChange_comp, P.split, LinearMap.baseChange_id] |
| 38 | |
| 39 | variable {N G : Type u} [AddCommGroup N] [Module R N] [AddCommGroup G] [Module R G] |
| 40 | |
| 41 | def splitModuleKernelEquation (P : SplitModuleEmbedding R M F) |
| 42 | (Q : SplitModuleEmbedding R N G) (f : M →ₗ[R] N) : F →ₗ[R] G × F := |
| 43 | (Q.inclusion.comp (f.comp P.projection)).prod (LinearMap.id - P.inclusion.comp P.projection) |
| 44 | |
| 45 | theorem splitModuleKernelEquation_mem (P : SplitModuleEmbedding R M F) |
| 46 | (Q : SplitModuleEmbedding R N G) (f : M →ₗ[R] N) (x : F) : |
| 47 | x ∈ (splitModuleKernelEquation P Q f).ker ↔ |
| 48 | f (P.projection x) = 0 ∧ P.inclusion (P.projection x) = x := by |
| 49 | change (Q.inclusion (f (P.projection x)), x - P.inclusion (P.projection x)) = (0, 0) ↔ _ |
| 50 | rw [Prod.mk.injEq, sub_eq_zero, eq_comm (a := x)] |
| 51 | have he : Q.inclusion (f (P.projection x)) = 0 ↔ f (P.projection x) = 0 := by |
| 52 | simpa only [map_zero] using |
| 53 | (Q.inclusion_injective.eq_iff : |
| 54 | Q.inclusion (f (P.projection x)) = Q.inclusion 0 ↔ f (P.projection x) = 0) |
| 55 | exact and_congr he Iff.rfl |
| 56 | |
| 57 | def splitModuleKernelEquiv (P : SplitModuleEmbedding R M F) |
| 58 | (Q : SplitModuleEmbedding R N G) (f : M →ₗ[R] N) : |
| 59 | f.ker ≃ₗ[R] (splitModuleKernelEquation P Q f).ker where |
| 60 | toFun x := ⟨P.inclusion x, (splitModuleKernelEquation_mem P Q f _).mpr |
| 61 | ⟨by rw [P.projection_inclusion]; exact x.property, |
| 62 | congrArg P.inclusion (P.projection_inclusion x)⟩⟩ |
| 63 | invFun x := ⟨P.projection x, ((splitModuleKernelEquation_mem P Q f _).mp x.property).1⟩ |
| 64 | left_inv x := Subtype.ext (P.projection_inclusion x) |
| 65 | right_inv x := Subtype.ext ((splitModuleKernelEquation_mem P Q f _).mp x.property).2 |
| 66 | map_add' x y := Subtype.ext (P.inclusion.map_add x y) |
| 67 | map_smul' c x := Subtype.ext (P.inclusion.map_smul c x) |
| 68 | |
| 69 | theorem finite_projective_exists_split [Module.Finite R M] [Module.Projective R M] : |
| 70 | ∃ n : ℕ, Nonempty (SplitModuleEmbedding R M (Fin n → R)) := by |
| 71 | obtain ⟨n, p, hp⟩ := Module.Finite.exists_fin' R M |
| 72 | obtain ⟨i, hi⟩ := Module.projective_lifting_property p (LinearMap.id : M →ₗ[R] M) hp |
| 73 | exact ⟨n, ⟨⟨i, p, hi⟩⟩⟩ |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SplitModuleKernel |