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.AlgebraicTopology.ExtraDegeneracy |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Adjunctions |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 4 | import Mathlib.Algebra.Homology.QuasiIso |
| 5 | |
| 6 | /-! # Nonempty Cech Extra -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.NonemptyCechExtra.NonemptyCechNerve |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # The augmented Čech complex of a nonempty set |
| 14 | |
| 15 | The simplices are ordered tuples. Inserting a chosen element gives an |
| 16 | extra degeneracy, hence the free-module augmentation is a homotopy |
| 17 | equivalence. The augmentation itself is canonical and natural in the set. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory Opposite Simplicial _root_.AlgebraicTopology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | def nerve (S : Type u) : SimplicialObject (Type u) where |
| 25 | obj n := ToType n.unop → S |
| 26 | map f := ↾fun v => v ∘ f.unop.toOrderHom |
| 27 | map_id _ := rfl |
| 28 | map_comp _ _ := rfl |
| 29 | |
| 30 | def augmented (S : Type u) : SimplicialObject.Augmented (Type u) where |
| 31 | left := nerve S |
| 32 | right := PUnit |
| 33 | hom := |
| 34 | { app _ := ↾fun _ => PUnit.unit |
| 35 | naturality _ _ _ := rfl } |
| 36 | |
| 37 | def map {S T : Type u} (f : S → T) : augmented S ⟶ augmented T where |
| 38 | left := |
| 39 | { app _ := ↾fun v => f ∘ v |
| 40 | naturality _ _ _ := rfl } |
| 41 | right := 𝟙 _ |
| 42 | w := rfl |
| 43 | |
| 44 | def augmentedFunctor : Type u ⥤ SimplicialObject.Augmented (Type u) where |
| 45 | obj := augmented |
| 46 | map f := NonemptyCechNerve.map f |
| 47 | map_id _ := rfl |
| 48 | map_comp _ _ := rfl |
| 49 | |
| 50 | /-- Inserting a fixed point contracts the tuple nerve. -/ |
| 51 | def extraDegeneracy (S : Type u) (s : S) : |
| 52 | SimplicialObject.Augmented.ExtraDegeneracy (augmented S) where |
| 53 | s' := ↾fun _ _ => s |
| 54 | s _ := ↾fun v => Fin.cons s v |
| 55 | s'_comp_ε := rfl |
| 56 | s₀_comp_δ₁ := by |
| 57 | apply ConcreteCategory.hom_ext |
| 58 | intro v |
| 59 | funext i |
| 60 | fin_cases i |
| 61 | rfl |
| 62 | s_comp_δ₀ n := by |
| 63 | apply ConcreteCategory.hom_ext |
| 64 | intro v |
| 65 | funext i |
| 66 | change Fin (n + 1) → S at v |
| 67 | change Fin (n + 1) at i |
| 68 | change (Fin.cons s v : Fin (n + 2) → S) (Fin.succAbove 0 i) = v i |
| 69 | simp |
| 70 | s_comp_δ n i := by |
| 71 | apply ConcreteCategory.hom_ext |
| 72 | intro v |
| 73 | funext j |
| 74 | change Fin (n + 2) → S at v |
| 75 | change Fin (n + 2) at j |
| 76 | change (Fin.cons s v : Fin (n + 3) → S) (i.succ.succAbove j) = |
| 77 | (Fin.cons s (fun a => v (i.succAbove a)) : Fin (n + 2) → S) j |
| 78 | exact Fin.cases (by simp) (fun j => by simp) j |
| 79 | s_comp_σ n i := by |
| 80 | apply ConcreteCategory.hom_ext |
| 81 | intro v |
| 82 | funext j |
| 83 | change Fin (n + 1) → S at v |
| 84 | change Fin (n + 3) at j |
| 85 | change (Fin.cons s v : Fin (n + 2) → S) (i.succ.predAbove j) = |
| 86 | (Fin.cons s (fun a => v (i.predAbove a)) : Fin (n + 3) → S) j |
| 87 | exact Fin.cases (by simp) (fun j => by simp) j |
| 88 | |
| 89 | variable (R : Type u) [CommRing R] |
| 90 | |
| 91 | def moduleFunctor : Type u ⥤ SimplicialObject.Augmented (ModuleCat R) := |
| 92 | augmentedFunctor ⋙ (SimplicialObject.Augmented.whiskering _ _).obj (ModuleCat.free R) |
| 93 | |
| 94 | def complexFunctor : Type u ⥤ ChainComplex (ModuleCat R) ℕ := |
| 95 | moduleFunctor R ⋙ SimplicialObject.Augmented.drop ⋙ alternatingFaceMapComplex (ModuleCat R) |
| 96 | |
| 97 | def constantFunctor : Type u ⥤ ChainComplex (ModuleCat R) ℕ := |
| 98 | moduleFunctor R ⋙ SimplicialObject.Augmented.point ⋙ ChainComplex.single₀ (ModuleCat R) |
| 99 | |
| 100 | def constantFunctorIso : constantFunctor R ≅ |
| 101 | (Functor.const (Type u)).obj |
| 102 | ((ChainComplex.single₀ (ModuleCat R)).obj ((ModuleCat.free R).obj PUnit)) := |
| 103 | NatIso.ofComponents (fun _ => Iso.refl _) (by |
| 104 | intro S T f |
| 105 | change ((ChainComplex.single₀ (ModuleCat R)).map ((ModuleCat.free R).map (𝟙 PUnit))) ≫ 𝟙 _ = |
| 106 | 𝟙 _ ≫ 𝟙 _ |
| 107 | simp) |
| 108 | |
| 109 | /-- The canonical augmentation, without any choice of a point. -/ |
| 110 | def augmentation : complexFunctor R ⟶ constantFunctor R := |
| 111 | Functor.whiskerLeft (moduleFunctor R) AlternatingFaceMapComplex.ε |
| 112 | |
| 113 | def homotopyEquiv (S : Type u) (s : S) : |
| 114 | HomotopyEquiv ((complexFunctor R).obj S) ((constantFunctor R).obj S) := |
| 115 | ((extraDegeneracy S s).map (ModuleCat.free R)).homotopyEquiv |
| 116 | |
| 117 | instance augmentation_quasiIso (S : Type u) [Nonempty S] : |
| 118 | QuasiIso ((augmentation R).app S) := |
| 119 | HomotopyEquiv.quasiIso_hom (NonemptyCechNerve.homotopyEquiv R S (Classical.choice ‹Nonempty S›)) |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.NonemptyCechExtra.NonemptyCechNerve |