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.CechFunctor |
| 2 | import Mathlib.Data.Fintype.Sort |
| 3 | |
| 4 | /-! # Cech Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Exact intersection-coordinate formulas and the final intersection |
| 11 | of the augmented ordered Čech complex. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u v |
| 16 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 17 | {ι : Type u} [LinearOrder ι] (U : ι → C) |
| 18 | {D : Type v} [Category D] [Preadditive D] [HasProducts.{u} D] |
| 19 | (P : Cᵒᵖ ⥤ D) |
| 20 | |
| 21 | omit [Preadditive D] in |
| 22 | theorem coface_comp_pi (n : ℕ) (k : Fin (n + 1)) (a : Cech.Index ι (n + 1)) : |
| 23 | Cech.coface U P n k ≫ Pi.π (fun b : Cech.Index ι (n + 1) => P.obj (op ((Cech.formal U (n + 1)).obj b))) a = |
| 24 | Pi.π (fun b : Cech.Index ι n => P.obj (op ((Cech.formal U n).obj b))) (a.delete k) ≫ |
| 25 | P.map ((Cech.face U n k).φ a).op := by |
| 26 | exact Pi.lift_comp_π _ a |
| 27 | |
| 28 | theorem differential_comp_pi (n : ℕ) (a : Cech.Index ι (n + 1)) : |
| 29 | Cech.differential U P n ≫ Pi.π (fun b : Cech.Index ι (n + 1) => P.obj (op ((Cech.formal U (n + 1)).obj b))) a = |
| 30 | ∑ k : Fin (n + 1), (-1 : ℤ) ^ (k : ℕ) • |
| 31 | (Pi.π (fun b : Cech.Index ι n => P.obj (op ((Cech.formal U n).obj b))) (a.delete k) ≫ |
| 32 | P.map ((Cech.face U n k).φ a).op) := by |
| 33 | simp only [Cech.differential, sum_comp, zsmul_comp, coface_comp_pi] |
| 34 | |
| 35 | omit [Preadditive D] in |
| 36 | theorem objectMap_comp_pi {Q : Cᵒᵖ ⥤ D} (f : P ⟶ Q) (n : ℕ) (a : Cech.Index ι n) : |
| 37 | CechFunctor.objectMap U f n ≫ Pi.π (fun b : Cech.Index ι n => Q.obj (op ((Cech.formal U n).obj b))) a = |
| 38 | Pi.π (fun b : Cech.Index ι n => P.obj (op ((Cech.formal U n).obj b))) a ≫ |
| 39 | f.app (op ((Cech.formal U n).obj a)) := by |
| 40 | exact Pi.map_π (fun b : Cech.Index ι n => f.app (op ((Cech.formal U n).obj b))) a |
| 41 | |
| 42 | variable [Fintype ι] (g : ℕ) (hg : Fintype.card ι = g) |
| 43 | |
| 44 | def topIndex : Cech.Index ι g := ⟨monoEquivOfFin ι hg, (monoEquivOfFin ι hg).strictMono⟩ |
| 45 | |
| 46 | theorem topIndex_unique (a : Cech.Index ι g) : a = topIndex g hg := by |
| 47 | have hs : Function.Surjective a.val := |
| 48 | ((Fintype.bijective_iff_injective_and_card a.val).mpr |
| 49 | ⟨a.property.injective, by simpa using hg.symm⟩).2 |
| 50 | apply Subtype.ext |
| 51 | apply (a.property.range_inj_of_wellFoundedLT (topIndex g hg).property).mp |
| 52 | change Set.range a.val = Set.range (monoEquivOfFin ι hg) |
| 53 | rw [Set.range_eq_univ.mpr hs, Set.range_eq_univ.mpr (monoEquivOfFin ι hg).surjective] |
| 54 | |
| 55 | def topObject : C := (Cech.formal U g).obj (topIndex g hg) |
| 56 | |
| 57 | def topFactorIso (a : Cech.Index ι g) : topObject U g hg ≅ (Cech.formal U g).obj a := |
| 58 | eqToIso (congrArg (Cech.formal U g).obj (topIndex_unique g hg a).symm) |
| 59 | |
| 60 | def topInclusion : P.obj (op (topObject U g hg)) ⟶ Cech.object U P g := |
| 61 | Pi.lift (fun a : Cech.Index ι g => P.map (topFactorIso U g hg a).inv.op) |
| 62 | |
| 63 | omit [Preadditive D] in |
| 64 | theorem topInclusion_comp_pi (a : Cech.Index ι g) : |
| 65 | topInclusion U P g hg ≫ Pi.π (fun b : Cech.Index ι g => P.obj (op ((Cech.formal U g).obj b))) a = |
| 66 | P.map (topFactorIso U g hg a).inv.op := Pi.lift_comp_π _ a |
| 67 | |
| 68 | omit [Preadditive D] in |
| 69 | theorem topInclusion_naturality {Q : Cᵒᵖ ⥤ D} (f : P ⟶ Q) : |
| 70 | topInclusion U P g hg ≫ CechFunctor.objectMap U f g = |
| 71 | f.app (op (topObject U g hg)) ≫ topInclusion U Q g hg := by |
| 72 | change (Pi.lift (fun b : Cech.Index ι g => P.map (topFactorIso U g hg b).inv.op)) ≫ |
| 73 | (Limits.Pi.map (fun b : Cech.Index ι g => f.app (op ((Cech.formal U g).obj b)))) = |
| 74 | f.app (op (topObject U g hg)) ≫ |
| 75 | Pi.lift (fun b : Cech.Index ι g => Q.map (topFactorIso U g hg b).inv.op) |
| 76 | apply Pi.hom_ext |
| 77 | intro a |
| 78 | rw [Category.assoc, Pi.map_π, ← Category.assoc, Pi.lift_comp_π, |
| 79 | Category.assoc, Pi.lift_comp_π] |
| 80 | exact f.naturality _ |
| 81 | |
| 82 | include hg in |
| 83 | theorem differential_top : Cech.differential U P g = 0 := by |
| 84 | apply Pi.hom_ext |
| 85 | intro a |
| 86 | have hcard := Fintype.card_le_of_injective a.val a.property.injective |
| 87 | simp only [Fintype.card_fin, hg] at hcard |
| 88 | omega |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechCoordinates |