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.NumberTheory.PadicHodge.GeometricComparison.SemilinearCharpolyTo |
| 2 | |
| 3 | /-! # Semilinear Derived Q -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.SemilinearDerivedQ.SemilinearDerived |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Exact functors carry their actual scalar action to derived morphism spaces. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | |
| 13 | universe u v u' v' w w' |
| 14 | |
| 15 | section Basic |
| 16 | |
| 17 | variable {R S : Type*} [CommRing R] [CommRing S] (σ : R →+* S) |
| 18 | {C : Type u} [Category.{v} C] [Preadditive C] [Linear R C] |
| 19 | {D : Type u'} [Category.{v'} D] [Preadditive D] [Linear S D] |
| 20 | (F : C ⥤ D) |
| 21 | |
| 22 | theorem map_smul_of_identity |
| 23 | (h : ∀ (Y : C) (r : R), F.map (r • 𝟙 Y) = σ r • 𝟙 (F.obj Y)) |
| 24 | {X Y : C} (f : X ⟶ Y) (r : R) : F.map (r • f) = σ r • F.map f := by |
| 25 | calc |
| 26 | F.map (r • f) = F.map (f ≫ (r • 𝟙 Y)) := by rw [Linear.comp_smul, Category.comp_id] |
| 27 | _ = F.map f ≫ (σ r • 𝟙 (F.obj Y)) := by rw [F.map_comp, h] |
| 28 | _ = σ r • F.map f := by rw [Linear.comp_smul, Category.comp_id] |
| 29 | |
| 30 | theorem scalar_identity_of_iso {X Y : C} (e : X ≅ Y) (r : R) |
| 31 | (h : F.map (r • 𝟙 X) = σ r • 𝟙 (F.obj X)) : |
| 32 | F.map (r • 𝟙 Y) = σ r • 𝟙 (F.obj Y) := by |
| 33 | apply (cancel_mono (F.map e.inv)).mp |
| 34 | calc |
| 35 | F.map (r • 𝟙 Y) ≫ F.map e.inv = F.map ((r • 𝟙 Y) ≫ e.inv) := (F.map_comp _ _).symm |
| 36 | _ = F.map (e.inv ≫ (r • 𝟙 X)) := by rw [Linear.smul_comp, Linear.comp_smul, |
| 37 | Category.id_comp, Category.comp_id] |
| 38 | _ = F.map e.inv ≫ (σ r • 𝟙 (F.obj X)) := by rw [F.map_comp, h] |
| 39 | _ = (σ r • 𝟙 (F.obj Y)) ≫ F.map e.inv := by |
| 40 | rw [Linear.comp_smul, Linear.smul_comp, Category.comp_id, Category.id_comp] |
| 41 | |
| 42 | end Basic |
| 43 | |
| 44 | section HomEquivalence |
| 45 | |
| 46 | variable {R S : Type*} [Field R] [Field S] (σ : R ≃+* S) |
| 47 | {C : Type u} [Category.{v} C] [Preadditive C] [Linear R C] |
| 48 | {D : Type u'} [Category.{v'} D] [Preadditive D] [Linear S D] |
| 49 | (F : C ⥤ D) [F.Additive] [F.Full] [F.Faithful] |
| 50 | |
| 51 | def homEquiv |
| 52 | (h : ∀ (Y : C) (r : R), F.map (r • 𝟙 Y) = σ r • 𝟙 (F.obj Y)) |
| 53 | (X Y : C) : (X ⟶ Y) ≃ₛₗ[σ.toRingHom] (F.obj X ⟶ F.obj Y) := |
| 54 | LinearEquiv.ofBijective |
| 55 | { __ := F.mapAddHom |
| 56 | map_smul' r f := map_smul_of_identity σ.toRingHom F h f r } |
| 57 | ⟨F.map_injective, F.map_surjective⟩ |
| 58 | |
| 59 | end HomEquivalence |
| 60 | |
| 61 | variable {R S : Type*} [CommRing R] [CommRing S] (σ : R →+* S) |
| 62 | {C : Type u} [Category.{v} C] [Abelian C] [Linear R C] [HasDerivedCategory.{w} C] |
| 63 | {D : Type u'} [Category.{v'} D] [Abelian D] [Linear S D] [HasDerivedCategory.{w'} D] |
| 64 | (F : C ⥤ D) |
| 65 | [F.Additive] [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 66 | (h : ∀ (Y : C) (r : R), F.map (r • 𝟙 Y) = σ r • 𝟙 (F.obj Y)) |
| 67 | |
| 68 | include h |
| 69 | |
| 70 | omit [HasDerivedCategory C] [HasDerivedCategory D] |
| 71 | [PreservesFiniteLimits F] [PreservesFiniteColimits F] in |
| 72 | theorem complex_scalar_identity (K : CochainComplex C ℤ) (r : R) : |
| 73 | (F.mapHomologicalComplex (ComplexShape.up ℤ)).map (r • 𝟙 K) = |
| 74 | σ r • 𝟙 ((F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) := by |
| 75 | apply HomologicalComplex.Hom.ext |
| 76 | funext i |
| 77 | exact h (K.X i) r |
| 78 | |
| 79 | theorem derived_scalar_identity_Q (K : CochainComplex C ℤ) (r : R) : |
| 80 | F.mapDerivedCategory.map (r • 𝟙 (DerivedCategory.Q.obj K)) = |
| 81 | σ r • 𝟙 (F.mapDerivedCategory.obj (DerivedCategory.Q.obj K)) := by |
| 82 | apply (cancel_mono (F.mapDerivedCategoryFactors.hom.app K)).mp |
| 83 | have hn := F.mapDerivedCategoryFactors_hom_naturality (r • 𝟙 K) |
| 84 | rw [DerivedCategory.Q.map_smul r (𝟙 K), DerivedCategory.Q.map_id, |
| 85 | complex_scalar_identity σ F h, DerivedCategory.Q.map_smul (σ r), |
| 86 | DerivedCategory.Q.map_id] at hn |
| 87 | rw [Linear.smul_comp, Category.id_comp] |
| 88 | exact hn.trans ((Linear.comp_smul _ _ _ _ _ _).trans |
| 89 | (congrArg (fun f => σ r • f) (Category.comp_id _))) |
| 90 | |
| 91 | theorem derived_scalar_identity (Y : DerivedCategory C) (r : R) : |
| 92 | F.mapDerivedCategory.map (r • 𝟙 Y) = σ r • 𝟙 (F.mapDerivedCategory.obj Y) := |
| 93 | scalar_identity_of_iso σ F.mapDerivedCategory (DerivedCategory.Q.objObjPreimageIso Y) r |
| 94 | (derived_scalar_identity_Q σ F h (DerivedCategory.Q.objPreimage Y) r) |
| 95 | |
| 96 | theorem derived_map_smul {X Y : DerivedCategory C} (f : X ⟶ Y) (r : R) : |
| 97 | F.mapDerivedCategory.map (r • f) = σ r • F.mapDerivedCategory.map f := |
| 98 | map_smul_of_identity σ F.mapDerivedCategory (derived_scalar_identity σ F h) f r |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.NumberTheory.PadicHodge.GeometricComparison.SemilinearDerivedQ.SemilinearDerived |