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.Geometry.ComplexTorus.RiemannProjectivity.SmoothLocal |
| 2 | |
| 3 | /-! # Smooth Kernel Quotient Local -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace Geometry.ComplexTorus.RiemannProjectivity.SmoothKernelQuotientLocal.Constructions.LocalKernelNeighborhood |
| 10 | |
| 11 | /-! # RiemannProjectivity: a finitely generated kernel vanishing in a stalk vanishes nearby -/ |
| 12 | |
| 13 | open scoped BigOperators |
| 14 | |
| 15 | variable {A D : Type*} [CommRing A] [CommRing D] |
| 16 | |
| 17 | theorem exists_annihilator (I : Ideal A) (hI : I.FG) (p : Ideal A) [p.IsPrime] |
| 18 | (hzero : ∀ a ∈ I, algebraMap A (Localization.AtPrime p) a = 0) : |
| 19 | ∃ s : A, s ∉ p ∧ ∀ a ∈ I, s * a = 0 := by |
| 20 | classical |
| 21 | obtain ⟨k, b, hb⟩ := Submodule.fg_iff_exists_fin_generating_family.mp hI |
| 22 | have hbI (i : Fin k) : b i ∈ I := by |
| 23 | rw [← hb] |
| 24 | exact Submodule.subset_span ⟨i, rfl⟩ |
| 25 | have hd (i : Fin k) : ∃ s : p.primeCompl, s.val * b i = 0 := |
| 26 | (IsLocalization.map_eq_zero_iff p.primeCompl (Localization.AtPrime p) (b i)).mp |
| 27 | (hzero (b i) (hbI i)) |
| 28 | choose t ht using hd |
| 29 | let s : A := ∏ i, (t i).val |
| 30 | have hs : s ∉ p := p.primeCompl.prod_mem (fun i _ => (t i).property) |
| 31 | have hgen (i : Fin k) : s * b i = 0 := by |
| 32 | obtain ⟨c, hc⟩ := Finset.dvd_prod_of_mem (fun j : Fin k => (t j).val) (Finset.mem_univ i) |
| 33 | change (∏ j, (t j).val) * b i = 0 |
| 34 | rw [hc, mul_right_comm, ht i, zero_mul] |
| 35 | have hle : I ≤ (LinearMap.mul A A s).ker := by |
| 36 | rw [← hb] |
| 37 | apply Submodule.span_le.mpr |
| 38 | rintro _ ⟨i, rfl⟩ |
| 39 | exact hgen i |
| 40 | exact ⟨s, hs, fun a ha => hle ha⟩ |
| 41 | |
| 42 | theorem exists_localized_injective (f : A →+* D) (hfg : (RingHom.ker f).FG) |
| 43 | (p : Ideal A) [p.IsPrime] |
| 44 | (hzero : ∀ a, f a = 0 → algebraMap A (Localization.AtPrime p) a = 0) : |
| 45 | ∃ s : A, s ∉ p ∧ Function.Injective (Localization.awayMap f s) := by |
| 46 | obtain ⟨s, hs, hkill⟩ := exists_annihilator (RingHom.ker f) hfg p hzero |
| 47 | refine ⟨s, hs, Localization.awayMap_injective_iff.mpr ?_⟩ |
| 48 | intro a ha |
| 49 | exact ⟨1, by simpa using hkill a ha⟩ |
| 50 | |
| 51 | theorem exists_localized_bijective (f : A →+* D) (hf : Function.Surjective f) |
| 52 | (hfg : (RingHom.ker f).FG) (p : Ideal A) [p.IsPrime] |
| 53 | (hzero : ∀ a, f a = 0 → algebraMap A (Localization.AtPrime p) a = 0) : |
| 54 | ∃ s : A, s ∉ p ∧ Function.Bijective (Localization.awayMap f s) := by |
| 55 | obtain ⟨s, hs, hinj⟩ := exists_localized_injective f hfg p hzero |
| 56 | refine ⟨s, hs, hinj, Localization.awayMap_surjective_iff.mpr ?_⟩ |
| 57 | intro a |
| 58 | obtain ⟨b, hb⟩ := hf a |
| 59 | exact ⟨b, 0, by simpa using hb⟩ |
| 60 | |
| 61 | end Geometry.ComplexTorus.RiemannProjectivity.SmoothKernelQuotientLocal.Constructions.LocalKernelNeighborhood |
| 62 | |
| 63 | namespace Geometry.ComplexTorus.RiemannProjectivity.SmoothKernelQuotientLocal.Constructions.SmoothDominantQuotient |
| 64 | |
| 65 | /-! # RiemannProjectivity: smooth neighborhoods in dominant algebraic quotients -/ |
| 66 | |
| 67 | variable {R A D : Type*} [CommRing R] [IsDomain R] [CommRing A] [CommRing D] [IsDomain D] |
| 68 | [Algebra ℂ R] [Algebra ℂ A] [Algebra ℂ D] [Algebra R A] [Algebra R D] |
| 69 | [IsScalarTower ℂ R A] [IsScalarTower ℂ R D] |
| 70 | [Algebra.IsAlgebraic R A] [Algebra.Smooth ℂ A] |
| 71 | |
| 72 | theorem exists_smooth_neighborhood (f : A →ₐ[R] D) (hf : Function.Surjective f) |
| 73 | (hinj : Function.Injective (algebraMap R D)) (hfg : (RingHom.ker f.toRingHom).FG) |
| 74 | (p : Ideal A) [p.IsPrime] (hp : RingHom.ker f.toRingHom ≤ p) : |
| 75 | ∃ s : A, s ∉ p ∧ Algebra.Smooth ℂ (Localization.Away (f s)) := by |
| 76 | obtain ⟨s, hs, hbij⟩ := LocalKernelNeighborhood.exists_localized_bijective |
| 77 | f.toRingHom hf hfg p (SmoothLocal.Constructions.SmoothLocalKernel.kernel_vanishes_of_smooth f hinj p hp) |
| 78 | let : Algebra.Smooth A (Localization.Away s) := Algebra.Smooth.of_isLocalization_Away s |
| 79 | let : Algebra.Smooth ℂ (Localization.Away s) := Algebra.Smooth.comp ℂ A _ |
| 80 | let g : Localization.Away s →ₐ[ℂ] Localization.Away (f s) := |
| 81 | Localization.awayMapₐ (f.restrictScalars ℂ) s |
| 82 | have hg : Function.Bijective g := hbij |
| 83 | exact ⟨s, hs, Algebra.Smooth.of_equiv (AlgEquiv.ofBijective g hg)⟩ |
| 84 | |
| 85 | end Geometry.ComplexTorus.RiemannProjectivity.SmoothKernelQuotientLocal.Constructions.SmoothDominantQuotient |
| 86 | |
| 87 | namespace Geometry.ComplexTorus.RiemannProjectivity.SmoothKernelQuotientLocal.Constructions.SmoothKernelQuotient |
| 88 | |
| 89 | /-! # RiemannProjectivity: equations vanishing in a faithful analytic branch give smooth quotients locally -/ |
| 90 | |
| 91 | variable {R A D : Type*} [CommRing R] [IsDomain R] [CommRing A] [CommRing D] [IsDomain D] |
| 92 | [Algebra R A] [Algebra R D] [Algebra.IsAlgebraic R A] |
| 93 | [Algebra ℂ A] [Algebra.Smooth ℂ A] |
| 94 | |
| 95 | theorem exists_smooth_neighborhood (f : A →ₐ[R] D) |
| 96 | (hinj : Function.Injective (algebraMap R D)) (I : Ideal A) (hI : I.FG) |
| 97 | (hIf : I ≤ RingHom.ker f.toRingHom) (p : Ideal A) [p.IsPrime] |
| 98 | (hp : RingHom.ker f.toRingHom ≤ p) : |
| 99 | ∃ s : A, s ∉ p ∧ Algebra.Smooth ℂ (Localization.Away (Ideal.Quotient.mk I s)) := by |
| 100 | have hzero (a : A) (ha : Ideal.Quotient.mk I a = 0) : |
| 101 | algebraMap A (Localization.AtPrime p) a = 0 := |
| 102 | SmoothLocal.Constructions.SmoothLocalKernel.kernel_vanishes_of_smooth f hinj p hp a |
| 103 | (hIf (Ideal.Quotient.eq_zero_iff_mem.mp ha)) |
| 104 | have hfg : (RingHom.ker (Ideal.Quotient.mk I)).FG := by simpa using hI |
| 105 | obtain ⟨s, hs, hbij⟩ := LocalKernelNeighborhood.exists_localized_bijective |
| 106 | (Ideal.Quotient.mk I) Ideal.Quotient.mk_surjective hfg p hzero |
| 107 | let : Algebra.Smooth A (Localization.Away s) := Algebra.Smooth.of_isLocalization_Away s |
| 108 | let : Algebra.Smooth ℂ (Localization.Away s) := Algebra.Smooth.comp ℂ A _ |
| 109 | let g := Localization.awayMapₐ (Ideal.Quotient.mkₐ ℂ I) s |
| 110 | have hg : Function.Bijective g := hbij |
| 111 | exact ⟨s, hs, Algebra.Smooth.of_equiv (AlgEquiv.ofBijective g hg)⟩ |
| 112 | |
| 113 | end Geometry.ComplexTorus.RiemannProjectivity.SmoothKernelQuotientLocal.Constructions.SmoothKernelQuotient |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI |