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.Resolution.Blowups.Locally.ZeroOrUnitIdeal |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.IdealSheaf.CarrierBaseChange |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.IdealSheaf.CongruentMaps |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.GlobalCoefficient.ZeroCenter |
| 5 | |
| 6 | /-! # Whole Or Empty Center -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Locally.WholeOrEmptyCenter.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A center locally equal to an integral closed carrier or empty is globally that whole carrier or empty. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem idealSheaf_eq_or_top_of_pointed_whole_or_empty_charts |
| 17 | {X : Scheme} (H C : X.IdealSheafData) [IsIntegral H.subscheme] (hHC : H ≤ C) |
| 18 | (hlocal : ∀ x ∈ H.support, ∃ (V : Scheme) (j : V ⟶ X), IsOpenImmersion j ∧ |
| 19 | ∃ y : V, j y = x ∧ (C.comap j = H.comap j ∨ C.comap j = ⊤)) : C = H ∨ C = ⊤ := by |
| 20 | have hcharts : ∀ x : H.subscheme, ∃ (V : Scheme) (j : V ⟶ H.subscheme), IsOpenImmersion j ∧ |
| 21 | ∃ y : V, j y = x ∧ ((C.comap H.subschemeι).comap j = ⊥ ∨ (C.comap H.subschemeι).comap j = ⊤) := by |
| 22 | intro x |
| 23 | have hx : H.subschemeι x ∈ H.support := by |
| 24 | change H.subschemeι x ∈ (H.support : Set X) |
| 25 | rw [← Scheme.IdealSheafData.range_subschemeι] |
| 26 | exact ⟨x, rfl⟩ |
| 27 | obtain ⟨V, j, hj, y, hy, hC⟩ := hlocal (H.subschemeι x) hx |
| 28 | let : IsOpenImmersion j := hj |
| 29 | let K := H.comap j |
| 30 | let k := IdealSheaf.CarrierBaseChange.Construction.idealSheafCarrierMapTo H K j rfl |
| 31 | obtain ⟨z, hz, _⟩ := Scheme.exists_preimage_of_isPullback |
| 32 | (IdealSheaf.CarrierBaseChange.Construction.idealSheafCarrierMapTo_isPullback H K j rfl) x y hy.symm |
| 33 | refine ⟨K.subscheme, k, inferInstance, z, hz, ?_⟩ |
| 34 | have he : (C.comap H.subschemeι).comap k = (C.comap j).comap K.subschemeι := by |
| 35 | rw [← Scheme.IdealSheafData.comap_comp, IdealSheaf.CarrierBaseChange.Construction.idealSheafCarrierMapTo_over, |
| 36 | Scheme.IdealSheafData.comap_comp] |
| 37 | rw [he] |
| 38 | rcases hC with hC | hC |
| 39 | · left |
| 40 | rw [hC] |
| 41 | exact (GlobalCoefficient.ZeroCenter.Construction.idealSheaf_comap_subscheme_eq_bot_iff K K).mpr le_rfl |
| 42 | · exact Or.inr (hC ▸ Scheme.IdealSheafData.comap_top K.subschemeι) |
| 43 | rcases ZeroOrUnitIdeal.Construction.idealSheaf_eq_bot_or_top_of_pointed_zero_or_unit_charts (C.comap H.subschemeι) hcharts with hz | ht |
| 44 | · left |
| 45 | have he := congrArg (fun I => I.map H.subschemeι) hz |
| 46 | rwa [IdealSheaf.CongruentMaps.Construction.idealSheaf_map_comap_subscheme_of_le H C hHC, Scheme.IdealSheafData.map_bot, |
| 47 | Scheme.IdealSheafData.ker_subschemeι] at he |
| 48 | · right |
| 49 | have he := congrArg (fun I => I.map H.subschemeι) ht |
| 50 | rwa [IdealSheaf.CongruentMaps.Construction.idealSheaf_map_comap_subscheme_of_le H C hHC, Scheme.IdealSheafData.map_top] at he |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.Resolution.Blowups.Locally.WholeOrEmptyCenter.Construction |