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.OrdinaryDeRhamFunctor |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Presentation |
| 3 | |
| 4 | /-! # Chart Section Ring -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ChartSectionRing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: the actual coordinate ring of an affine chart identifies with sections on its Zariski image |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (k C : Type u) [CommRing k] [CommRing C] |
| 19 | (X : Over (Spec (CommRingCat.of k))) (g : Spec (CommRingCat.of C) ⟶ X.left) [IsOpenImmersion g] |
| 20 | |
| 21 | theorem top_le_preimage : (⊤ : (Spec (CommRingCat.of C)).Opens) ≤ g ⁻¹ᵁ g.opensRange := by |
| 22 | rw [Scheme.Hom.preimage_opensRange] |
| 23 | |
| 24 | def sectionMap : Γ(X.left, g.opensRange) ⟶ CommRingCat.of C := |
| 25 | g.appLE g.opensRange ⊤ (top_le_preimage k C X g) ≫ (Scheme.ΓSpecIso (CommRingCat.of C)).hom |
| 26 | |
| 27 | private def imageIso : Γ(X.left, g.opensRange) ≅ Γ(Spec (CommRingCat.of C), ⊤) := by |
| 28 | letI : IsIso (g.app g.opensRange) := Scheme.Hom.isIso_app g g.opensRange le_rfl |
| 29 | exact asIso (g.app g.opensRange) ≪≫ |
| 30 | (Spec (CommRingCat.of C)).presheaf.mapIso (eqToIso (Scheme.Hom.preimage_opensRange g).symm).op |
| 31 | |
| 32 | private theorem imageIso_hom : (imageIso k C X g).hom = g.appLE g.opensRange ⊤ (top_le_preimage k C X g) := by |
| 33 | apply congrArg (fun a => g.app g.opensRange ≫ a) |
| 34 | apply congrArg (Spec (CommRingCat.of C)).presheaf.map |
| 35 | exact Subsingleton.elim _ _ |
| 36 | |
| 37 | def iso : Γ(X.left, g.opensRange) ≅ CommRingCat.of C := imageIso k C X g ≪≫ Scheme.ΓSpecIso (CommRingCat.of C) |
| 38 | |
| 39 | theorem iso_hom : (iso k C X g).hom = sectionMap k C X g := |
| 40 | congrArg (fun a => a ≫ (Scheme.ΓSpecIso (CommRingCat.of C)).hom) (imageIso_hom k C X g) |
| 41 | |
| 42 | variable [Algebra k C] (hg : g ≫ X.hom = Spec.map (CommRingCat.ofHom (algebraMap k C))) |
| 43 | |
| 44 | include hg in |
| 45 | theorem base_square : (Scheme.ΓSpecIso (CommRingCat.of k)).inv ≫ |
| 46 | X.hom.appLE ⊤ g.opensRange le_top ≫ sectionMap k C X g = CommRingCat.ofHom (algebraMap k C) := by |
| 47 | have h₁ := Scheme.Hom.appLE_comp_appLE g X.hom ⊤ g.opensRange ⊤ le_top (top_le_preimage k C X g) |
| 48 | have h₂ := congrArg (fun a : Spec (CommRingCat.of C) ⟶ Spec (CommRingCat.of k) => a.appLE ⊤ ⊤ le_top) hg |
| 49 | have h₃ := Scheme.ΓSpecIso_naturality (CommRingCat.ofHom (algebraMap k C)) |
| 50 | calc |
| 51 | _ = (Scheme.ΓSpecIso (CommRingCat.of k)).inv ≫ |
| 52 | (X.hom.appLE ⊤ g.opensRange le_top ≫ g.appLE g.opensRange ⊤ (top_le_preimage k C X g)) ≫ |
| 53 | (Scheme.ΓSpecIso (CommRingCat.of C)).hom := (Category.assoc _ _ _).symm |
| 54 | _ = (Scheme.ΓSpecIso (CommRingCat.of k)).inv ≫ |
| 55 | (Spec.map (CommRingCat.ofHom (algebraMap k C))).appTop ≫ (Scheme.ΓSpecIso (CommRingCat.of C)).hom := |
| 56 | congrArg (fun a => (Scheme.ΓSpecIso (CommRingCat.of k)).inv ≫ a ≫ |
| 57 | (Scheme.ΓSpecIso (CommRingCat.of C)).hom) (h₁.trans h₂) |
| 58 | _ = CommRingCat.ofHom (algebraMap k C) := by rw [h₃, Iso.inv_hom_id_assoc] |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ChartSectionRing |