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.GeometricComparison.DeRham.Composition |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.IsoCohomology |
| 3 | |
| 4 | /-! # Functor -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.Functor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual de Rham pullbacks form a contravariant functor, including the identity law. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal |
| 15 | |
| 16 | variable {R : Type} [CommRing R] |
| 17 | |
| 18 | theorem pullback_id (X : Over (Spec (CommRingCat.of R))) (n : ℕ) : |
| 19 | Int.pullback (𝟙 X) n = LinearMap.id := by |
| 20 | have hinj : Function.Injective (Int.pullback (𝟙 X) n) := by |
| 21 | rw [← IsoCohomology.isoPullback_toLinearMap] |
| 22 | exact (IsoCohomology.isoPullback (𝟙 X) n).injective |
| 23 | have hh := Composition.pullback_comp (𝟙 X) (𝟙 X) n |
| 24 | rw [Category.id_comp] at hh |
| 25 | apply LinearMap.ext |
| 26 | intro x |
| 27 | apply hinj |
| 28 | exact LinearMap.congr_fun hh x |
| 29 | |
| 30 | def cohomologyFunctor (R : Type) [CommRing R] (n : ℕ) : |
| 31 | (Over (Spec (CommRingCat.of R)))ᵒᵖ ⥤ ModuleCat.{1} R where |
| 32 | obj X := AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology R X.unop n |
| 33 | map f := ModuleCat.ofHom (Int.pullback f.unop n) |
| 34 | map_id X := ModuleCat.hom_ext (pullback_id X.unop n) |
| 35 | map_comp f g := ModuleCat.hom_ext (Composition.pullback_comp g.unop f.unop n).symm |
| 36 | |
| 37 | theorem pullback_square {X Y X' Y' : Over (Spec (CommRingCat.of R))} |
| 38 | (f : X ⟶ Y) (g : X' ⟶ Y') (a : X ⟶ X') (b : Y ⟶ Y') |
| 39 | (h : f ≫ b = a ≫ g) (n : ℕ) : |
| 40 | (Int.pullback f n).comp (Int.pullback b n) = (Int.pullback a n).comp (Int.pullback g n) := |
| 41 | (Composition.pullback_comp f b n).trans |
| 42 | ((congrArg (fun k => Int.pullback k n) h).trans (Composition.pullback_comp a g n).symm) |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.Functor |