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.LinearAlgebra.TensorProduct.RightExactness |
| 2 | |
| 3 | /-! # Scalar Extension -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.ScalarExtension.ScalarExtensionRanges |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Scalar extension of an actual image is the image of the scalar-extended map. -/ |
| 10 | |
| 11 | open scoped TensorProduct |
| 12 | |
| 13 | variable {R : Type*} [CommSemiring R] (S : Type*) [Semiring S] [Algebra R S] |
| 14 | {M N : Type*} [AddCommMonoid M] [AddCommMonoid N] [Module R M] [Module R N] |
| 15 | |
| 16 | theorem range (f : M →ₗ[R] N) : f.range.baseChange S = (f.baseChange S).range := by |
| 17 | have hf : f.range.subtype.comp f.rangeRestrict = f := rfl |
| 18 | have hb : (f.range.subtype.baseChange S).comp (f.rangeRestrict.baseChange S) = |
| 19 | f.baseChange S := (LinearMap.baseChange_comp _ _).symm.trans (congrArg (fun g => g.baseChange S) hf) |
| 20 | rw [Submodule.baseChange, ← hb] |
| 21 | ext y |
| 22 | constructor |
| 23 | · rintro ⟨x, rfl⟩ |
| 24 | obtain ⟨z, hz⟩ := LinearMap.baseChange_surjective S f.surjective_rangeRestrict x |
| 25 | exact ⟨z, congrArg (f.range.subtype.baseChange S) hz⟩ |
| 26 | · rintro ⟨x, rfl⟩ |
| 27 | exact ⟨f.rangeRestrict.baseChange S x, rfl⟩ |
| 28 | |
| 29 | theorem map (P : Submodule R M) (f : M →ₗ[R] N) : |
| 30 | (P.map f).baseChange S = (P.baseChange S).map (f.baseChange S) := by |
| 31 | rw [← LinearMap.range_domRestrict P f, ScalarExtensionRanges.range] |
| 32 | change ((f.comp P.subtype).baseChange S).range = _ |
| 33 | rw [LinearMap.baseChange_comp, LinearMap.range_comp] |
| 34 | rfl |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.NumberTheory.PadicHodge.GeometricComparison.ScalarExtension.ScalarExtensionRanges |