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.NumberTheory.PadicHodge.IntegralComparison.Affine.ChartSections |
| 2 | import Mathlib.AlgebraicGeometry.IdealSheaf.Basic |
| 3 | import Mathlib.RingTheory.Regular.RegularSequence |
| 4 | |
| 5 | /-! # Chart Refinement -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ChartRefinement |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An open affine refinement of a spectrum chart gives an actual affine |
| 12 | subopen of the original scheme, with its section ring and ideals identified. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 21 | {S : Type u} [CommRing S] (φ : Γ(X, U) →+* S) |
| 22 | [IsOpenImmersion (Spec.map (CommRingCat.ofHom φ))] |
| 23 | |
| 24 | abbrev map : Spec (CommRingCat.of S) ⟶ X := Spec.map (CommRingCat.ofHom φ) ≫ hU.fromSpec |
| 25 | |
| 26 | abbrev openSet : X.Opens := ChartRefinement.map U hU φ ''ᵁ ⊤ |
| 27 | |
| 28 | theorem affine : IsAffineOpen (openSet U hU φ) := |
| 29 | (isAffineOpen_top (Spec (CommRingCat.of S))).image_of_isOpenImmersion (ChartRefinement.map U hU φ) |
| 30 | |
| 31 | theorem le : openSet U hU φ ≤ U := by |
| 32 | rintro x ⟨z, _, rfl⟩ |
| 33 | change hU.fromSpec ((Spec.map (CommRingCat.ofHom φ)) z) ∈ U |
| 34 | have h : hU.fromSpec ((Spec.map (CommRingCat.ofHom φ)) z) ∈ hU.fromSpec.opensRange := ⟨_, rfl⟩ |
| 35 | simpa only [hU.opensRange_fromSpec] using h |
| 36 | |
| 37 | def sectionsIso : Γ(X, openSet U hU φ) ≅ CommRingCat.of S := |
| 38 | (ChartRefinement.map U hU φ).appIso ⊤ ≪≫ Scheme.ΓSpecIso (CommRingCat.of S) |
| 39 | |
| 40 | theorem restriction : |
| 41 | X.presheaf.map (homOfLE (le U hU φ)).op ≫ (sectionsIso U hU φ).hom = |
| 42 | CommRingCat.ofHom φ := by |
| 43 | change X.presheaf.map (homOfLE (le U hU φ)).op ≫ |
| 44 | ((ChartRefinement.map U hU φ).appIso ⊤).hom ≫ (Scheme.ΓSpecIso (CommRingCat.of S)).hom = _ |
| 45 | rw [Scheme.Hom.appIso_hom', Scheme.Hom.map_appLE_assoc] |
| 46 | rw [show (ChartRefinement.map U hU φ).appLE U ⊤ _ = |
| 47 | hU.fromSpec.appLE U ⊤ hU.fromSpec_preimage_self.ge ≫ |
| 48 | (Spec.map (CommRingCat.ofHom φ)).appLE ⊤ ⊤ le_top from |
| 49 | (Scheme.Hom.appLE_comp_appLE _ _ _ _ _ _ _).symm] |
| 50 | rw [ChartSections.fromSpec_appLE] |
| 51 | change (Scheme.ΓSpecIso Γ(X, U)).inv ≫ |
| 52 | ((Spec.map (CommRingCat.ofHom φ)).appTop ≫ |
| 53 | (Spec (CommRingCat.of S)).presheaf.map (𝟙 (op ⊤))) ≫ |
| 54 | (Scheme.ΓSpecIso (CommRingCat.of S)).hom = _ |
| 55 | rw [(Spec (CommRingCat.of S)).presheaf.map_id, Category.comp_id] |
| 56 | rw [Scheme.ΓSpecIso_naturality] |
| 57 | exact (Scheme.ΓSpecIso Γ(X, U)).inv_hom_id_assoc (CommRingCat.ofHom φ) |
| 58 | |
| 59 | theorem ideal (I : X.IdealSheafData) : |
| 60 | (I.ideal ⟨openSet U hU φ, affine U hU φ⟩).map (sectionsIso U hU φ).hom.hom = |
| 61 | (I.ideal ⟨U, hU⟩).map φ := by |
| 62 | rw [← I.map_ideal (U := ⟨openSet U hU φ, affine U hU φ⟩) (V := ⟨U, hU⟩) (le U hU φ), |
| 63 | Ideal.map_map] |
| 64 | change (I.ideal ⟨U, hU⟩).map |
| 65 | (X.presheaf.map (homOfLE (le U hU φ)).op ≫ (sectionsIso U hU φ).hom).hom = _ |
| 66 | rw [restriction] |
| 67 | rfl |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ChartRefinement |