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.AbelianScheme.IsogenyQuotient.Relative.Isotropy |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SheafCharacterComparison |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SheafTranspose |
| 4 | |
| 5 | /-! # Sheaf Pairing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | An actual G_m-valued scheme bicharacter defines its adjoint in CartierDuality's |
| 13 | commutative fppf-sheaf category. The comparison retains the original |
| 14 | pairing values on every test scheme and every further restriction. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 19 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {S : Scheme.{u}} {A B : Over S} [GrpObj A] [IsCommMonObj A] |
| 24 | [GrpObj B] [IsCommMonObj B] |
| 25 | (e : Annihilator.Construction.SchemeBicharacter (A := A) (B := B) (W := (CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S).X)) |
| 26 | |
| 27 | def Annihilator.Construction.SchemeBicharacter.sheafCharacterAt (T : Over S) (x : T ⟶ A) : |
| 28 | (CartierDuality.CommutativeSheavesAb.Construction.Schemes.cartierDualSheaf (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk B))).obj.obj (.op T) where |
| 29 | app U := GrpCat.ofHom { |
| 30 | toFun y := ULift.up (e.pairValue (U.unop.hom ≫ x) y.down) |
| 31 | map_one' := congrArg ULift.up (e.one_right U.unop.left (U.unop.hom ≫ x)) |
| 32 | map_mul' y z := congrArg ULift.up (e.mul_right U.unop.left (U.unop.hom ≫ x) y.down z.down) } |
| 33 | naturality := by |
| 34 | intro U V f |
| 35 | apply GrpCat.hom_ext |
| 36 | apply MonoidHom.ext |
| 37 | rintro ⟨y⟩ |
| 38 | change U.unop.left ⟶ B at y |
| 39 | change ULift.up (e.pairValue (V.unop.hom ≫ x) (f.unop.left ≫ y)) = |
| 40 | ULift.up (f.unop.left ≫ e.pairValue (U.unop.hom ≫ x) y) |
| 41 | apply congrArg ULift.up |
| 42 | rw [← e.pairValue_natural, ← Category.assoc, f.unop.w] |
| 43 | |
| 44 | theorem Annihilator.Construction.SchemeBicharacter.sheafCharacterAt_one (T : Over S) : e.sheafCharacterAt T 1 = 1 := by |
| 45 | apply NatTrans.ext |
| 46 | funext U |
| 47 | apply GrpCat.hom_ext |
| 48 | apply MonoidHom.ext |
| 49 | rintro ⟨y⟩ |
| 50 | change ULift.up (e.pairValue (U.unop.hom ≫ 1) y) = ULift.up 1 |
| 51 | rw [MonObj.comp_one] |
| 52 | exact congrArg ULift.up (e.one_left U.unop.left y) |
| 53 | |
| 54 | omit [IsCommMonObj A] in |
| 55 | theorem Annihilator.Construction.SchemeBicharacter.sheafCharacterAt_mul (T : Over S) (x z : T ⟶ A) : |
| 56 | e.sheafCharacterAt T (x * z) = e.sheafCharacterAt T x * e.sheafCharacterAt T z := by |
| 57 | apply NatTrans.ext |
| 58 | funext U |
| 59 | apply GrpCat.hom_ext |
| 60 | apply MonoidHom.ext |
| 61 | rintro ⟨y⟩ |
| 62 | change ULift.up (e.pairValue (U.unop.hom ≫ (x * z)) y) = |
| 63 | ULift.up (e.pairValue (U.unop.hom ≫ x) y * e.pairValue (U.unop.hom ≫ z) y) |
| 64 | rw [MonObj.comp_mul] |
| 65 | exact congrArg ULift.up (e.mul_left U.unop.left (U.unop.hom ≫ x) (U.unop.hom ≫ z) y) |
| 66 | |
| 67 | omit [IsCommMonObj A] in |
| 68 | theorem Annihilator.Construction.SchemeBicharacter.sheafCharacterAt_natural {T U : Over S} (f : U ⟶ T) (x : T ⟶ A) : |
| 69 | (CartierDuality.CommutativeSheavesAb.Construction.Schemes.cartierDualSheaf (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk B))).obj.map f.op (e.sheafCharacterAt T x) = |
| 70 | e.sheafCharacterAt U (f ≫ x) := by |
| 71 | apply NatTrans.ext |
| 72 | funext V |
| 73 | apply GrpCat.hom_ext |
| 74 | apply MonoidHom.ext |
| 75 | rintro ⟨y⟩ |
| 76 | change ULift.up (e.pairValue ((V.unop.hom ≫ f) ≫ x) y) = |
| 77 | ULift.up (e.pairValue (V.unop.hom ≫ f ≫ x) y) |
| 78 | rw [Category.assoc] |
| 79 | |
| 80 | def Annihilator.Construction.SchemeBicharacter.toSheafPairing : CartierDuality.SheafEvaluation.Construction.Schemes.BilinearPairing (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk A)) |
| 81 | (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk B)) where |
| 82 | leftAdjoint.hom.app T := CommGrpCat.ofHom { |
| 83 | toFun x := e.sheafCharacterAt T.unop x.down |
| 84 | map_one' := e.sheafCharacterAt_one T.unop |
| 85 | map_mul' x y := e.sheafCharacterAt_mul T.unop x.down y.down } |
| 86 | leftAdjoint.hom.naturality := by |
| 87 | intro T U f |
| 88 | apply CommGrpCat.hom_ext |
| 89 | apply MonoidHom.ext |
| 90 | rintro ⟨x⟩ |
| 91 | exact (e.sheafCharacterAt_natural f.unop x).symm |
| 92 | |
| 93 | theorem Annihilator.Construction.SchemeBicharacter.toSheafPairing_value (T : Over S) (x : T ⟶ A) (y : T ⟶ B) : |
| 94 | CartierDuality.SheafEvaluation.Construction.Schemes.sheafCharacterValue (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk B)) T |
| 95 | (e.toSheafPairing.leftAdjoint.hom.app (.op T) (ULift.up x)) (ULift.up y) = |
| 96 | ULift.up (e.pairValue x y) := by |
| 97 | change ULift.up (e.pairValue ((𝟙 T) ≫ x) y) = _ |
| 98 | rw [Category.id_comp] |
| 99 | |
| 100 | theorem Annihilator.Construction.SchemeBicharacter.toSheafPairing_rightValue (T : Over S) (x : T ⟶ A) (y : T ⟶ B) : |
| 101 | CartierDuality.SheafEvaluation.Construction.Schemes.sheafCharacterValue (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk A)) T |
| 102 | (e.toSheafPairing.rightAdjoint.hom.app (.op T) (ULift.up y)) (ULift.up x) = |
| 103 | ULift.up (e.pairValue x y) := |
| 104 | (e.toSheafPairing.adjoint_value T (ULift.up x) (ULift.up y)).trans (e.toSheafPairing_value T x y) |
| 105 | |
| 106 | theorem Annihilator.Construction.SchemeBicharacter.toSheafPairing_flip : e.flip.toSheafPairing = e.toSheafPairing.flip := by |
| 107 | have h : e.flip.toSheafPairing.leftAdjoint = e.toSheafPairing.rightAdjoint := by |
| 108 | apply CartierDuality.SheafEvaluation.Construction.Schemes.sheafDualHom_ext |
| 109 | intro T y x |
| 110 | obtain ⟨y⟩ := y |
| 111 | obtain ⟨x⟩ := x |
| 112 | exact (e.flip.toSheafPairing_value T y x).trans |
| 113 | ((congrArg ULift.up (e.flip_pairValue y x)).trans (e.toSheafPairing_rightValue T x y).symm) |
| 114 | exact congrArg CartierDuality.SheafEvaluation.Construction.Schemes.BilinearPairing.mk h |
| 115 | |
| 116 | theorem Annihilator.Construction.SchemeBicharacter.toSheafPairing_hom_injective |
| 117 | (d : Annihilator.Construction.SchemeBicharacter (A := A) (B := B) (W := (CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S).X)) |
| 118 | (h : e.toSheafPairing = d.toSheafPairing) : e.hom = d.hom := by |
| 119 | have hv := congrArg (fun b : CartierDuality.SheafEvaluation.Construction.Schemes.BilinearPairing (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk A)) |
| 120 | (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk B)) => |
| 121 | CartierDuality.SheafEvaluation.Construction.Schemes.sheafCharacterValue (CartierDuality.CommutativeSheavesAb.Construction.Schemes.representedFppfAb S (Grp.mk B)) (A ⊗ B) |
| 122 | (b.leftAdjoint.hom.app (.op (A ⊗ B)) (ULift.up (fst A B))) (ULift.up (snd A B))) h |
| 123 | rw [Annihilator.Construction.SchemeBicharacter.toSheafPairing_value, Annihilator.Construction.SchemeBicharacter.toSheafPairing_value] at hv |
| 124 | have hh := congrArg ULift.down hv |
| 125 | simpa only [Annihilator.Construction.SchemeBicharacter.pairValue, CategoryTheory.CartesianMonoidalCategory.lift_fst_snd, Category.id_comp] using hh |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient |