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.IsTensorProduct |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.RightExactness |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Quotient |
| 4 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 5 | |
| 6 | /-! # Quotient Module -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.QuotientModule.QuotientModuleBaseChange |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A module base change along a surjective coefficient map has precisely the coefficient-ideal kernel. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u v w |
| 17 | |
| 18 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 19 | {M : Type v} [AddCommGroup M] [Module R M] |
| 20 | {N : Type w} [AddCommGroup N] [Module R N] [Module S N] [IsScalarTower R S N] |
| 21 | (f : M →ₗ[R] N) (hf : IsBaseChange S f) |
| 22 | (hS : Function.Surjective (algebraMap R S)) |
| 23 | |
| 24 | include hf hS |
| 25 | |
| 26 | theorem surjective : Function.Surjective f := by |
| 27 | intro y |
| 28 | obtain ⟨t, rfl⟩ := hf.equiv.surjective y |
| 29 | induction t using TensorProduct.inductionOn with |
| 30 | | add x y hx hy => |
| 31 | obtain ⟨a, ha⟩ := hx |
| 32 | obtain ⟨b, hb⟩ := hy |
| 33 | exact ⟨a + b, by simp only [map_add, ha, hb]⟩ |
| 34 | | tmul s x => |
| 35 | obtain ⟨r, rfl⟩ := hS s |
| 36 | exact ⟨r • x, by rw [map_smul, hf.equiv_tmul, IsScalarTower.algebraMap_smul]⟩ |
| 37 | |
| 38 | theorem ker_eq : f.ker = RingHom.ker (algebraMap R S) • ⊤ := by |
| 39 | let I := RingHom.ker (algebraMap R S) |
| 40 | let e : (R ⧸ I) ≃ₐ[R] S := Ideal.quotientKerAlgEquivOfSurjective |
| 41 | (f := Algebra.ofId R S) hS |
| 42 | let E : (R ⧸ I) ⊗[R] M ≃ₗ[R] N := |
| 43 | (e.toLinearEquiv.rTensor M).trans (hf.equiv.restrictScalars R) |
| 44 | have he (x : M) : E (1 ⊗ₜ[R] x) = f x := by |
| 45 | change hf.equiv (e.toLinearEquiv.rTensor M (1 ⊗ₜ[R] x)) = f x |
| 46 | rw [LinearEquiv.rTensor_tmul] |
| 47 | change hf.equiv (e 1 ⊗ₜ[R] x) = f x |
| 48 | rw [map_one, hf.equiv_tmul, one_smul] |
| 49 | ext x |
| 50 | change f x = 0 ↔ x ∈ RingHom.ker (algebraMap R S) • ⊤ |
| 51 | rw [← he, E.map_eq_zero_iff] |
| 52 | change x ∈ (TensorProduct.mk R (R ⧸ I) M 1).ker ↔ _ |
| 53 | rw [LinearMap.ker_tensorProductMk] |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.NumberTheory.PadicHodge.GeometricComparison.QuotientModule.QuotientModuleBaseChange |