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.ArithmeticGeometry.OrdinaryLocus.Openness.TensorUnit |
| 2 | import Mathlib.CategoryTheory.Adjunction.Mates |
| 3 | import Mathlib.CategoryTheory.Products.Basic |
| 4 | |
| 5 | /-! # Tensor Bifunctor -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorBifunctor.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Tensor comparison squares and their adjunctions. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | def tensorSheafFunctor (X : Scheme.{u}) : (X.Modules × X.Modules) ⥤ X.Modules where |
| 18 | obj M := SheafTensor.Construction.sheafTensor M.1 M.2 |
| 19 | map f := TensorFunctoriality.Construction.sheafTensorMap f.1 f.2 |
| 20 | map_id M := TensorFunctoriality.Construction.sheafTensorMap_id M.1 M.2 |
| 21 | map_comp f g := TensorFunctoriality.Construction.sheafTensorMap_comp f.1 g.1 f.2 g.2 |
| 22 | |
| 23 | def pushforwardTensorNat {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 24 | (Scheme.Modules.pushforward f).prod (Scheme.Modules.pushforward f) ⋙ tensorSheafFunctor Y ⟶ |
| 25 | tensorSheafFunctor X ⋙ Scheme.Modules.pushforward f where |
| 26 | app M := TensorFunctoriality.Construction.pushforwardSheafTensorMap f M.1 M.2 |
| 27 | naturality _M _N g := (TensorFunctoriality.Construction.pushforwardSheafTensorMap_naturality f g.1 g.2).symm |
| 28 | |
| 29 | def pullbackTensorNat {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 30 | tensorSheafFunctor Y ⋙ Scheme.Modules.pullback f ⟶ |
| 31 | (Scheme.Modules.pullback f).prod (Scheme.Modules.pullback f) ⋙ tensorSheafFunctor X where |
| 32 | app M := TensorFunctoriality.Construction.pullbackSheafTensorMap f M.1 M.2 |
| 33 | naturality _M _N g := TensorFunctoriality.Construction.pullbackSheafTensorMap_naturality f g.1 g.2 |
| 34 | |
| 35 | def productAdjunction |
| 36 | {C D E F : Type v} [Category.{u} C] [Category.{u} D] [Category.{u} E] [Category.{u} F] |
| 37 | {L₁ : C ⥤ D} {R₁ : D ⥤ C} {L₂ : E ⥤ F} {R₂ : F ⥤ E} |
| 38 | (a : L₁ ⊣ R₁) (b : L₂ ⊣ R₂) : L₁.prod L₂ ⊣ R₁.prod R₂ where |
| 39 | unit := |
| 40 | { app X := (a.unit.app X.1, b.unit.app X.2) |
| 41 | naturality _X _Y f := Prod.ext (a.unit.naturality f.1) (b.unit.naturality f.2) } |
| 42 | counit := |
| 43 | { app X := (a.counit.app X.1, b.counit.app X.2) |
| 44 | naturality _X _Y f := Prod.ext (a.counit.naturality f.1) (b.counit.naturality f.2) } |
| 45 | left_triangle_components X := Prod.ext (a.left_triangle_components X.1) (b.left_triangle_components X.2) |
| 46 | right_triangle_components X := Prod.ext (a.right_triangle_components X.1) (b.right_triangle_components X.2) |
| 47 | |
| 48 | def pullbackTensorSquare {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 49 | TwoSquare (tensorSheafFunctor Y) |
| 50 | ((Scheme.Modules.pullback f).prod (Scheme.Modules.pullback f)) |
| 51 | (Scheme.Modules.pullback f) (tensorSheafFunctor X) := |
| 52 | TwoSquare.mk _ _ _ _ (pullbackTensorNat f) |
| 53 | |
| 54 | def pushforwardTensorSquare {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 55 | TwoSquare ((Scheme.Modules.pushforward f).prod (Scheme.Modules.pushforward f)) |
| 56 | (tensorSheafFunctor X) (tensorSheafFunctor Y) (Scheme.Modules.pushforward f) := |
| 57 | TwoSquare.mk _ _ _ _ (pushforwardTensorNat f) |
| 58 | |
| 59 | theorem pullbackTensorSquare_eq_mate {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 60 | pullbackTensorSquare f = |
| 61 | (mateEquiv (productAdjunction (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 62 | (Scheme.Modules.pullbackPushforwardAdjunction f)) |
| 63 | (Scheme.Modules.pullbackPushforwardAdjunction f)).symm (pushforwardTensorSquare f) := by |
| 64 | apply TwoSquare.ext |
| 65 | intro M |
| 66 | apply ((Scheme.Modules.pullbackPushforwardAdjunction f).homEquiv _ _).injective |
| 67 | change (Scheme.Modules.pullbackPushforwardAdjunction f).homEquiv _ _ |
| 68 | (TensorFunctoriality.Construction.pullbackSheafTensorMap f M.1 M.2) = _ |
| 69 | rw [TensorFunctoriality.Construction.pullbackSheafTensorMap, Equiv.apply_symm_apply, Adjunction.homEquiv_unit] |
| 70 | exact unit_mateEquiv_symm |
| 71 | (productAdjunction (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 72 | (Scheme.Modules.pullbackPushforwardAdjunction f)) |
| 73 | (Scheme.Modules.pullbackPushforwardAdjunction f) (pushforwardTensorSquare f) M |
| 74 | |
| 75 | theorem mate_pullbackTensorSquare {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 76 | mateEquiv (productAdjunction (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 77 | (Scheme.Modules.pullbackPushforwardAdjunction f)) |
| 78 | (Scheme.Modules.pullbackPushforwardAdjunction f) (pullbackTensorSquare f) = |
| 79 | pushforwardTensorSquare f := by |
| 80 | rw [pullbackTensorSquare_eq_mate, Equiv.apply_symm_apply] |
| 81 | |
| 82 | theorem conjugateEquiv_product_pullbackComp_inv {X Y Z : Scheme.{u}} |
| 83 | (f : X ⟶ Y) (g : Y ⟶ Z) : |
| 84 | conjugateEquiv |
| 85 | ((productAdjunction (Scheme.Modules.pullbackPushforwardAdjunction g) |
| 86 | (Scheme.Modules.pullbackPushforwardAdjunction g)).comp |
| 87 | (productAdjunction (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 88 | (Scheme.Modules.pullbackPushforwardAdjunction f))) |
| 89 | (productAdjunction (Scheme.Modules.pullbackPushforwardAdjunction (f ≫ g)) |
| 90 | (Scheme.Modules.pullbackPushforwardAdjunction (f ≫ g))) |
| 91 | (NatTrans.prod (Scheme.Modules.pullbackComp f g).inv |
| 92 | (Scheme.Modules.pullbackComp f g).inv) = |
| 93 | NatTrans.prod (Scheme.Modules.pushforwardComp f g).hom |
| 94 | (Scheme.Modules.pushforwardComp f g).hom := by |
| 95 | apply NatTrans.ext |
| 96 | funext M |
| 97 | apply Prod.ext |
| 98 | · change (conjugateEquiv |
| 99 | ((Scheme.Modules.pullbackPushforwardAdjunction g).comp |
| 100 | (Scheme.Modules.pullbackPushforwardAdjunction f)) |
| 101 | (Scheme.Modules.pullbackPushforwardAdjunction (f ≫ g)) |
| 102 | (Scheme.Modules.pullbackComp f g).inv).app M.1 = _ |
| 103 | rw [Scheme.Modules.conjugateEquiv_pullbackComp_inv] |
| 104 | rfl |
| 105 | · change (conjugateEquiv |
| 106 | ((Scheme.Modules.pullbackPushforwardAdjunction g).comp |
| 107 | (Scheme.Modules.pullbackPushforwardAdjunction f)) |
| 108 | (Scheme.Modules.pullbackPushforwardAdjunction (f ≫ g)) |
| 109 | (Scheme.Modules.pullbackComp f g).inv).app M.2 = _ |
| 110 | rw [Scheme.Modules.conjugateEquiv_pullbackComp_inv] |
| 111 | rfl |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorBifunctor.Construction |