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.AbelianModuli.HilbertConstruction.Coefficient.ModulePresheaf |
| 2 | import Mathlib.Algebra.Category.CommAlgCat.Basic |
| 3 | |
| 4 | /-! # Algebra Presheaf -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.AlgebraPresheaf |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The structure sheaf as algebras over a chosen ring of coefficients. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X : Scheme.{u}} {R : Type u} [CommRing R] |
| 17 | |
| 18 | def coefficientSectionMap (f : R →+* Γ(X, ⊤)) (U : X.Opens) : R →+* Γ(X, U) := |
| 19 | (X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op).hom.comp f |
| 20 | |
| 21 | theorem coefficientSectionMap_restrict (f : R →+* Γ(X, ⊤)) |
| 22 | {U V : X.Opens} (h : V ≤ U) : |
| 23 | (X.presheaf.map (homOfLE h).op).hom.comp (coefficientSectionMap f U) = |
| 24 | coefficientSectionMap f V := by |
| 25 | unfold coefficientSectionMap |
| 26 | rw [← RingHom.comp_assoc, ← CommRingCat.hom_comp, ← X.presheaf.map_comp] |
| 27 | rfl |
| 28 | |
| 29 | def coefficientAlgebraSections (f : R →+* Γ(X, ⊤)) (U : X.Opens) : CommAlgCat.{u} R := |
| 30 | letI := (coefficientSectionMap f U).toAlgebra |
| 31 | .of R Γ(X, U) |
| 32 | |
| 33 | def coefficientAlgebraRestriction (f : R →+* Γ(X, ⊤)) |
| 34 | {U V : X.Opens} (h : V ≤ U) : |
| 35 | coefficientAlgebraSections f U ⟶ coefficientAlgebraSections f V := by |
| 36 | letI := (coefficientSectionMap f U).toAlgebra |
| 37 | letI := (coefficientSectionMap f V).toAlgebra |
| 38 | exact CommAlgCat.ofHom { |
| 39 | __ := (X.presheaf.map (homOfLE h).op).hom |
| 40 | commutes' := fun r => DFunLike.congr_fun (coefficientSectionMap_restrict f h) r } |
| 41 | |
| 42 | def coefficientAlgebraPresheaf (f : R →+* Γ(X, ⊤)) : |
| 43 | TopCat.Presheaf (CommAlgCat.{u} R) X where |
| 44 | obj U := coefficientAlgebraSections f U.unop |
| 45 | map h := coefficientAlgebraRestriction f h.unop.le |
| 46 | map_id U := by ext r; exact congrArg (fun k => k r) (X.presheaf.map_id U) |
| 47 | map_comp h k := by ext r; exact congrArg (fun a => a r) (X.presheaf.map_comp h k) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.AlgebraPresheaf |