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.Comma.Over.Basic |
| 3 | import Mathlib.CategoryTheory.Limits.Shapes.Pullback.IsPullback.Basic |
| 4 | |
| 5 | /-! # Slice Representative Maps -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SliceRepresentativeMaps.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: transition maps between representatives on slices |
| 13 | |
| 14 | The universal sections determine the transition maps uniquely. These maps |
| 15 | preserve the original sections and obey identity and composition laws. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory Limits Opposite |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | universe u v w |
| 24 | |
| 25 | variable {C : Type u} [Category.{v} C] (F : Cᵒᵖ ⥤ Type w) |
| 26 | {U V W : C} {T : Over U} {S : Over V} {Q : Over W} |
| 27 | (rT : ((Over.forget U).op ⋙ F).RepresentableBy T) |
| 28 | (rS : ((Over.forget V).op ⋙ F).RepresentableBy S) |
| 29 | |
| 30 | /-- The universal section of a representative in a slice. -/ |
| 31 | def sliceUniversalSection : F.obj (op T.left) := rT.homEquiv (𝟙 T) |
| 32 | |
| 33 | /-- The unique transition morphism determined by the first representative's universal section. -/ |
| 34 | def sliceRepresentativeMap (h : U ⟶ V) : T.left ⟶ S.left := |
| 35 | ((rS.homEquiv (X := Over.mk (T.hom ≫ h))).symm |
| 36 | (sliceUniversalSection F (U := U) (T := T) rT)).left |
| 37 | |
| 38 | theorem sliceRepresentativeMap_over (h : U ⟶ V) : |
| 39 | sliceRepresentativeMap F rT rS h ≫ S.hom = T.hom ≫ h := |
| 40 | Over.w _ |
| 41 | |
| 42 | /-- Transition morphisms identify the original universal sections. -/ |
| 43 | theorem sliceRepresentativeMap_section (h : U ⟶ V) : |
| 44 | F.map (sliceRepresentativeMap F rT rS h).op (sliceUniversalSection F rS) = |
| 45 | sliceUniversalSection F rT := by |
| 46 | change ((Over.forget V).op ⋙ F).map |
| 47 | ((rS.homEquiv (X := Over.mk (T.hom ≫ h))).symm |
| 48 | (sliceUniversalSection F (U := U) (T := T) rT)).op |
| 49 | (rS.homEquiv (𝟙 S)) = _ |
| 50 | rw [← rS.homEquiv_eq, rS.homEquiv.apply_symm_apply] |
| 51 | |
| 52 | /-- A map to a slice representative is determined by its base map and pulled-back universal section. -/ |
| 53 | theorem sliceRepresentative_hom_ext {Z : C} (a b : Z ⟶ T.left) |
| 54 | (hab : a ≫ T.hom = b ≫ T.hom) |
| 55 | (hs : F.map a.op (sliceUniversalSection F rT) = F.map b.op (sliceUniversalSection F rT)) : |
| 56 | a = b := by |
| 57 | let a' : Over.mk (a ≫ T.hom) ⟶ T := Over.homMk a rfl |
| 58 | let b' : Over.mk (a ≫ T.hom) ⟶ T := Over.homMk b hab.symm |
| 59 | have heq : a' = b' := rT.homEquiv.injective (by |
| 60 | rw [rT.homEquiv_eq a', rT.homEquiv_eq b'] |
| 61 | exact hs) |
| 62 | exact congrArg (fun k => k.left) heq |
| 63 | |
| 64 | theorem sliceRepresentativeMap_id : sliceRepresentativeMap F rT rT (𝟙 U) = 𝟙 T.left := by |
| 65 | apply sliceRepresentative_hom_ext F rT |
| 66 | · rw [sliceRepresentativeMap_over] |
| 67 | simp |
| 68 | · rw [sliceRepresentativeMap_section] |
| 69 | simp |
| 70 | |
| 71 | theorem sliceRepresentativeMap_comp |
| 72 | (rQ : ((Over.forget W).op ⋙ F).RepresentableBy Q) (h : U ⟶ V) (k : V ⟶ W) : |
| 73 | sliceRepresentativeMap F rT rS h ≫ sliceRepresentativeMap F rS rQ k = |
| 74 | sliceRepresentativeMap F rT rQ (h ≫ k) := by |
| 75 | apply sliceRepresentative_hom_ext F rQ |
| 76 | · rw [Category.assoc, sliceRepresentativeMap_over, ← Category.assoc, |
| 77 | sliceRepresentativeMap_over, sliceRepresentativeMap_over, Category.assoc] |
| 78 | · rw [op_comp, CategoryTheory.Functor.map_comp] |
| 79 | change F.map (sliceRepresentativeMap F rT rS h).op |
| 80 | (F.map (sliceRepresentativeMap F rS rQ k).op (sliceUniversalSection F rQ)) = _ |
| 81 | rw [sliceRepresentativeMap_section, sliceRepresentativeMap_section, sliceRepresentativeMap_section] |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SliceRepresentativeMaps.Construction |