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.ChartSectionAlgebra |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 3 | |
| 4 | /-! # Section Base -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.SectionBase |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: canonical affine-open section rings retain their native base structure |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (k : Type u) [CommRing k] (X : Over (Spec (CommRingCat.of k))) |
| 19 | (U : X.left.Opens) (hU : IsAffineOpen U) |
| 20 | |
| 21 | theorem overBase : hU.fromSpec ≫ X.hom = |
| 22 | Spec.map (CommRingCat.ofHom (algebraMap k ((OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras k X).obj (op U)))) := by |
| 23 | have h := (IsAffineOpen.SpecMap_appLE_fromSpec X.hom (isAffineOpen_top (Spec (CommRingCat.of k))) hU |
| 24 | (show U ≤ X.hom ⁻¹ᵁ ⊤ by simp)).symm |
| 25 | rw [IsAffineOpen.fromSpec_top, Scheme.isoSpec_Spec_inv, ← Spec.map_comp] at h |
| 26 | exact h |
| 27 | |
| 28 | variable (C : Type u) [CommRing C] |
| 29 | (g : Spec (CommRingCat.of C) ⟶ X.left) [IsOpenImmersion g] (h : U ≤ g.opensRange) |
| 30 | |
| 31 | theorem range_subset : U ≤ g.opensRange → Set.range hU.fromSpec ⊆ Set.range g := by |
| 32 | intro h |
| 33 | rw [hU.range_fromSpec] |
| 34 | exact h |
| 35 | |
| 36 | def lift : Spec Γ(X.left, U) ⟶ Spec (CommRingCat.of C) := |
| 37 | IsOpenImmersion.lift g hU.fromSpec (range_subset k X U hU C g h) |
| 38 | |
| 39 | theorem lift_fac : SectionBase.lift k X U hU C g h ≫ g = hU.fromSpec := |
| 40 | IsOpenImmersion.lift_fac g hU.fromSpec (range_subset k X U hU C g h) |
| 41 | |
| 42 | instance lift_open : IsOpenImmersion (SectionBase.lift k X U hU C g h) := by |
| 43 | have : IsOpenImmersion (SectionBase.lift k X U hU C g h ≫ g) := (SectionBase.lift_fac k X U hU C g h).symm ▸ inferInstance |
| 44 | exact IsOpenImmersion.of_comp _ g |
| 45 | |
| 46 | def ringMap : CommRingCat.of C ⟶ Γ(X.left, U) := Spec.preimage (SectionBase.lift k X U hU C g h) |
| 47 | |
| 48 | theorem ringMap_etale : (ringMap k X U hU C g h).hom.Etale := by |
| 49 | apply (HasRingHomProperty.Spec_iff (P := @Etale)).mp |
| 50 | have he : Spec.map (ringMap k X U hU C g h) = SectionBase.lift k X U hU C g h := Spec.map_preimage _ |
| 51 | rw [he] |
| 52 | infer_instance |
| 53 | |
| 54 | variable [Algebra k C] (hg : g ≫ X.hom = Spec.map (CommRingCat.ofHom (algebraMap k C))) |
| 55 | |
| 56 | include hg in |
| 57 | theorem ringMap_base : CommRingCat.ofHom (algebraMap k C) ≫ ringMap k X U hU C g h = |
| 58 | CommRingCat.ofHom (algebraMap k ((OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras k X).obj (op U))) := by |
| 59 | apply Spec.map_injective |
| 60 | have h₁ : Spec.map (ringMap k X U hU C g h) = SectionBase.lift k X U hU C g h := Spec.map_preimage _ |
| 61 | have h₂ := (congrArg (fun f => SectionBase.lift k X U hU C g h ≫ f) hg.symm).trans |
| 62 | ((Category.assoc _ _ _).symm.trans |
| 63 | ((congrArg (fun f => f ≫ X.hom) (SectionBase.lift_fac k X U hU C g h)).trans (overBase k X U hU))) |
| 64 | exact (Spec.map_comp _ _).trans |
| 65 | ((congrArg (fun f => f ≫ Spec.map (CommRingCat.ofHom (algebraMap k C))) h₁).trans h₂) |
| 66 | |
| 67 | def algHom : CommAlgCat.of k C ⟶ (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras k X).obj (op U) := |
| 68 | CommAlgCat.ofHom |
| 69 | { (ringMap k X U hU C g h).hom with |
| 70 | commutes' := fun r => ConcreteCategory.congr_hom (ringMap_base k X U hU C g h hg) r } |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.SectionBase |