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.FormalGeometry.Completion.SliceRepresentativeMaps |
| 2 | import Mathlib.CategoryTheory.Limits.Shapes.Pullback.Equifibered |
| 3 | |
| 4 | /-! # Slice Representative Pullback -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SliceRepresentativePullback.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: the canonical transition squares of slice representatives are pullbacks |
| 12 | |
| 13 | The original representing bijections solve the pullback universal property. |
| 14 | Thus representatives over a diagram of base objects form compatible geometric |
| 15 | data, with no pullback condition assumed. |
| 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 u' v' |
| 24 | |
| 25 | variable {C : Type u} [Category.{v} C] (F : Cᵒᵖ ⥤ Type w) |
| 26 | {U V : C} {T : Over U} {S : Over V} |
| 27 | (rT : ((Over.forget U).op ⋙ F).RepresentableBy T) |
| 28 | (rS : ((Over.forget V).op ⋙ F).RepresentableBy S) |
| 29 | |
| 30 | /-- Pulling back the universal section supplies the unique candidate for a pullback lift. -/ |
| 31 | def sliceRepresentativeLift {Z : C} (x : Z ⟶ U) (y : Z ⟶ S.left) : Z ⟶ T.left := |
| 32 | ((rT.homEquiv (X := Over.mk x)).symm |
| 33 | (F.map y.op (SliceRepresentativeMaps.Construction.sliceUniversalSection F (U := V) (T := S) rS))).left |
| 34 | |
| 35 | theorem sliceRepresentativeLift_over {Z : C} (x : Z ⟶ U) (y : Z ⟶ S.left) : |
| 36 | sliceRepresentativeLift F rT rS x y ≫ T.hom = x := Over.w _ |
| 37 | |
| 38 | theorem sliceRepresentativeLift_section {Z : C} (x : Z ⟶ U) (y : Z ⟶ S.left) : |
| 39 | F.map (sliceRepresentativeLift F rT rS x y).op (SliceRepresentativeMaps.Construction.sliceUniversalSection F rT) = |
| 40 | F.map y.op (SliceRepresentativeMaps.Construction.sliceUniversalSection F rS) := by |
| 41 | change ((Over.forget U).op ⋙ F).map |
| 42 | ((rT.homEquiv (X := Over.mk x)).symm |
| 43 | (F.map y.op (SliceRepresentativeMaps.Construction.sliceUniversalSection F (U := V) (T := S) rS))).op |
| 44 | (rT.homEquiv (𝟙 T)) = _ |
| 45 | rw [← rT.homEquiv_eq, rT.homEquiv.apply_symm_apply] |
| 46 | |
| 47 | theorem sliceRepresentativeLift_transition (h : U ⟶ V) {Z : C} |
| 48 | (x : Z ⟶ U) (y : Z ⟶ S.left) (hxy : y ≫ S.hom = x ≫ h) : |
| 49 | sliceRepresentativeLift F rT rS x y ≫ SliceRepresentativeMaps.Construction.sliceRepresentativeMap F rT rS h = y := by |
| 50 | apply SliceRepresentativeMaps.Construction.sliceRepresentative_hom_ext F rS |
| 51 | · rw [Category.assoc, SliceRepresentativeMaps.Construction.sliceRepresentativeMap_over, ← Category.assoc, |
| 52 | sliceRepresentativeLift_over, hxy] |
| 53 | · rw [op_comp, CategoryTheory.Functor.map_comp] |
| 54 | change F.map (sliceRepresentativeLift F rT rS x y).op |
| 55 | (F.map (SliceRepresentativeMaps.Construction.sliceRepresentativeMap F rT rS h).op (SliceRepresentativeMaps.Construction.sliceUniversalSection F rS)) = _ |
| 56 | rw [SliceRepresentativeMaps.Construction.sliceRepresentativeMap_section, sliceRepresentativeLift_section] |
| 57 | |
| 58 | /-- The canonical transition square is the actual categorical pullback. -/ |
| 59 | theorem sliceRepresentativeMap_isPullback (h : U ⟶ V) : |
| 60 | IsPullback (SliceRepresentativeMaps.Construction.sliceRepresentativeMap F rT rS h) T.hom S.hom h := by |
| 61 | apply IsPullback.of_isLimit' ⟨SliceRepresentativeMaps.Construction.sliceRepresentativeMap_over F rT rS h⟩ |
| 62 | refine PullbackCone.IsLimit.mk (SliceRepresentativeMaps.Construction.sliceRepresentativeMap_over F rT rS h) |
| 63 | (fun c => sliceRepresentativeLift F rT rS c.snd c.fst) |
| 64 | (fun c => sliceRepresentativeLift_transition F rT rS h _ _ c.condition) |
| 65 | (fun c => sliceRepresentativeLift_over F rT rS c.snd c.fst) ?_ |
| 66 | intro c m hm₁ hm₂ |
| 67 | apply SliceRepresentativeMaps.Construction.sliceRepresentative_hom_ext F rT |
| 68 | · rw [hm₂, sliceRepresentativeLift_over] |
| 69 | · calc |
| 70 | F.map m.op (SliceRepresentativeMaps.Construction.sliceUniversalSection F rT) = |
| 71 | F.map m.op (F.map (SliceRepresentativeMaps.Construction.sliceRepresentativeMap F rT rS h).op (SliceRepresentativeMaps.Construction.sliceUniversalSection F rS)) := by |
| 72 | rw [SliceRepresentativeMaps.Construction.sliceRepresentativeMap_section] |
| 73 | _ = F.map (m ≫ SliceRepresentativeMaps.Construction.sliceRepresentativeMap F rT rS h).op (SliceRepresentativeMaps.Construction.sliceUniversalSection F rS) := by |
| 74 | rw [op_comp, Functor.map_comp_apply] |
| 75 | _ = F.map c.fst.op (SliceRepresentativeMaps.Construction.sliceUniversalSection F rS) := by rw [hm₁] |
| 76 | _ = _ := (sliceRepresentativeLift_section F rT rS c.snd c.fst).symm |
| 77 | |
| 78 | variable {I : Type u'} [Category.{v'} I] (B : I ⥤ C) (T : ∀ i, Over (B.obj i)) |
| 79 | (rep : ∀ i, ((Over.forget (B.obj i)).op ⋙ F).RepresentableBy (T i)) |
| 80 | |
| 81 | /-- Slice representatives over a diagram form their canonical transition diagram. -/ |
| 82 | def sliceRepresentativeDiagram : I ⥤ C where |
| 83 | obj i := (T i).left |
| 84 | map {i j} h := SliceRepresentativeMaps.Construction.sliceRepresentativeMap F (rep i) (rep j) (B.map h) |
| 85 | map_id i := by rw [CategoryTheory.Functor.map_id, SliceRepresentativeMaps.Construction.sliceRepresentativeMap_id] |
| 86 | map_comp h k := by rw [CategoryTheory.Functor.map_comp, SliceRepresentativeMaps.Construction.sliceRepresentativeMap_comp] |
| 87 | |
| 88 | /-- The structural maps of the transition diagram. -/ |
| 89 | def sliceRepresentativeDiagramToBase : sliceRepresentativeDiagram F B T rep ⟶ B where |
| 90 | app i := (T i).hom |
| 91 | naturality i j h := SliceRepresentativeMaps.Construction.sliceRepresentativeMap_over F (rep i) (rep j) (B.map h) |
| 92 | |
| 93 | /-- Every transition square is a pullback, as required by relative geometric gluing. -/ |
| 94 | theorem sliceRepresentativeDiagram_equifibered : |
| 95 | (sliceRepresentativeDiagramToBase F B T rep).Equifibered := by |
| 96 | intro i j h |
| 97 | exact sliceRepresentativeMap_isPullback F (rep i) (rep j) (B.map h) |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SliceRepresentativePullback.Construction |