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.TensorProduct.Free |
| 2 | import Mathlib.LinearAlgebra.FreeModule.Basic |
| 3 | |
| 4 | /-! # Scalar Left Inverse -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ScalarLeftInverse |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A left inverse up to a nonzero scalar proves injectivity even after |
| 11 | a non-flat extension of scalars into a domain. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | variable (R S : Type*) [CommRing R] [CommRing S] [IsDomain S] [Algebra R S] |
| 16 | {A B : Type*} [AddCommGroup A] [AddCommGroup B] [Module R A] [Module R B] |
| 17 | |
| 18 | theorem injective [Module.Free R A] |
| 19 | (f : A →ₗ[R] B) (u : B →ₗ[R] A) (r : R) |
| 20 | (hr : algebraMap R S r ≠ 0) (h : u.comp f = r • LinearMap.id) : |
| 21 | Function.Injective (f.baseChange S) := by |
| 22 | have he : (u.baseChange S).comp (f.baseChange S) = r • LinearMap.id := by |
| 23 | rw [← LinearMap.baseChange_comp, h, LinearMap.baseChange_smul, LinearMap.baseChange_id] |
| 24 | intro x y hxy |
| 25 | have hu := congrArg (u.baseChange S) hxy |
| 26 | change ((u.baseChange S).comp (f.baseChange S)) x = |
| 27 | ((u.baseChange S).comp (f.baseChange S)) y at hu |
| 28 | rw [he] at hu |
| 29 | change r • x = r • y at hu |
| 30 | rw [← algebraMap_smul S r x, ← algebraMap_smul S r y] at hu |
| 31 | exact smul_right_injective _ hr hu |
| 32 | |
| 33 | theorem scalar_injective [Module.Free R A] (f : A →ₗ[R] A) (r : R) |
| 34 | (hr : algebraMap R S r ≠ 0) (h : f = r • LinearMap.id) : |
| 35 | Function.Injective (f.baseChange S) := by |
| 36 | apply injective R S f LinearMap.id r hr |
| 37 | simpa only [LinearMap.id_comp] using h |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ScalarLeftInverse |