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.Limits.Preorder |
| 2 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Pullbacks |
| 3 | import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts.ProdComparison |
| 4 | |
| 5 | /-! # Infimum Functor Limits -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.InfimumFunctorLimits.RingedModules |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Preservation of infima gives the product and pullback preservation required by open-set inverse image. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | variable {A B : Type} [SemilatticeInf A] [SemilatticeInf B] |
| 16 | |
| 17 | theorem preorder_prod_eq_inf (U V : A) : prod (C := A) U V = U ⊓ V := |
| 18 | le_antisymm (le_inf (leOfHom prod.fst) (leOfHom prod.snd)) |
| 19 | (leOfHom (prod.lift (homOfLE inf_le_left) (homOfLE inf_le_right))) |
| 20 | |
| 21 | def infPullbackCone {U V W : A} (f : U ⟶ W) (g : V ⟶ W) : PullbackCone f g := |
| 22 | PullbackCone.mk (homOfLE (show U ⊓ V ≤ U from inf_le_left)) |
| 23 | (homOfLE inf_le_right) (Subsingleton.elim _ _) |
| 24 | |
| 25 | def infPullbackConeIsLimit {U V W : A} (f : U ⟶ W) (g : V ⟶ W) : |
| 26 | IsLimit (infPullbackCone f g) := |
| 27 | PullbackCone.IsLimit.mk _ (fun s => homOfLE (le_inf (leOfHom s.fst) (leOfHom s.snd))) |
| 28 | (fun _ => Subsingleton.elim _ _) (fun _ => Subsingleton.elim _ _) |
| 29 | (fun _ _ _ _ => Subsingleton.elim _ _) |
| 30 | |
| 31 | variable (F : A ⥤ B) (hF : ∀ U V, F.obj (U ⊓ V) = F.obj U ⊓ F.obj V) |
| 32 | |
| 33 | include hF |
| 34 | |
| 35 | theorem infFunctor_prodComparison_isIso (U V : A) : IsIso (prodComparison F U V) := by |
| 36 | let e : F.obj (U ⨯ V) ≅ F.obj U ⨯ F.obj V := eqToIso (by |
| 37 | rw [preorder_prod_eq_inf, preorder_prod_eq_inf, hF]) |
| 38 | have h : prodComparison F U V = e.hom := Subsingleton.elim _ _ |
| 39 | exact h.symm ▸ e.isIso_hom |
| 40 | |
| 41 | theorem infFunctor_preservesPullback {U V W : A} (f : U ⟶ W) (g : V ⟶ W) : |
| 42 | PreservesLimit (cospan f g) F := by |
| 43 | apply preservesLimit_of_preserves_limit_cone (infPullbackConeIsLimit f g) |
| 44 | refine ((infPullbackCone f g).isLimitMapConeEquiv F).symm ?_ |
| 45 | refine PullbackCone.IsLimit.mk _ (fun s => homOfLE ?_) (fun _ => Subsingleton.elim _ _) |
| 46 | (fun _ => Subsingleton.elim _ _) (fun _ _ _ _ => Subsingleton.elim _ _) |
| 47 | change s.pt ≤ F.obj (U ⊓ V) |
| 48 | rw [hF] |
| 49 | exact le_inf (leOfHom s.fst) (leOfHom s.snd) |
| 50 | |
| 51 | theorem infFunctor_preservesPullbacks : PreservesLimitsOfShape WalkingCospan F where |
| 52 | preservesLimit {H} := by |
| 53 | let : PreservesLimit (cospan (H.map WalkingCospan.Hom.inl) (H.map WalkingCospan.Hom.inr)) F := |
| 54 | infFunctor_preservesPullback F hF _ _ |
| 55 | exact preservesLimit_of_iso_diagram F (diagramIsoCospan H).symm |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.Comparison.Betti.InfimumFunctorLimits.RingedModules |