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.AffineStalkIsomorphismNeighborhood |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.IteratedPullbackIsomorphism |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | |
| 5 | /-! # Stalk Isomorphism Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.StalkIsomorphismNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! On any locally noetherian target, a finite morphism that is an |
| 12 | isomorphism over a local spectrum is an isomorphism on an actual open neighborhood. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {X Y : Scheme.{u}} [IsLocallyNoetherian Y] |
| 18 | variable (f : X ⟶ Y) [IsFinite f] |
| 19 | |
| 20 | theorem exists_open_finite_isomorphism_of_stalk (y : Y) |
| 21 | (hy : IsIso (pullback.fst (Y.fromSpecStalk y) f)) : |
| 22 | ∃ U : Y.Opens, y ∈ U ∧ IsIso (f ∣_ U) := by |
| 23 | let C := Y.affineOpenCover |
| 24 | obtain ⟨i, a, ha⟩ := C.openCover.exists_eq y |
| 25 | change C.I₀ at i |
| 26 | change Spec (C.X i) at a |
| 27 | change C.f i a = y at ha |
| 28 | subst y |
| 29 | let g := C.f i |
| 30 | let : IsOpenImmersion g := C.map_prop i |
| 31 | have hR : IsNoetherianRing (C.X i) := isLocallyNoetherian_Spec.mp |
| 32 | (isLocallyNoetherian_of_isOpenImmersion g) |
| 33 | let f' := pullback.fst g f |
| 34 | have hp : IsIso (pullback.fst ((Spec (C.X i)).fromSpecStalk a) f') := by |
| 35 | apply (IteratedPullbackIsomorphism.isIso_pullback_fst_iterated_iff g f _).mpr |
| 36 | have he : Spec.map (g.stalkMap a) ≫ Y.fromSpecStalk (g a) = |
| 37 | (Spec (C.X i)).fromSpecStalk a ≫ g := Scheme.SpecMap_stalkMap_fromSpecStalk g |
| 38 | exact he ▸ (OpenPullbackIsomorphismTransport.isIso_pullback_fst_comp_left_iff (Y.fromSpecStalk (g a)) f |
| 39 | (Spec.map (g.stalkMap a))).mpr hy |
| 40 | obtain ⟨V, hV, hfV⟩ := @AffineStalkIsomorphismNeighborhood.exists_open_finite_affine_isomorphism_of_stalk (C.X i) _ hR |
| 41 | (pullback g f) f' inferInstance a hp |
| 42 | let j : V.toScheme ⟶ Y := V.ι ≫ g |
| 43 | have hj : IsIso (pullback.fst j f) := |
| 44 | (IteratedPullbackIsomorphism.isIso_pullback_fst_iterated_iff g f V.ι).mp ((OpenPullbackIsomorphismTransport.isIso_pullback_fst_open_iff f' V).mpr hfV) |
| 45 | exact ⟨j.opensRange, ⟨⟨a, hV⟩, rfl⟩, (OpenPullbackIsomorphismTransport.isIso_pullback_fst_openImmersion_iff f j).mp hj⟩ |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.StalkIsomorphismNeighborhood |