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.ProductBaseChangeCup |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.NonemptyCech.ProductBicomplex |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Presheaf.CohomologyProduct |
| 4 | |
| 5 | /-! # Base Change Total Cup -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.BaseChangeTotalCup.Product |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original intersection-coordinate isomorphism preserves the |
| 12 | signed product on Čech totals and their categorical cohomology. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | open scoped Simplicial |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Presheaf.CohomologyProduct.Cech |
| 17 | |
| 18 | universe u v s t r a |
| 19 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 20 | {D : Type s} [Category.{t} D] [Quiver.IsThin D] [HasBinaryProducts D] |
| 21 | {R : Type r} [CommRing R] |
| 22 | (F : C ⥤ D) {ι : Type} (U : ι → C) |
| 23 | [∀ (n : ℕ) (z : Fin (n+1) → ι), PreservesLimit (Discrete.functor (U ∘ z)) F] |
| 24 | (P : CochainComplex (Dᵒᵖ ⥤ ModuleCat.{a} R) ℕ) |
| 25 | |
| 26 | def pulled := ((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback (A := ModuleCat.{a} R) F).mapHomologicalComplex |
| 27 | (.up ℕ)).obj P |
| 28 | |
| 29 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.BaseChangeTotalCup.Product.pulled F P |
| 30 | local notation "N" => OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve U |
| 31 | local notation "N'" => OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve (Functor.obj F ∘ U) |
| 32 | |
| 33 | def map : Presheaf.TotalCup.CechProduct.total N Q ⟶ Presheaf.TotalCup.CechProduct.total N' P := |
| 34 | HomologicalComplex₂.total.map (GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U P).hom (.up ℕ) |
| 35 | |
| 36 | variable |
| 37 | (μ : ∀ p q V, (P.X p).obj V →ₗ[R] (P.X q).obj V →ₗ[R] (P.X (p+q)).obj V) |
| 38 | (hμ : ∀ p q {V W : Dᵒᵖ} (f : V ⟶ W) (x : (P.X p).obj V) (y : (P.X q).obj V), |
| 39 | (P.X (p+q)).map f (μ p q V x y) = μ p q W ((P.X p).map f x) ((P.X q).map f y)) |
| 40 | |
| 41 | def pairing (p q : ℕ) (V : Cᵒᵖ) : |
| 42 | ((Q).X p).obj V →ₗ[R] ((Q).X q).obj V →ₗ[R] ((Q).X (p+q)).obj V := μ p q (F.op.obj V) |
| 43 | |
| 44 | include hμ in |
| 45 | omit [HasBinaryProducts C] [Quiver.IsThin D] [HasBinaryProducts D] in |
| 46 | theorem pairing_natural (p q : ℕ) {V W : Cᵒᵖ} (f : V ⟶ W) |
| 47 | (x : ((Q).X p).obj V) (y : ((Q).X q).obj V) : |
| 48 | ((Q).X (p+q)).map f (pairing F P μ p q V x y) = |
| 49 | pairing F P μ p q W (((Q).X p).map f x) (((Q).X q).map f y) := hμ p q (F.op.map f) x y |
| 50 | |
| 51 | include hμ in |
| 52 | theorem bicomplex_pairing (p i q j : ℕ) |
| 53 | (x : ((Presheaf.TotalCup.CechProduct.bicomplex N Q).X p).X i) (y : ((Presheaf.TotalCup.CechProduct.bicomplex N Q).X q).X j) : |
| 54 | (((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U P).hom.f (p+q)).f (i+j)) |
| 55 | (Presheaf.TotalCup.CechProduct.signedPairing N Q (pairing F P μ) p i q j x y) = |
| 56 | Presheaf.TotalCup.CechProduct.signedPairing N' P μ p i q j |
| 57 | (((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U P).hom.f p).f i x) |
| 58 | (((GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U P).hom.f q).f j y) := by |
| 59 | change (ProductBaseChangeCup.map F U (P.X (p+q))).app ⦋i+j⦌ |
| 60 | ((-1 : ℤ)^(i*q) • Presheaf.CechProduct.cup N Q (pairing F P μ) p q i j x y) = |
| 61 | (-1 : ℤ)^(i*q) • Presheaf.CechProduct.cup N' P μ p q i j |
| 62 | ((ProductBaseChangeCup.map F U (P.X p)).app ⦋i⦌ x) |
| 63 | ((ProductBaseChangeCup.map F U (P.X q)).app ⦋j⦌ y) |
| 64 | exact (map_zsmul ((ProductBaseChangeCup.map F U (P.X (p+q))).app ⦋i+j⦌).hom |
| 65 | ((-1 : ℤ)^(i*q)) _).trans |
| 66 | (congrArg ((-1 : ℤ)^(i*q) • ·) |
| 67 | (ProductBaseChangeCup.cup_natural F U (P.X p) (P.X q) (P.X (p+q)) |
| 68 | (μ p q) (hμ p q) i j x y)) |
| 69 | |
| 70 | include hμ in |
| 71 | theorem map_cup (i j : ℕ) (x : (Presheaf.TotalCup.CechProduct.total N Q).X i) (y : (Presheaf.TotalCup.CechProduct.total N Q).X j) : |
| 72 | (Product.map F U P).f (i+j) (Presheaf.TotalCup.CechProduct.totalCup N Q (pairing F P μ) i j x y) = |
| 73 | Presheaf.TotalCup.CechProduct.totalCup N' P μ i j ((Product.map F U P).f i x) ((Product.map F U P).f j y) := |
| 74 | BicomplexPairingNaturality.totalPairing_natural (Presheaf.TotalCup.CechProduct.signedPairing N Q (pairing F P μ)) |
| 75 | (Presheaf.TotalCup.CechProduct.signedPairing N' P μ) (GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U P).hom |
| 76 | (GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U P).hom (GeometricComparison.NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U P).hom |
| 77 | (bicomplex_pairing F U P μ hμ) i j x y |
| 78 | |
| 79 | omit [HasBinaryProducts C] [Quiver.IsThin D] [HasBinaryProducts D] in |
| 80 | private theorem cast_eq {i j : ℕ} (h : i=j) (V : Cᵒᵖ) (x : (P.X i).obj (F.op.obj V)) : |
| 81 | Presheaf.CechProduct.sectionDegreeCast Q h V x = Presheaf.CechProduct.sectionDegreeCast P h (F.op.obj V) x := by subst j; rfl |
| 82 | |
| 83 | variable (dμ : ∀ p q V (x : (P.X p).obj V) (y : (P.X q).obj V), |
| 84 | (P.d (p+q) (p+q+1)).app V (μ p q V x y) = |
| 85 | Presheaf.CechProduct.sectionDegreeCast P (by omega : (p+1)+q=p+q+1) V (μ (p+1) q V ((P.d p (p+1)).app V x) y) + |
| 86 | (-1 : ℤ)^p • Presheaf.CechProduct.sectionDegreeCast P (by omega : p+(q+1)=p+q+1) V |
| 87 | (μ p (q+1) V x ((P.d q (q+1)).app V y))) |
| 88 | |
| 89 | include dμ in |
| 90 | omit [HasBinaryProducts C] [Quiver.IsThin D] [HasBinaryProducts D] in |
| 91 | theorem differential (p q : ℕ) (V : Cᵒᵖ) |
| 92 | (x : ((Q).X p).obj V) (y : ((Q).X q).obj V) : |
| 93 | ((Q).d (p+q) (p+q+1)).app V (pairing F P μ p q V x y) = |
| 94 | Presheaf.CechProduct.sectionDegreeCast Q (by omega : (p+1)+q=p+q+1) V |
| 95 | (pairing F P μ (p+1) q V (((Q).d p (p+1)).app V x) y) + |
| 96 | (-1 : ℤ)^p • Presheaf.CechProduct.sectionDegreeCast Q (by omega : p+(q+1)=p+q+1) V |
| 97 | (pairing F P μ p (q+1) V x (((Q).d q (q+1)).app V y)) := by |
| 98 | exact (dμ p q (F.op.obj V) x y).trans |
| 99 | (congrArg₂ (fun x y : (P.X (p+q+1)).obj (F.op.obj V) => x + (-1 : ℤ)^p • y) |
| 100 | (cast_eq F P (by omega : (p+1)+q=p+q+1) V _).symm |
| 101 | (cast_eq F P (by omega : p+(q+1)=p+q+1) V _).symm) |
| 102 | |
| 103 | abbrev cohomologyMap_cup := Cochain.CupNaturality.Cohomology.cohomologyMap_cup |
| 104 | (Presheaf.TotalCup.CechProduct.totalCup N Q (pairing F P μ)) (Presheaf.TotalCup.CechProduct.totalCup N' P μ) |
| 105 | (Presheaf.TotalLeibniz.CechProduct.differential_totalCup N Q (pairing F P μ) (pairing_natural F P μ hμ) (differential F P μ dμ)) |
| 106 | (Presheaf.TotalLeibniz.CechProduct.differential_totalCup N' P μ hμ dμ) (Product.map F U P) (map_cup F U P μ hμ) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.BaseChangeTotalCup.Product |