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 Mathlib.CategoryTheory.Yoneda |
| 2 | import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts.ProdComparison |
| 3 | import Mathlib.CategoryTheory.Comma.Over.Basic |
| 4 | |
| 5 | /-! # Representable Slice -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.RepresentableSlice.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: restricting an actual representative to a slice |
| 13 | |
| 14 | The restriction of a represented presheaf to the slice over U is represented |
| 15 | by the projection T × U → U. This supplies the comparison between global |
| 16 | torsor schemes and their explicit local trivializations. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits Opposite |
| 20 | |
| 21 | set_option backward.defeqAttrib.useBackward true |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | universe u v w |
| 25 | |
| 26 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 27 | {F : Cᵒᵖ ⥤ Type w} {T : C} (r : F.RepresentableBy T) (U : C) |
| 28 | |
| 29 | /-- Restricting a represented presheaf to a slice takes the product with its base. -/ |
| 30 | def representableByOnSlice : |
| 31 | ((Over.forget U).op ⋙ F).RepresentableBy (Over.mk (prod.snd : T ⨯ U ⟶ U)) where |
| 32 | homEquiv {A} := |
| 33 | { toFun f := r.homEquiv (f.left ≫ prod.fst) |
| 34 | invFun s := Over.homMk (prod.lift (r.homEquiv.symm s) A.hom) (prod.lift_snd _ _) |
| 35 | left_inv f := by |
| 36 | apply Over.OverMorphism.ext |
| 37 | apply prod.hom_ext |
| 38 | · simp |
| 39 | · exact (prod.lift_snd _ _).trans (Over.w f).symm |
| 40 | right_inv s := by simp } |
| 41 | homEquiv_comp f g := by |
| 42 | change r.homEquiv ((f.left ≫ g.left) ≫ prod.fst) = |
| 43 | F.map f.left.op (r.homEquiv (g.left ≫ prod.fst)) |
| 44 | rw [Category.assoc] |
| 45 | exact r.homEquiv_comp _ _ |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.RepresentableSlice.Construction |