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.Flat.Equalizer |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Prod |
| 3 | |
| 4 | /-! # Kernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.Kernel.FlatKernel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flat kernels of surjections between flat modules. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 18 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 19 | |
| 20 | theorem prod [Module.Flat R M] [Module.Flat R N] : Module.Flat R (M × N) := by |
| 21 | apply Module.Flat.iff_rTensor_preserves_injective_linearMap.mpr |
| 22 | intro A B _ _ _ _ a ha |
| 23 | let eA := TensorProduct.prodRight R R A M N |
| 24 | let eB := TensorProduct.prodRight R R B M N |
| 25 | have hmap : eB.toLinearMap.comp (a.rTensor (M × N)) = |
| 26 | ((a.rTensor M).prodMap (a.rTensor N)).comp eA.toLinearMap := by |
| 27 | ext x y <;> simp [eA, eB] |
| 28 | intro x y hxy |
| 29 | apply eA.injective |
| 30 | apply Prod.ext |
| 31 | · apply Module.Flat.rTensor_preserves_injective_linearMap (M := M) a ha |
| 32 | exact congrArg Prod.fst ((LinearMap.congr_fun hmap x).symm.trans |
| 33 | ((congrArg eB hxy).trans (LinearMap.congr_fun hmap y))) |
| 34 | · apply Module.Flat.rTensor_preserves_injective_linearMap (M := N) a ha |
| 35 | exact congrArg Prod.snd ((LinearMap.congr_fun hmap x).symm.trans |
| 36 | ((congrArg eB hxy).trans (LinearMap.congr_fun hmap y))) |
| 37 | |
| 38 | theorem flat [Module.Flat R M] [Module.Flat R N] |
| 39 | (f : M →ₗ[R] N) (hf : Function.Surjective f) : Module.Flat R f.ker := by |
| 40 | apply Module.Flat.iff_rTensor_preserves_injective_linearMap.mpr |
| 41 | intro A B _ _ _ _ a ha |
| 42 | have hi := LinearMap.lTensor_injective_of_exact_of_flat f hf f.ker.subtype |
| 43 | f.ker.subtype_injective (LinearMap.exact_subtype_ker_map f) A |
| 44 | have ht := Module.Flat.rTensor_preserves_injective_linearMap (M := M) a ha |
| 45 | intro x y hxy |
| 46 | apply hi |
| 47 | apply ht |
| 48 | have he : (a.rTensor M).comp (f.ker.subtype.lTensor A) = |
| 49 | (f.ker.subtype.lTensor B).comp (a.rTensor f.ker) := by |
| 50 | rw [LinearMap.rTensor_comp_lTensor, LinearMap.lTensor_comp_rTensor] |
| 51 | exact (LinearMap.congr_fun he x).trans |
| 52 | ((congrArg (f.ker.subtype.lTensor B) hxy).trans (LinearMap.congr_fun he y).symm) |
| 53 | |
| 54 | /-- The kernel in this reduction commutes with every scalar tensor, |
| 55 | without a flatness hypothesis on the tensor factor. -/ |
| 56 | def tensorIso [Module.Flat R N] (f : M →ₗ[R] N) (hf : Function.Surjective f) |
| 57 | (A : Type*) [AddCommGroup A] [Module R A] : |
| 58 | LinearMap.ker (f.lTensor A) ≃ₗ[R] A ⊗[R] f.ker := |
| 59 | f.kerLTensorEquivOfSurjective hf A |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.Kernel.FlatKernel |