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.Cech.TupleRestrictionFunctor |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechCoordinates |
| 3 | |
| 4 | /-! # Projection -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.Projection |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The ordered nonempty Čech complex and its literal projection from |
| 11 | the native all-tuples complex, for arbitrary presheaves. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite |
| 14 | |
| 15 | universe u v |
| 16 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 17 | {D : Type v} [Category D] [Preadditive D] [HasProducts.{u} D] |
| 18 | {ι : Type u} [LinearOrder ι] (U : ι → C) (P : Cᵒᵖ ⥤ D) |
| 19 | |
| 20 | abbrev Index (n : ℕ) := {a : Fin (n + 1) → ι // StrictMono a} |
| 21 | abbrev factor {n : ℕ} (a : Fin (n + 1) → ι) := |
| 22 | Cech.TupleRestrictionFunctor.factor U P a |
| 23 | abbrev object (n : ℕ) := AugmentedOrdered.Cech.object U P (n + 1) |
| 24 | abbrev differential (n : ℕ) := AugmentedOrdered.Cech.differential U P (n + 1) |
| 25 | |
| 26 | def complex : CochainComplex D ℕ := CochainComplex.of (object U P) (differential U P) |
| 27 | (fun n => AugmentedOrdered.Cech.differential_comp U P (n + 1)) |
| 28 | |
| 29 | def projection (n : ℕ) (a : Index (ι := ι) n) : object U P n ⟶ factor U P a.val := |
| 30 | Pi.π (fun b : Index (ι := ι) n => factor U P b.val) a |
| 31 | |
| 32 | def mapF (n : ℕ) : (Cech.TupleRestrictionFunctor.complex U P).X n ⟶ object U P n := |
| 33 | Pi.lift fun a : Index (ι := ι) n => Cech.TupleRestrictionFunctor.projection U P a.val |
| 34 | |
| 35 | theorem mapF_projection (n : ℕ) (a : Index (ι := ι) n) : |
| 36 | mapF U P n ≫ projection U P n a = Cech.TupleRestrictionFunctor.projection U P a.val := |
| 37 | Pi.lift_comp_π _ a |
| 38 | |
| 39 | def zeroExtension (n : ℕ) : object U P n ⟶ (Cech.TupleRestrictionFunctor.complex U P).X n := by |
| 40 | classical |
| 41 | exact Pi.lift fun a : Fin (n + 1) → ι => if h : StrictMono a then projection U P n ⟨a, h⟩ else 0 |
| 42 | |
| 43 | theorem zeroExtension_projection (n : ℕ) (a : Fin (n + 1) → ι) (ha : StrictMono a) : |
| 44 | zeroExtension U P n ≫ Cech.TupleRestrictionFunctor.projection U P a = |
| 45 | projection U P n ⟨a, ha⟩ := by |
| 46 | classical |
| 47 | change (Pi.lift (fun b : Fin (n + 1) → ι => |
| 48 | if h : StrictMono b then projection U P n ⟨b, h⟩ else 0)) ≫ |
| 49 | Pi.π (fun b : Fin (n + 1) → ι => factor U P b) a = _ |
| 50 | rw [Pi.lift_comp_π, dite_eq_left ha] |
| 51 | |
| 52 | theorem zeroExtension_mapF (n : ℕ) : zeroExtension U P n ≫ mapF U P n = 𝟙 _ := by |
| 53 | apply Pi.hom_ext |
| 54 | intro (a : Index (ι := ι) n) |
| 55 | change _ ≫ projection U P n a = _ ≫ projection U P n a |
| 56 | rw [Category.assoc, mapF_projection, zeroExtension_projection U P n a.val a.property, |
| 57 | Category.id_comp] |
| 58 | |
| 59 | instance mapF_epi (n : ℕ) : Epi (mapF U P n) := |
| 60 | (IsSplitEpi.mk' ⟨zeroExtension U P n, zeroExtension_mapF U P n⟩).epi |
| 61 | |
| 62 | theorem differential_projection (n : ℕ) (a : Index (ι := ι) (n + 1)) : |
| 63 | differential U P n ≫ projection U P (n + 1) a = |
| 64 | ∑ k : Fin (n + 2), (-1 : ℤ)^k.val • |
| 65 | (projection U P n (AugmentedOrdered.Cech.Index.delete a k) ≫ |
| 66 | P.map ((AugmentedOrdered.Cech.face U (n + 1) k).φ a).op) := |
| 67 | AugmentedOrdered.CechCoordinates.differential_comp_pi U P (n + 1) a |
| 68 | |
| 69 | theorem mapF_d (n : ℕ) : |
| 70 | mapF U P n ≫ differential U P n = |
| 71 | (Cech.TupleRestrictionFunctor.complex U P).d n (n + 1) ≫ mapF U P (n + 1) := by |
| 72 | apply Pi.hom_ext |
| 73 | intro (a : Index (ι := ι) (n + 1)) |
| 74 | change _ ≫ projection U P (n + 1) a = _ ≫ projection U P (n + 1) a |
| 75 | erw [Category.assoc, differential_projection, comp_sum, Category.assoc, |
| 76 | mapF_projection, NonemptyCechDifferential.differential_projection] |
| 77 | apply Finset.sum_congr rfl |
| 78 | intro k _ |
| 79 | erw [comp_zsmul, ← Category.assoc, mapF_projection] |
| 80 | rfl |
| 81 | |
| 82 | def map : Cech.TupleRestrictionFunctor.complex U P ⟶ complex U P := |
| 83 | CochainComplex.ofHom (mapF U P) fun n => by |
| 84 | rw [show (complex U P).d n (n + 1) = differential U P n from CochainComplex.of_d _ _ n] |
| 85 | exact mapF_d U P n |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.Projection |