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.AlgebraicGeometry.HilbertScheme.Presentations.Principal.LinearIsomorphismNeighborhood |
| 2 | import Mathlib.RingTheory.Localization.BaseChange |
| 3 | |
| 4 | /-! # Tensor Isomorphism Neighborhood -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.TensorIsomorphismNeighborhood |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The principal-neighborhood isomorphism criterion in actual tensor |
| 11 | base-change coordinates, suitable for affine scheme pullbacks. -/ |
| 12 | |
| 13 | open TensorProduct |
| 14 | |
| 15 | universe u v w t |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 18 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 19 | |
| 20 | theorem tensor_localization_bijective_iff (S : Submonoid R) |
| 21 | (A : Type t) [CommRing A] [Algebra R A] [IsLocalization S A] (f : M →ₗ[R] N) : |
| 22 | Function.Bijective (f.lTensor A) ↔ Function.Bijective (LocalizedModule.map S f) := by |
| 23 | let i := TensorProduct.mk R A M 1 |
| 24 | let j := TensorProduct.mk R A N 1 |
| 25 | have he : IsLocalizedModule.map S i j f = f.lTensor A := by |
| 26 | apply IsLocalizedModule.ext S i (IsLocalizedModule.map_units j) |
| 27 | apply LinearMap.ext |
| 28 | intro m |
| 29 | rw [LinearMap.comp_apply, IsLocalizedModule.map_apply] |
| 30 | rfl |
| 31 | rw [← he] |
| 32 | exact IsLocalizedModule.map_bijective_iff_localizedModuleMap_bijective i j |
| 33 | |
| 34 | theorem exists_principalOpen_tensor_isomorphism (f : M →ₗ[R] N) |
| 35 | [Module.Finite R f.ker] [Module.Finite R (N ⧸ f.range)] |
| 36 | (p : PrimeSpectrum R) |
| 37 | (hp : Function.Bijective (f.lTensor (Localization.AtPrime p.asIdeal))) : |
| 38 | ∃ r ∉ p.asIdeal, Function.Bijective (f.lTensor (Localization.Away r)) := by |
| 39 | obtain ⟨r, hr, hf⟩ := LinearIsomorphismNeighborhood.exists_principalOpen_linear_isomorphism f p |
| 40 | ((tensor_localization_bijective_iff p.asIdeal.primeCompl (Localization.AtPrime p.asIdeal) f).mp hp) |
| 41 | exact ⟨r, hr, (tensor_localization_bijective_iff (Submonoid.powers r) (Localization.Away r) f).mpr hf⟩ |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.TensorIsomorphismNeighborhood |