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.AbelianModuli.HilbertConstruction.OneDimensionalKernelAugmentation |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.FunctionalLift |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.ProductMapProjections |
| 4 | import Mathlib.RingTheory.LocalRing.Module |
| 5 | import Mathlib.RingTheory.Finiteness.Prod |
| 6 | |
| 7 | /-! # Kernel Scalar Embedding -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.KernelScalarEmbedding |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! If the residue-field kernel of a map from a finite projective module to a finite free module has dimension at most one, its actual kernel embeds linearly in the local coefficient ring. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem localKernel_exists_scalar_embedding |
| 20 | {R : Type u} [CommRing R] [IsLocalRing R] |
| 21 | {M N : Type u} [AddCommGroup M] [Module R M] [Module.Finite R M] [Module.Projective R M] |
| 22 | [AddCommGroup N] [Module R N] [Module.Finite R N] [Module.Free R N] |
| 23 | (f : M →ₗ[R] N) |
| 24 | (h : Module.finrank (IsLocalRing.ResidueField R) (f.baseChange (IsLocalRing.ResidueField R)).ker ≤ 1) : |
| 25 | ∃ φ : f.ker →ₗ[R] R, Function.Injective φ := by |
| 26 | let K := IsLocalRing.ResidueField R |
| 27 | obtain ⟨a, ha⟩ := OneDimensionalKernelAugmentation.oneDimensionalKernel_exists_injective_augmentation (f.baseChange K) h |
| 28 | have hs : Function.Surjective (algebraMap R K) := IsLocalRing.residue_surjective |
| 29 | obtain ⟨l, hl⟩ := Scalar.FunctionalLift.scalarFunctional_exists_lift hs a |
| 30 | have ht := Scalar.FunctionalLift.scalarFunctional_lift_tensor_identity a l hl |
| 31 | let F := f.prod l |
| 32 | have hi : Function.Injective (F.lTensor K) := by |
| 33 | intro x y hxy |
| 34 | apply ha |
| 35 | apply Prod.ext |
| 36 | · have H := congrArg ((LinearMap.fst R N R).lTensor K) hxy |
| 37 | have H' : (f.lTensor K) x = (f.lTensor K) y := by |
| 38 | simpa only [F, ← LinearMap.comp_apply, Tensor.ProductMapProjections.tensor_productMap_fst] using H |
| 39 | exact H' |
| 40 | · have H := congrArg ((LinearMap.snd R N R).lTensor K) hxy |
| 41 | have H' : (l.lTensor K) x = (l.lTensor K) y := by |
| 42 | simpa only [F, ← LinearMap.comp_apply, Tensor.ProductMapProjections.tensor_productMap_snd] using H |
| 43 | have H'' := congrArg (TensorProduct.rid R K) H' |
| 44 | change ((TensorProduct.rid R K).toLinearMap.comp (l.lTensor K)) x = |
| 45 | ((TensorProduct.rid R K).toLinearMap.comp (l.lTensor K)) y at H'' |
| 46 | rw [ht] at H'' |
| 47 | exact H'' |
| 48 | obtain ⟨g, hg⟩ := (IsLocalRing.split_injective_iff_lTensor_residueField_injective F).mpr hi |
| 49 | have hF : Function.Injective F := Function.LeftInverse.injective (fun x => LinearMap.congr_fun hg x) |
| 50 | refine ⟨l.comp f.ker.subtype, fun x y hxy => ?_⟩ |
| 51 | apply Subtype.ext |
| 52 | apply hF |
| 53 | apply Prod.ext |
| 54 | · exact x.property.trans y.property.symm |
| 55 | · exact hxy |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.KernelScalarEmbedding |