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.FormalGeometry.Completion.Infinitesimal.ChartRestriction |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic |
| 4 | |
| 5 | /-! # Relative Structure Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.RelativeStructureSections.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The structure presheaf on a scheme over Spec R, with its actual R-module action. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 14 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] {X Y : Scheme.{u}} |
| 23 | (f : X ⟶ Spec (CommRingCat.of R)) |
| 24 | |
| 25 | /-- The actual structure presheaf, with scalars in the literal base ring R. -/ |
| 26 | def relativeStructureSections : X.Opensᵒᵖ ⥤ ModuleCat.{u} R where |
| 27 | obj U := by |
| 28 | let : Algebra R Γ(X, U.unop) := (Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f U.unop).toAlgebra |
| 29 | exact ModuleCat.of R Γ(X, U.unop) |
| 30 | map {U V} i := ConcreteCategory.ofHom (C := ModuleCat R) { |
| 31 | toFun := (X.presheaf.map i).hom |
| 32 | map_add' := (X.presheaf.map i).hom.map_add |
| 33 | map_smul' r s := by |
| 34 | change X.presheaf.map i (Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f U.unop r * s) = |
| 35 | Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f V.unop r * X.presheaf.map i s |
| 36 | rw [map_mul] |
| 37 | exact congrArg (fun x => x * X.presheaf.map i s) |
| 38 | (RingHom.congr_fun (Infinitesimal.ChartRestriction.Construction.baseOpenSectionsMap_restrict f (leOfHom i.unop)) r) } |
| 39 | map_id U := by |
| 40 | let : Algebra R Γ(X, U.unop) := (Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f U.unop).toAlgebra |
| 41 | apply ModuleCat.hom_ext |
| 42 | apply LinearMap.ext |
| 43 | intro s |
| 44 | exact ConcreteCategory.congr_hom (X.presheaf.map_id U) s |
| 45 | map_comp {U V W} i j := by |
| 46 | let : Algebra R Γ(X, U.unop) := (Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f U.unop).toAlgebra |
| 47 | let : Algebra R Γ(X, V.unop) := (Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f V.unop).toAlgebra |
| 48 | let : Algebra R Γ(X, W.unop) := (Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f W.unop).toAlgebra |
| 49 | apply ModuleCat.hom_ext |
| 50 | apply LinearMap.ext |
| 51 | intro s |
| 52 | exact ConcreteCategory.congr_hom (X.presheaf.map_comp i j) s |
| 53 | |
| 54 | theorem relativeStructureSections_smul (U : X.Opens) (r : R) |
| 55 | (s : (relativeStructureSections f).obj (op U)) : |
| 56 | (show Γ(X, U) from r • s) = Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f U r * (show Γ(X, U) from s) := rfl |
| 57 | |
| 58 | theorem baseOpenSectionsMap_comp (g : Y ⟶ X) (U : X.Opens) : |
| 59 | (g.app U).hom.comp (Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f U) = |
| 60 | Affine.InfinitesimalSections.Construction.baseOpenSectionsMap (g ≫ f) (g ⁻¹ᵁ U) := by |
| 61 | change (((Scheme.ΓSpecIso (.of R)).inv ≫ f.appLE ⊤ U (by simp)) ≫ g.app U).hom = _ |
| 62 | rw [Category.assoc, Scheme.Hom.app_eq_appLE, Scheme.Hom.appLE_comp_appLE] |
| 63 | rfl |
| 64 | |
| 65 | /-- Pullback of actual functions is R-linear. -/ |
| 66 | def relativeStructureSectionsPullback (g : Y ⟶ X) : |
| 67 | relativeStructureSections f ⟶ |
| 68 | (TopologicalSpace.Opens.map g.base).op ⋙ relativeStructureSections (g ≫ f) where |
| 69 | app U := ConcreteCategory.ofHom (C := ModuleCat R) (show (relativeStructureSections f).obj U →ₗ[R] |
| 70 | (relativeStructureSections (g ≫ f)).obj (op (g ⁻¹ᵁ U.unop)) from { |
| 71 | toFun := fun s => (g.app U.unop).hom s |
| 72 | map_add' := map_add _ |
| 73 | map_smul' r s := by |
| 74 | change g.app U.unop (Affine.InfinitesimalSections.Construction.baseOpenSectionsMap f U.unop r * (show Γ(X, U.unop) from s)) = |
| 75 | Affine.InfinitesimalSections.Construction.baseOpenSectionsMap (g ≫ f) (g ⁻¹ᵁ U.unop) r * g.app U.unop s |
| 76 | rw [map_mul] |
| 77 | exact congrArg (fun x => x * g.app U.unop s) |
| 78 | (RingHom.congr_fun (baseOpenSectionsMap_comp f g U.unop) r) }) |
| 79 | naturality _ _ i := by |
| 80 | apply ModuleCat.hom_ext |
| 81 | apply LinearMap.ext |
| 82 | intro s |
| 83 | exact ConcreteCategory.congr_hom (g.naturality i) s |
| 84 | |
| 85 | theorem relativeStructureSectionsPullback_apply (g : Y ⟶ X) (U : X.Opens) |
| 86 | (s : (relativeStructureSections f).obj (op U)) : |
| 87 | (relativeStructureSectionsPullback f g).app (op U) s = g.app U s := rfl |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.RelativeStructureSections.Construction |