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.Isogenies.NeighborCounting.ComponentLifts |
| 2 | import Mathlib.RingTheory.Spectrum.Prime.Noetherian |
| 3 | |
| 4 | /-! # Finite Local Extension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FiniteLocalExtension.Lifts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | A finite domain over a henselian local ring is local. HenselianLifting lifts the |
| 12 | residue idempotents, and the domain has no nontrivial idempotents. |
| 13 | This supplies locality of the integral closure in an evaluation field. |
| 14 | -/ |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ComponentLifts.Components |
| 19 | |
| 20 | variable (R A : Type u) [CommRing R] [HenselianLocalRing R] |
| 21 | variable [CommRing A] [IsDomain A] [Algebra R A] [Module.Finite R A] |
| 22 | |
| 23 | theorem finite_domain_residue_idempotent (e : ComponentLifts.Components.ResidueAlgebra R A) |
| 24 | (he : IsIdempotentElem e) : e = 0 ∨ e = 1 := by |
| 25 | let a := ComponentLifts.Components.liftIdempotent R A e he |
| 26 | have ha : IsIdempotentElem a := ComponentLifts.Components.liftIdempotent_idem R A e he |
| 27 | have hr := ComponentLifts.Components.liftIdempotent_reduction R A e he |
| 28 | change Ideal.Quotient.mk ((IsLocalRing.maximalIdeal R).map (algebraMap R A)) a = e at hr |
| 29 | have hzero : a * (1 - a) = 0 := isIdempotentElem_iff_mul_one_sub_self.mp ha |
| 30 | rcases mul_eq_zero.mp hzero with h | h |
| 31 | · left |
| 32 | simpa only [show a = 0 from h, map_zero] using hr.symm |
| 33 | · right |
| 34 | have h' : a = 1 := (sub_eq_zero.mp h).symm |
| 35 | simpa only [show a = 1 from h', map_one] using hr.symm |
| 36 | |
| 37 | theorem finite_domain_residue_spectrum_subsingleton : |
| 38 | Subsingleton (PrimeSpectrum (ComponentLifts.Components.ResidueAlgebra R A)) := by |
| 39 | let k := IsLocalRing.ResidueField R |
| 40 | let Q := ComponentLifts.Components.ResidueAlgebra R A |
| 41 | let : Algebra k Q := Ideal.Quotient.algebraQuotientOfLEComap Ideal.le_comap_map |
| 42 | have : IsScalarTower R k Q := IsScalarTower.of_algebraMap_eq' rfl |
| 43 | have : Module.Finite k Q := Module.Finite.of_restrictScalars_finite R k Q |
| 44 | have : IsArtinianRing Q := isArtinian_of_tower k inferInstance |
| 45 | constructor |
| 46 | intro x y |
| 47 | obtain ⟨e, he, hopen⟩ := PrimeSpectrum.exists_idempotent_basicOpen_eq_of_isClopen |
| 48 | (isClopen_discrete ({x} : Set (PrimeSpectrum Q))) |
| 49 | rcases finite_domain_residue_idempotent R A e he with rfl | rfl |
| 50 | · have hx : x ∈ (PrimeSpectrum.basicOpen (0 : Q) : Set (PrimeSpectrum Q)) := by |
| 51 | rw [← hopen] |
| 52 | exact Set.mem_singleton x |
| 53 | simp at hx |
| 54 | · have hy : y ∈ ({x} : Set (PrimeSpectrum Q)) := by |
| 55 | rw [hopen] |
| 56 | simp |
| 57 | exact (Set.mem_singleton_iff.mp hy).symm |
| 58 | |
| 59 | include R in |
| 60 | /-- Locality of the finite integral domain is derived, so the finite |
| 61 | evaluation extension need not be supplied with a chosen local factor. -/ |
| 62 | theorem finite_domain_isLocalRing : IsLocalRing A := by |
| 63 | let I := (IsLocalRing.maximalIdeal R).map (algebraMap R A) |
| 64 | let φ := Ideal.Quotient.mk I |
| 65 | have hker (m : Ideal A) (hm : m.IsMaximal) : RingHom.ker φ ≤ m := by |
| 66 | rw [show RingHom.ker φ = I from Ideal.mk_ker] |
| 67 | exact (OAI.Algebra.LocalRing.HenselianLifting.Construction.maximalIdeal_map_le_jacobson R A).trans (sInf_le ⟨bot_le, hm⟩) |
| 68 | have : Subsingleton (PrimeSpectrum (A ⧸ I)) := finite_domain_residue_spectrum_subsingleton R A |
| 69 | obtain ⟨m, hm⟩ := Ideal.exists_maximal A |
| 70 | refine IsLocalRing.of_unique_max_ideal ⟨m, hm, ?_⟩ |
| 71 | intro n hn |
| 72 | have : m.IsMaximal := hm |
| 73 | have : n.IsMaximal := hn |
| 74 | have : (m.map φ).IsPrime := Ideal.map_isPrime_of_surjective Ideal.Quotient.mk_surjective (hker m hm) |
| 75 | have : (n.map φ).IsPrime := Ideal.map_isPrime_of_surjective Ideal.Quotient.mk_surjective (hker n hn) |
| 76 | have he : n.map φ = m.map φ := congrArg PrimeSpectrum.asIdeal |
| 77 | (Subsingleton.elim (⟨n.map φ, inferInstance⟩ : PrimeSpectrum (A ⧸ I)) ⟨m.map φ, inferInstance⟩) |
| 78 | have hc := congrArg (Ideal.comap φ) he |
| 79 | simpa only [Ideal.comap_map_of_surjective φ Ideal.Quotient.mk_surjective, |
| 80 | ← RingHom.ker_eq_comap_bot, |
| 81 | sup_eq_left.mpr (hker n hn), sup_eq_left.mpr (hker m hm)] using hc |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FiniteLocalExtension.Lifts |