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.Basic |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Prod |
| 3 | |
| 4 | /-! # Product Modules -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProductModules |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A product of two flat modules is flat. -/ |
| 11 | |
| 12 | open TensorProduct |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | theorem flat_product_modules (R : Type u) [CommSemiring R] |
| 17 | (M : Type v) (N : Type w) [AddCommMonoid M] [AddCommMonoid N] |
| 18 | [Module R M] [Module R N] [Module.Flat R M] [Module.Flat R N] : |
| 19 | Module.Flat R (M × N) := by |
| 20 | apply Module.Flat.iff_rTensor_injectiveₛ.mpr |
| 21 | intro P _ _ K |
| 22 | let e := TensorProduct.prodRight R R K M N |
| 23 | let d := TensorProduct.prodRight R R P M N |
| 24 | have he : d.toLinearMap.comp (K.subtype.rTensor (M × N)) = |
| 25 | ((K.subtype.rTensor M).prodMap (K.subtype.rTensor N)).comp e.toLinearMap := by |
| 26 | apply TensorProduct.ext |
| 27 | apply LinearMap.ext |
| 28 | intro k |
| 29 | apply LinearMap.ext |
| 30 | intro x |
| 31 | rfl |
| 32 | intro x y hxy |
| 33 | have h := congrArg d hxy |
| 34 | change (d.toLinearMap.comp (K.subtype.rTensor (M × N))) x = |
| 35 | (d.toLinearMap.comp (K.subtype.rTensor (M × N))) y at h |
| 36 | rw [he] at h |
| 37 | apply e.injective |
| 38 | apply Prod.ext |
| 39 | · exact Module.Flat.rTensor_preserves_injective_linearMap |
| 40 | K.subtype Subtype.val_injective (congrArg Prod.fst h) |
| 41 | · exact Module.Flat.rTensor_preserves_injective_linearMap |
| 42 | K.subtype Subtype.val_injective (congrArg Prod.snd h) |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProductModules |