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.Localized.KernelDetection |
| 2 | import Mathlib.RingTheory.Support |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 4 | |
| 5 | /-! # Linear Isomorphism Open -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LinearIsomorphismOpen |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The isomorphism locus of a linear map with finite kernel and cokernel |
| 12 | is the complement of their supports and is therefore open. -/ |
| 13 | |
| 14 | open _root_.TopologicalSpace |
| 15 | |
| 16 | universe u v w |
| 17 | variable {R : Type u} [CommRing R] |
| 18 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 19 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 20 | |
| 21 | theorem localizedLinearIsomorphismLocus_eq (f : M →ₗ[R] N) : |
| 22 | {p : PrimeSpectrum R | Function.Bijective (LocalizedModule.map p.asIdeal.primeCompl f)} = |
| 23 | (Module.support R f.ker ∪ Module.support R (N ⧸ f.range))ᶜ := by |
| 24 | ext p |
| 25 | simp only [Set.mem_ofPred_eq, Set.mem_compl_iff, Set.mem_union, not_or, |
| 26 | Module.notMem_support_iff, Function.Bijective, |
| 27 | Localized.KernelDetection.localizedMap_injective_iff_subsingleton_kernel, |
| 28 | LinearMap.localizedMap_surjective_iff_subsingleton_localized_coker] |
| 29 | |
| 30 | theorem isOpen_localizedLinearIsomorphismLocus (f : M →ₗ[R] N) |
| 31 | [Module.Finite R f.ker] [Module.Finite R (N ⧸ f.range)] : |
| 32 | IsOpen {p : PrimeSpectrum R | Function.Bijective (LocalizedModule.map p.asIdeal.primeCompl f)} := by |
| 33 | rw [localizedLinearIsomorphismLocus_eq, Module.support_eq_zeroLocus, Module.support_eq_zeroLocus] |
| 34 | exact ((PrimeSpectrum.isClosed_zeroLocus _).union (PrimeSpectrum.isClosed_zeroLocus _)).isOpen_compl |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LinearIsomorphismOpen |