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.AugmentedOrdered.Cech |
| 2 | |
| 3 | /-! # Cech Zero -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechZero |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Degree zero of the supported ordered Čech complex is the |
| 10 | actual ambient section object. Its first differential is restriction |
| 11 | to the chosen opens. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | universe u v |
| 19 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 20 | {ι : Type u} [LinearOrder ι] (U : ι → C) |
| 21 | {D : Type v} [Category D] [Preadditive D] [HasProducts.{u} D] |
| 22 | |
| 23 | def emptyIndex : Cech.Index ι 0 := ⟨Fin.elim0, fun i => Fin.elim0 i⟩ |
| 24 | |
| 25 | theorem index_zero_eq (a : Cech.Index ι 0) : a = emptyIndex := by |
| 26 | apply Subtype.ext |
| 27 | funext i |
| 28 | exact Fin.elim0 i |
| 29 | |
| 30 | def emptyProductMap (a : Cech.Index ι 0) : ⊤_ C ⟶ (Cech.formal U 0).obj a := |
| 31 | Pi.lift (fun i : Fin 0 => Fin.elim0 i) |
| 32 | |
| 33 | variable (P : Cᵒᵖ ⥤ D) |
| 34 | |
| 35 | def zeroIso : Cech.object U P 0 ≅ P.obj (op (⊤_ C)) where |
| 36 | hom := Pi.π (fun a : Cech.Index ι 0 => P.obj (op ((Cech.formal U 0).obj a))) emptyIndex ≫ |
| 37 | P.map (emptyProductMap U emptyIndex).op |
| 38 | inv := Pi.lift (fun a : Cech.Index ι 0 => |
| 39 | P.map (terminal.from ((Cech.formal U 0).obj a)).op) |
| 40 | hom_inv_id := by |
| 41 | apply Pi.hom_ext |
| 42 | intro a |
| 43 | rw [index_zero_eq a] |
| 44 | simp only [Category.assoc, Pi.lift_comp_π] |
| 45 | rw [← P.map_comp, ← op_comp] |
| 46 | have h : terminal.from ((Cech.formal U 0).obj emptyIndex) ≫ emptyProductMap U emptyIndex = |
| 47 | 𝟙 ((Cech.formal U 0).obj emptyIndex) := Subsingleton.elim _ _ |
| 48 | rw [h, op_id, P.map_id, Category.comp_id] |
| 49 | simp only [Category.id_comp] |
| 50 | rfl |
| 51 | inv_hom_id := by |
| 52 | rw [← Category.assoc] |
| 53 | erw [Pi.lift_comp_π] |
| 54 | rw [← P.map_comp, ← op_comp] |
| 55 | have h : emptyProductMap U emptyIndex ≫ terminal.from ((Cech.formal U 0).obj emptyIndex) = |
| 56 | 𝟙 (⊤_ C) := Subsingleton.elim _ _ |
| 57 | rw [h, op_id, P.map_id] |
| 58 | |
| 59 | omit [Preadditive D] in |
| 60 | theorem zeroIso_inv_π (a : Cech.Index ι 0) : |
| 61 | (zeroIso U P).inv ≫ |
| 62 | Pi.π (fun b : Cech.Index ι 0 => P.obj (op ((Cech.formal U 0).obj b))) a = |
| 63 | P.map (terminal.from ((Cech.formal U 0).obj a)).op := |
| 64 | Pi.lift_comp_π _ _ |
| 65 | |
| 66 | omit [Preadditive D] in |
| 67 | theorem zeroIso_inv_coface_π (a : Cech.Index ι 1) : |
| 68 | (zeroIso U P).inv ≫ Cech.coface U P 0 0 ≫ |
| 69 | Pi.π (fun b : Cech.Index ι 1 => P.obj (op ((Cech.formal U 1).obj b))) a = |
| 70 | P.map (terminal.from ((Cech.formal U 1).obj a)).op := by |
| 71 | change (zeroIso U P).inv ≫ |
| 72 | (Pi.lift (fun b : Cech.Index ι 1 => |
| 73 | Pi.π (fun c : Cech.Index ι 0 => P.obj (op ((Cech.formal U 0).obj c))) (b.delete 0) ≫ |
| 74 | P.map ((Cech.face U 0 0).φ b).op)) ≫ |
| 75 | Pi.π (fun b : Cech.Index ι 1 => P.obj (op ((Cech.formal U 1).obj b))) a = _ |
| 76 | rw [Pi.lift_comp_π, ← Category.assoc, zeroIso_inv_π, ← P.map_comp, ← op_comp] |
| 77 | congr 1 |
| 78 | |
| 79 | theorem zeroIso_inv_differential_π (a : Cech.Index ι 1) : |
| 80 | (zeroIso U P).inv ≫ Cech.differential U P 0 ≫ |
| 81 | Pi.π (fun b : Cech.Index ι 1 => P.obj (op ((Cech.formal U 1).obj b))) a = |
| 82 | P.map (terminal.from ((Cech.formal U 1).obj a)).op := by |
| 83 | simpa only [Cech.differential, Nat.reduceAdd, Fin.sum_univ_one, Fin.val_zero, pow_zero, one_zsmul] using |
| 84 | zeroIso_inv_coface_π U P a |
| 85 | |
| 86 | omit [Preadditive D] in |
| 87 | theorem zeroIso_naturality {Q : Cᵒᵖ ⥤ D} (f : P ⟶ Q) : |
| 88 | (((FormalCoproduct.evalOp C D).map f).app (op (Cech.formal U 0))) ≫ (zeroIso U Q).hom = |
| 89 | (zeroIso U P).hom ≫ f.app (op (⊤_ C)) := by |
| 90 | change Limits.Pi.map (fun a : Cech.Index ι 0 => f.app (op ((Cech.formal U 0).obj a))) ≫ |
| 91 | (Pi.π (fun a : Cech.Index ι 0 => Q.obj (op ((Cech.formal U 0).obj a))) emptyIndex ≫ |
| 92 | Q.map (emptyProductMap U emptyIndex).op) = _ |
| 93 | rw [← Category.assoc, Pi.map_π, Category.assoc] |
| 94 | simpa only [zeroIso, Category.assoc] using congrArg (fun a => |
| 95 | Pi.π (fun b : Cech.Index ι 0 => P.obj (op ((Cech.formal U 0).obj b))) emptyIndex ≫ a) |
| 96 | (f.naturality (emptyProductMap U emptyIndex).op).symm |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechZero |