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 |
| 2 | |
| 3 | /-! # Integer Sheaves -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Lifted.IntegerSheaves |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: lifted-integer module sheaves are abelian sheaves |
| 11 | |
| 12 | The coefficient ring is lifted into the same universe as the module |
| 13 | values. Restriction along the actual ring equivalence with the integers |
| 14 | followed by the native integer-module equivalence preserves higher Ext. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | universe u t |
| 20 | |
| 21 | abbrev Integers : Type u := ULift.{u} ℤ |
| 22 | |
| 23 | abbrev coefficientForget : ModuleCat.{u} Integers ⥤ AddCommGrpCat.{u} := |
| 24 | ModuleCat.restrictScalars (ULift.ringEquiv : Integers ≃+* ℤ).symm.toRingHom ⋙ |
| 25 | forget₂ (ModuleCat.{u} ℤ) AddCommGrpCat.{u} |
| 26 | |
| 27 | instance coefficientForget_isEquivalence : coefficientForget.{u}.IsEquivalence := by |
| 28 | infer_instance |
| 29 | |
| 30 | instance coefficientForget_leftAdjoint : coefficientForget.{u}.IsLeftAdjoint := |
| 31 | coefficientForget.{u}.asEquivalence.isLeftAdjoint_functor |
| 32 | |
| 33 | instance coefficientForget_rightAdjoint : coefficientForget.{u}.IsRightAdjoint := |
| 34 | coefficientForget.{u}.asEquivalence.symm.isRightAdjoint_inverse |
| 35 | |
| 36 | variable {C : Type u} [Category.{u} C] (J : GrothendieckTopology C) |
| 37 | |
| 38 | abbrev sheafForget : Sheaf J (ModuleCat.{u + 1} Integers) ⥤ Sheaf J AddCommGrpCat.{u + 1} := |
| 39 | sheafCompose J coefficientForget |
| 40 | |
| 41 | instance sheafForget_essSurj : (sheafForget.{u} J).EssSurj where |
| 42 | mem_essImage F := by |
| 43 | let e := coefficientForget.{u + 1}.asEquivalence |
| 44 | let G := (sheafCompose J e.inverse).obj F |
| 45 | refine ⟨G, ⟨(fullyFaithfulSheafToPresheaf J AddCommGrpCat.{u + 1}).preimageIso ?_⟩⟩ |
| 46 | exact Functor.associator F.obj e.inverse e.functor ≪≫ |
| 47 | Functor.isoWhiskerLeft F.obj e.counitIso ≪≫ Functor.rightUnitor F.obj |
| 48 | |
| 49 | instance sheafForget_isEquivalence : (sheafForget.{u} J).IsEquivalence where |
| 50 | |
| 51 | instance sheafForget_leftAdjoint : (sheafForget.{u} J).IsLeftAdjoint := |
| 52 | (sheafForget.{u} J).asEquivalence.isLeftAdjoint_functor |
| 53 | |
| 54 | instance sheafForget_rightAdjoint : (sheafForget.{u} J).IsRightAdjoint := |
| 55 | (sheafForget.{u} J).asEquivalence.symm.isRightAdjoint_inverse |
| 56 | |
| 57 | instance sheafForget_additive : (sheafForget.{u} J).Additive where |
| 58 | map_add := by |
| 59 | intro M N a b |
| 60 | apply Sheaf.hom_ext |
| 61 | ext U x |
| 62 | rfl |
| 63 | |
| 64 | variable [HasSheafify J (ModuleCat.{u + 1} Integers)] [HasSheafify J AddCommGrpCat.{u + 1}] |
| 65 | |
| 66 | def constantUnitIso : |
| 67 | (sheafForget.{u} J).obj |
| 68 | ((constantSheaf J (ModuleCat.{u + 1} Integers)).obj (ModuleCat.of Integers Integers)) ≅ |
| 69 | (constantSheaf J AddCommGrpCat.{u + 1}).obj (AddCommGrpCat.of (ULift.{u + 1} ℤ)) := |
| 70 | (constantCommuteCompose J coefficientForget).app (ModuleCat.of Integers Integers) |
| 71 | |
| 72 | variable [HasExt.{t} (Sheaf J (ModuleCat.{u + 1} Integers))] |
| 73 | [HasExt.{t} (Sheaf J AddCommGrpCat.{u + 1})] |
| 74 | [EnoughInjectives (Sheaf J (ModuleCat.{u + 1} Integers))] |
| 75 | |
| 76 | def extEquiv (M N : Sheaf J (ModuleCat.{u + 1} Integers)) (n : ℕ) : |
| 77 | Abelian.Ext.{t} M N n ≃+ |
| 78 | Abelian.Ext.{t} ((sheafForget J).obj M) ((sheafForget J).obj N) n := |
| 79 | AddEquiv.ofBijective ((sheafForget J).mapExtAddHom M N n) |
| 80 | ((sheafForget J).mapExt_bijective_of_preservesInjectiveObjects M N n) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Lifted.IntegerSheaves |