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.IntegralComparison.Trace.DualityDescent |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ExactModuleDualFunctor |
| 3 | import Mathlib.CategoryTheory.Preadditive.Yoneda.Basic |
| 4 | import Mathlib.Algebra.Homology.Additive |
| 5 | import Mathlib.Algebra.Category.Grp.Limits |
| 6 | |
| 7 | /-! # Duality Complex -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Trace.DualityComplex |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A trace pairing gives a natural map from representable morphisms to |
| 14 | the coefficient dual. Termwise perfectness gives an isomorphism of the |
| 15 | actual mapped complexes, with their existing differentials. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 18 | |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | universe u v |
| 23 | variable {C : Type v} [Category.{u} C] [Preadditive C] |
| 24 | (R : Type u) [CommRing R] |
| 25 | (F : C ⥤ ModuleCat.{u} R) [F.Additive] |
| 26 | {ω : C} (τ : F.obj ω ⟶ ModuleCat.of R R) |
| 27 | |
| 28 | def dualFunctor : Cᵒᵖ ⥤ AddCommGrpCat.{u} := |
| 29 | F.op ⋙ ExactModuleDualFunctor.functor R ⋙ forget₂ (ModuleCat R) AddCommGrpCat |
| 30 | |
| 31 | instance : (dualFunctor R F).Additive := by |
| 32 | unfold dualFunctor |
| 33 | infer_instance |
| 34 | |
| 35 | def pairing : preadditiveYoneda.obj ω ⟶ dualFunctor R F where |
| 36 | app M := AddCommGrpCat.ofHom { |
| 37 | toFun f := (DualityDescent.pairingMap F τ M.unop f).hom |
| 38 | map_zero' := by |
| 39 | change (F.map (0 : M.unop ⟶ ω) ≫ τ).hom = 0 |
| 40 | rw [F.map_zero, zero_comp] |
| 41 | rfl |
| 42 | map_add' f g := by |
| 43 | change (F.map (f + g) ≫ τ).hom = (F.map f ≫ τ).hom + (F.map g ≫ τ).hom |
| 44 | rw [F.map_add, Preadditive.add_comp] |
| 45 | rfl } |
| 46 | naturality {M N} f := by |
| 47 | apply AddCommGrpCat.hom_ext |
| 48 | apply AddMonoidHom.ext |
| 49 | intro g |
| 50 | apply LinearMap.ext |
| 51 | intro x |
| 52 | exact ConcreteCategory.congr_hom |
| 53 | (DualityDescent.pairingMap_comp F τ f.unop g) x |
| 54 | |
| 55 | @[simp] theorem pairing_apply (M : Cᵒᵖ) (f : M.unop ⟶ ω) : |
| 56 | (pairing R F τ).app M f = (F.map f ≫ τ).hom := rfl |
| 57 | |
| 58 | theorem pairing_bijective (M : Cᵒᵖ) |
| 59 | (h : Function.Bijective (DualityDescent.pairingMap F τ M.unop)) : |
| 60 | Function.Bijective ((pairing R F τ).app M) := |
| 61 | ModuleCat.homEquiv.bijective.comp h |
| 62 | |
| 63 | def complexMap {ι : Type*} (c : ComplexShape ι) (K : HomologicalComplex Cᵒᵖ c) : |
| 64 | ((preadditiveYoneda.obj ω).mapHomologicalComplex c).obj K ⟶ |
| 65 | ((dualFunctor R F).mapHomologicalComplex c).obj K := |
| 66 | ((pairing R F τ).mapHomologicalComplex c).app K |
| 67 | |
| 68 | @[simp] theorem complexMap_f {ι : Type*} (c : ComplexShape ι) |
| 69 | (K : HomologicalComplex Cᵒᵖ c) (i : ι) : |
| 70 | (complexMap R F τ c K).f i = (pairing R F τ).app (K.X i) := rfl |
| 71 | |
| 72 | theorem complexMap_isIso {ι : Type*} (c : ComplexShape ι) (K : HomologicalComplex Cᵒᵖ c) |
| 73 | (h : ∀ i, Function.Bijective (DualityDescent.pairingMap F τ (K.X i).unop)) : |
| 74 | IsIso (complexMap R F τ c K) := by |
| 75 | let (i : ι) : IsIso ((complexMap R F τ c K).f i) := |
| 76 | (ConcreteCategory.isIso_iff_bijective _).mpr (pairing_bijective R F τ (K.X i) (h i)) |
| 77 | exact HomologicalComplex.Hom.isIso_of_components _ |
| 78 | |
| 79 | def complexIso {ι : Type*} (c : ComplexShape ι) (K : HomologicalComplex Cᵒᵖ c) |
| 80 | (h : ∀ i, Function.Bijective (DualityDescent.pairingMap F τ (K.X i).unop)) : |
| 81 | ((preadditiveYoneda.obj ω).mapHomologicalComplex c).obj K ≅ |
| 82 | ((dualFunctor R F).mapHomologicalComplex c).obj K := by |
| 83 | letI := complexMap_isIso R F τ c K h |
| 84 | exact asIso (complexMap R F τ c K) |
| 85 | |
| 86 | @[simp] theorem complexIso_hom {ι : Type*} (c : ComplexShape ι) |
| 87 | (K : HomologicalComplex Cᵒᵖ c) |
| 88 | (h : ∀ i, Function.Bijective (DualityDescent.pairingMap F τ (K.X i).unop)) : |
| 89 | (complexIso R F τ c K h).hom = complexMap R F τ c K := rfl |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Trace.DualityComplex |