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.Associator |
| 3 | |
| 4 | /-! # Flat Scalar Exactness -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FlatScalarExactness |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flat modules preserve the exact scalar-multiplication sequences of their coefficient ring. -/ |
| 11 | |
| 12 | universe u v |
| 13 | |
| 14 | variable (R : Type u) [CommRing R] (M : Type v) [AddCommGroup M] [Module R M] [Module.Flat R M] |
| 15 | (a b : R) |
| 16 | |
| 17 | theorem exact (h : Function.Exact (DistribSMul.toLinearMap R R a) (DistribSMul.toLinearMap R R b)) : |
| 18 | Function.Exact (DistribSMul.toLinearMap R M a) (DistribSMul.toLinearMap R M b) := by |
| 19 | have ht := Module.Flat.rTensor_exact M h |
| 20 | rw [LinearMap.rTensor_smul_action, LinearMap.rTensor_smul_action] at ht |
| 21 | let e := TensorProduct.lid R M |
| 22 | intro x |
| 23 | constructor |
| 24 | · intro hx |
| 25 | have hy : b • e.symm x = 0 := by |
| 26 | apply e.injective |
| 27 | rw [map_smul, e.apply_symm_apply, map_zero] |
| 28 | exact hx |
| 29 | obtain ⟨z, hz⟩ := (ht (e.symm x)).mp hy |
| 30 | refine ⟨e z, ?_⟩ |
| 31 | change a • e z = x |
| 32 | exact (e.map_smul a z).symm.trans ((congrArg e hz).trans (e.apply_symm_apply x)) |
| 33 | · rintro ⟨y, rfl⟩ |
| 34 | have hy := ht.apply_apply_eq_zero (e.symm y) |
| 35 | change b • (a • e.symm y) = 0 at hy |
| 36 | change b • (a • y) = 0 |
| 37 | simpa only [map_smul, e.apply_symm_apply, map_zero] using congrArg e hy |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FlatScalarExactness |