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.AffineBaseIsomorphismNeighborhood |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.OpenPullbackIsomorphismTransport |
| 3 | import Mathlib.AlgebraicGeometry.Stalk |
| 4 | |
| 5 | /-! # Affine Stalk Isomorphism Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.AffineStalkIsomorphismNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite morphism over a noetherian affine scheme that becomes an |
| 12 | isomorphism over a structure-sheaf stalk is an isomorphism on an actual open neighborhood. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 18 | variable {X : Scheme.{u}} (f : X ⟶ Spec (.of R)) [IsFinite f] |
| 19 | |
| 20 | theorem exists_open_finite_affine_isomorphism_of_stalk (p : PrimeSpectrum R) |
| 21 | (hp : IsIso (pullback.fst ((Spec (.of R)).fromSpecStalk p) f)) : |
| 22 | ∃ U : (Spec (.of R)).Opens, p ∈ U ∧ IsIso (f ∣_ U) := by |
| 23 | let g := Spec.map (CommRingCat.ofHom (algebraMap R (Localization.AtPrime p.asIdeal))) |
| 24 | let e := Spec.map (Spec.stalkIso (.of R) p).inv |
| 25 | have he : e ≫ g = (Spec (.of R)).fromSpecStalk p := by |
| 26 | change Spec.map (Spec.stalkIso (.of R) p).inv ≫ |
| 27 | Spec.map (CommRingCat.ofHom (algebraMap R (Localization.AtPrime p.asIdeal))) = _ |
| 28 | rw [← Spec.map_comp] |
| 29 | exact (congrArg (fun a : CommRingCat.of R ⟶ (Spec (.of R)).presheaf.stalk p => Spec.map a) |
| 30 | (Spec.algebraMap_stalkIso_inv (R := .of R) (x := p))).trans (Spec.fromSpecStalk_eq (.of R) p).symm |
| 31 | have hg : IsIso (pullback.fst g f) := |
| 32 | (OpenPullbackIsomorphismTransport.isIso_pullback_fst_comp_left_iff g f e).mp (he.symm ▸ hp) |
| 33 | obtain ⟨r, hr, h⟩ := AffineBaseIsomorphismNeighborhood.exists_principalOpen_finite_morphism_isomorphism f p hg |
| 34 | let j := Spec.map (CommRingCat.ofHom (algebraMap R (Localization.Away r))) |
| 35 | refine ⟨j.opensRange, ?_, (OpenPullbackIsomorphismTransport.isIso_pullback_fst_openImmersion_iff f j).mp h⟩ |
| 36 | have ho : j.opensRange = PrimeSpectrum.basicOpen r := |
| 37 | Scheme.Hom.opensRange_localizationAway (R := .of R) r |
| 38 | exact Eq.mpr (congrArg (fun U : (Spec (.of R)).Opens => p ∈ U) ho) hr |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.AffineStalkIsomorphismNeighborhood |