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 OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteModuleSandwich |
| 2 | import Mathlib.Algebra.Module.Torsion.Free |
| 3 | |
| 4 | /-! # Finite Torsion Free Sandwich -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.FiniteTorsionFreeSandwich.Dimension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Clearing denominators gives generic-rank injections for finite torsion-free modules. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | theorem torsionFree_fractionTensor_injective |
| 15 | (R K M : Type*) [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] |
| 16 | [AddCommGroup M] [Module R M] [Module.IsTorsionFree R M] : |
| 17 | Function.Injective (TensorProduct.mk R K M 1) := by |
| 18 | let f : M →ₗ[R] K ⊗[R] M := TensorProduct.mk R K M 1 |
| 19 | have : IsLocalizedModule (nonZeroDivisors R) f := inferInstance |
| 20 | apply (IsLocalizedModule.injective_iff_isRegular (nonZeroDivisors R) f).mpr |
| 21 | intro s |
| 22 | exact (IsRegular.of_ne_zero (mem_nonZeroDivisors_iff_ne_zero.mp s.property)).isSMulRegular |
| 23 | |
| 24 | theorem finiteTorsionFreeModule_genericRank_injections |
| 25 | (R K M : Type*) [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] |
| 26 | [AddCommGroup M] [Module R M] [Module.IsTorsionFree R M] |
| 27 | [Module.FinitePresentation R M] : |
| 28 | ∃ (i : M →ₗ[R] (Fin (Module.finrank K |
| 29 | (K ⊗[R] M)) →₀ R)) |
| 30 | (j : (Fin (Module.finrank K |
| 31 | (K ⊗[R] M)) →₀ R) →ₗ[R] M), |
| 32 | Function.Injective i ∧ Function.Injective j := by |
| 33 | let V := K ⊗[R] M |
| 34 | let d := Module.finrank K V |
| 35 | let f : M →ₗ[R] V := TensorProduct.mk R K M 1 |
| 36 | let g : (Fin d →₀ R) →ₗ[R] (Fin d →₀ K) := |
| 37 | Finsupp.mapRange.linearMap (Algebra.linearMap R K) |
| 38 | have : IsLocalizedModule (nonZeroDivisors R) f := inferInstance |
| 39 | have : IsLocalizedModule (nonZeroDivisors R) g := inferInstance |
| 40 | have hf : Function.Injective f := torsionFree_fractionTensor_injective R K M |
| 41 | have hg : Function.Injective g := by |
| 42 | intro a b hab |
| 43 | ext k |
| 44 | apply IsFractionRing.injective R K |
| 45 | exact DFunLike.congr_fun hab k |
| 46 | let e : V ≃ₗ[R] (Fin d →₀ K) := (Module.finBasis K V).repr.restrictScalars R |
| 47 | exact ArithmeticGeometry.OrdinaryLocus.Openness.FiniteModuleSandwich.Construction.exists_injective_maps_of_localized_equiv (nonZeroDivisors R) f g hf hg e |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.FiniteTorsionFreeSandwich.Dimension |