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.Crystalline.Cohomology.Free.YonedaAddEquiv |
| 2 | import Mathlib.CategoryTheory.Sites.ConstantSheaf |
| 3 | import Mathlib.CategoryTheory.Sites.Over |
| 4 | |
| 5 | /-! # Yoneda Slice Sections -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Free.YonedaSliceSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Free representable sections are the original constant-source sections on the slice. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | universe u v u' v' |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] (J : GrothendieckTopology C) |
| 18 | {A : Type u'} [Category.{v'} A] [Abelian A] [HasCoproducts.{v} A] |
| 19 | [HasSheafify J A] (U : C) [HasSheafify (J.over U) A] (M : A) |
| 20 | |
| 21 | def slice (H : Sheaf (J.over U) A) : |
| 22 | ((constantSheaf (J.over U) A).obj M ⟶ H) ≃+ (M ⟶ H.obj.obj (op (Over.mk (𝟙 U)))) := |
| 23 | (constantSheafAdj (J.over U) A (Over.mkIdTerminal (X := U))).homAddEquiv M H |
| 24 | |
| 25 | omit [HasCoproducts.{v} A] [HasSheafify J A] in |
| 26 | theorem slice_natural {H K : Sheaf (J.over U) A} (g : H ⟶ K) |
| 27 | (a : (constantSheaf (J.over U) A).obj M ⟶ H) : |
| 28 | slice J U M K (a ≫ g) = slice J U M H a ≫ g.hom.app (op (Over.mk (𝟙 U))) := |
| 29 | (constantSheafAdj (J.over U) A (Over.mkIdTerminal (X := U))).homEquiv_naturality_right a g |
| 30 | |
| 31 | omit [HasSheafify (J.over U) A] in |
| 32 | theorem free_natural {H K : Sheaf J A} (g : H ⟶ K) (a : Sheaf.freeYoneda J U M ⟶ H) : |
| 33 | AlgebraicGeometry.Crystalline.Cohomology.Free.YonedaAddEquiv.FreeYonedaAddEquiv.sheaf J U M K (a ≫ g) = |
| 34 | AlgebraicGeometry.Crystalline.Cohomology.Free.YonedaAddEquiv.FreeYonedaAddEquiv.sheaf J U M H a ≫ g.hom.app (op U) := by |
| 35 | change (presheafToSheaf J A).obj (Presheaf.freeYoneda U M) ⟶ H at a |
| 36 | change Presheaf.freeYonedaHomEquiv ((sheafificationAdjunction J A).homEquiv _ K (a ≫ g)) = _ |
| 37 | rw [(sheafificationAdjunction J A).homEquiv_naturality_right, Presheaf.freeYonedaHomEquiv_comp] |
| 38 | rfl |
| 39 | |
| 40 | def homEquiv (H : Sheaf J A) : |
| 41 | (Sheaf.freeYoneda J U M ⟶ H) ≃+ |
| 42 | ((constantSheaf (J.over U) A).obj M ⟶ (J.overPullback A U).obj H) := |
| 43 | (AlgebraicGeometry.Crystalline.Cohomology.Free.YonedaAddEquiv.FreeYonedaAddEquiv.sheaf J U M H).trans |
| 44 | (slice J U M ((J.overPullback A U).obj H)).symm |
| 45 | |
| 46 | theorem slice_homEquiv (H : Sheaf J A) (a : Sheaf.freeYoneda J U M ⟶ H) : |
| 47 | slice J U M ((J.overPullback A U).obj H) (YonedaSliceSections.homEquiv J U M H a) = |
| 48 | AlgebraicGeometry.Crystalline.Cohomology.Free.YonedaAddEquiv.FreeYonedaAddEquiv.sheaf J U M H a := |
| 49 | (slice J U M ((J.overPullback A U).obj H)).apply_symm_apply _ |
| 50 | |
| 51 | theorem homEquiv_natural {H K : Sheaf J A} (g : H ⟶ K) |
| 52 | (a : Sheaf.freeYoneda J U M ⟶ H) : |
| 53 | YonedaSliceSections.homEquiv J U M K (a ≫ g) = YonedaSliceSections.homEquiv J U M H a ≫ (J.overPullback A U).map g := by |
| 54 | apply (slice J U M ((J.overPullback A U).obj K)).injective |
| 55 | exact (slice_homEquiv J U M K (a ≫ g)).trans |
| 56 | ((free_natural J U M g a).trans |
| 57 | ((congrArg (fun b => b ≫ g.hom.app (op U)) (slice_homEquiv J U M H a).symm).trans |
| 58 | (slice_natural J U M ((J.overPullback A U).map g) (YonedaSliceSections.homEquiv J U M H a)).symm)) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Free.YonedaSliceSections |