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.IteratedPullbackIsomorphism |
| 2 | import Mathlib.AlgebraicGeometry.Stalk |
| 3 | |
| 4 | /-! # Stalk Isomorphism From Restriction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.StalkIsomorphismFromRestriction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An isomorphism on an open neighborhood remains an isomorphism on |
| 11 | the actual local spectrum at each point of that neighborhood. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 17 | |
| 18 | theorem isIso_pullback_stalk_of_isIso_restrict (U : Y.Opens) [IsIso (f ∣_ U)] |
| 19 | (y : Y) (hy : y ∈ U) : IsIso (pullback.fst (Y.fromSpecStalk y) f) := by |
| 20 | have hr : Set.range (Y.fromSpecStalk y) ⊆ Set.range U.ι := by |
| 21 | rw [Scheme.Opens.range_ι, Scheme.range_fromSpecStalk] |
| 22 | intro z hz |
| 23 | exact hz.mem_open U.isOpen hy |
| 24 | let g := IsOpenImmersion.lift U.ι (Y.fromSpecStalk y) hr |
| 25 | have hg : g ≫ U.ι = Y.fromSpecStalk y := IsOpenImmersion.lift_fac _ _ _ |
| 26 | let : IsIso (pullback.fst U.ι f) := (OpenPullbackIsomorphismTransport.isIso_pullback_fst_open_iff f U).mpr inferInstance |
| 27 | have h : IsIso (pullback.fst (g ≫ U.ι) f) := |
| 28 | (IteratedPullbackIsomorphism.isIso_pullback_fst_iterated_iff U.ι f g).mp inferInstance |
| 29 | exact hg ▸ h |
| 30 | |
| 31 | end |
| 32 | |
| 33 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.StalkIsomorphismFromRestriction |