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.Finite.LinearIsomorphismOpen |
| 2 | |
| 3 | /-! # Linear Isomorphism Neighborhood -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.LinearIsomorphismNeighborhood |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A localized isomorphism with finite kernel and cokernel extends to |
| 10 | an actual principal open neighborhood. -/ |
| 11 | |
| 12 | open _root_.TopologicalSpace |
| 13 | |
| 14 | universe u v w |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 17 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 18 | |
| 19 | theorem localizedAway_subsingleton_of_principalOpen (M : Type v) [AddCommGroup M] [Module R M] |
| 20 | (r : R) (h : ∀ p : PrimeSpectrum R, r ∉ p.asIdeal → |
| 21 | Subsingleton (LocalizedModule p.asIdeal.primeCompl M)) : |
| 22 | Subsingleton (LocalizedModule.Away r M) := by |
| 23 | apply LocalizedModule.subsingleton_iff_support_subset.mpr |
| 24 | intro p hp a ha |
| 25 | obtain rfl : a = r := Set.mem_singleton_iff.mp ha |
| 26 | by_contra hr |
| 27 | exact (Module.notMem_support_iff.mpr (h p hr)) hp |
| 28 | |
| 29 | theorem localizedLinearMap_away_bijective_of_principalOpen (f : M →ₗ[R] N) |
| 30 | (r : R) (h : ∀ p : PrimeSpectrum R, r ∉ p.asIdeal → |
| 31 | Function.Bijective (LocalizedModule.map p.asIdeal.primeCompl f)) : |
| 32 | Function.Bijective (LocalizedModule.map (Submonoid.powers r) f) := by |
| 33 | constructor |
| 34 | · apply (Localized.KernelDetection.localizedMap_injective_iff_subsingleton_kernel _ f).mpr |
| 35 | apply localizedAway_subsingleton_of_principalOpen f.ker r |
| 36 | intro p hp |
| 37 | exact (Localized.KernelDetection.localizedMap_injective_iff_subsingleton_kernel _ f).mp (h p hp).1 |
| 38 | · apply (LinearMap.localizedMap_surjective_iff_subsingleton_localized_coker _ f).mpr |
| 39 | apply localizedAway_subsingleton_of_principalOpen (N ⧸ f.range) r |
| 40 | intro p hp |
| 41 | exact (LinearMap.localizedMap_surjective_iff_subsingleton_localized_coker _ f).mp (h p hp).2 |
| 42 | |
| 43 | theorem exists_principalOpen_linear_isomorphism (f : M →ₗ[R] N) |
| 44 | [Module.Finite R f.ker] [Module.Finite R (N ⧸ f.range)] |
| 45 | (p : PrimeSpectrum R) (hp : Function.Bijective (LocalizedModule.map p.asIdeal.primeCompl f)) : |
| 46 | ∃ r ∉ p.asIdeal, Function.Bijective (LocalizedModule.map (Submonoid.powers r) f) := by |
| 47 | obtain ⟨_, ⟨_, ⟨r, rfl⟩, rfl⟩, hpr, hr⟩ := |
| 48 | PrimeSpectrum.isBasis_basic_opens.exists_subset_of_mem_open hp (Presentations.Finite.LinearIsomorphismOpen.isOpen_localizedLinearIsomorphismLocus f) |
| 49 | exact ⟨r, hpr, localizedLinearMap_away_bijective_of_principalOpen f r (fun p hp => hr hp)⟩ |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.LinearIsomorphismNeighborhood |