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.CechCoefficient.CohomologyCup |
| 2 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 3 | |
| 4 | /-! # Restrict Scalars Presheaf Cup -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RestrictScalarsPresheafCup |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Scalar restriction preserves the native presheaf wedge and its |
| 11 | actual finite Čech cohomology product. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite Simplicial |
| 14 | |
| 15 | universe u v w r s |
| 16 | variable {C : Type u} [Category.{v} C] |
| 17 | (R : Type r) (S : Type s) [CommRing R] [CommRing S] [Algebra R S] |
| 18 | (P : CochainComplex (Cᵒᵖ ⥤ ModuleCat.{w} S) ℕ) |
| 19 | (μ : ∀ i j U, (P.X i).obj U →ₗ[S] (P.X j).obj U →ₗ[S] (P.X (i+j)).obj U) |
| 20 | |
| 21 | local notation "F" => ModuleCat.restrictScalars (algebraMap R S) |
| 22 | local notation "Q" => OAI.NumberTheory.PadicHodge.GeometricComparison.CechPresheaf.CoefficientTotal.CechPresheafCoefficientTotal.mappedComplex F P |
| 23 | local instance restrictedModule (V : ModuleCat.{w} S) : Module R V := |
| 24 | Module.compHom V (algebraMap R S) |
| 25 | local instance tower (V : ModuleCat.{w} S) : IsScalarTower R S V where |
| 26 | smul_assoc r s x := by rw [Algebra.smul_def]; exact mul_smul _ _ _ |
| 27 | |
| 28 | def pairing (i j : ℕ) (U : Cᵒᵖ) : |
| 29 | ((Q).X i).obj U →ₗ[R] ((Q).X j).obj U →ₗ[R] ((Q).X (i+j)).obj U := |
| 30 | (μ i j U).restrictScalars₁₂ R R |
| 31 | |
| 32 | variable |
| 33 | (hμ : ∀ p q {U V : Cᵒᵖ} (f : U ⟶ V) (x : (P.X p).obj U) (y : (P.X q).obj U), |
| 34 | (P.X (p+q)).map f (μ p q U x y) = μ p q V ((P.X p).map f x) ((P.X q).map f y)) |
| 35 | (dμ : ∀ p q U (x : (P.X p).obj U) (y : (P.X q).obj U), |
| 36 | (P.d (p+q) (p+q+1)).app U (μ p q U x y) = |
| 37 | Presheaf.CechProduct.sectionDegreeCast P (by omega : (p+1)+q=p+q+1) U (μ (p+1) q U ((P.d p (p+1)).app U x) y) + |
| 38 | (-1 : ℤ)^p • Presheaf.CechProduct.sectionDegreeCast P (by omega : p+(q+1)=p+q+1) U |
| 39 | (μ p (q+1) U x ((P.d q (q+1)).app U y))) |
| 40 | |
| 41 | include hμ in |
| 42 | theorem natural (p q : ℕ) {U V : Cᵒᵖ} (f : U ⟶ V) |
| 43 | (x : ((Q).X p).obj U) (y : ((Q).X q).obj U) : |
| 44 | ((Q).X (p+q)).map f (pairing R S P μ p q U x y) = |
| 45 | pairing R S P μ p q V (((Q).X p).map f x) (((Q).X q).map f y) := hμ p q f x y |
| 46 | |
| 47 | private theorem cast_eq {i j : ℕ} (h : i=j) (U : Cᵒᵖ) (x : (P.X i).obj U) : |
| 48 | Presheaf.CechProduct.sectionDegreeCast Q h U x = Presheaf.CechProduct.sectionDegreeCast P h U x := by subst j; rfl |
| 49 | |
| 50 | include dμ in |
| 51 | theorem differential (p q : ℕ) (U : Cᵒᵖ) |
| 52 | (x : ((Q).X p).obj U) (y : ((Q).X q).obj U) : |
| 53 | ((Q).d (p+q) (p+q+1)).app U (pairing R S P μ p q U x y) = |
| 54 | Presheaf.CechProduct.sectionDegreeCast Q (by omega : (p+1)+q=p+q+1) U |
| 55 | (pairing R S P μ (p+1) q U (((Q).d p (p+1)).app U x) y) + |
| 56 | (-1 : ℤ)^p • Presheaf.CechProduct.sectionDegreeCast Q (by omega : p+(q+1)=p+q+1) U |
| 57 | (pairing R S P μ p (q+1) U x (((Q).d q (q+1)).app U y)) := by |
| 58 | change (P.d (p+q) (p+q+1)).app U (μ p q U x y) = |
| 59 | Presheaf.CechProduct.sectionDegreeCast Q (by omega : (p+1)+q=p+q+1) U (μ (p+1) q U ((P.d p (p+1)).app U x) y) + |
| 60 | (-1 : ℤ)^p • Presheaf.CechProduct.sectionDegreeCast Q (by omega : p+(q+1)=p+q+1) U |
| 61 | (μ p (q+1) U x ((P.d q (q+1)).app U y)) |
| 62 | rw [cast_eq, cast_eq] |
| 63 | exact dμ p q U x y |
| 64 | |
| 65 | variable (E : SimplicialObject (FormalCoproduct.{0} C)) |
| 66 | (hE : ∀ n, Finite (E.obj (op n)).I) |
| 67 | |
| 68 | def map (i : ℕ) := CechCoefficient.CohomologyCup.Total.homologyMap F |
| 69 | (fun M => AddMonoidHom.id M) E hE P i |
| 70 | |
| 71 | abbrev map_cup := CechCoefficient.CohomologyCup.Total.homologyMap_cup F |
| 72 | (fun M => AddMonoidHom.id M) (fun _ _ => rfl) E hE P μ |
| 73 | (pairing R S P μ) hμ dμ (natural R S P μ hμ) (differential R S P μ dμ) |
| 74 | (fun _ _ _ _ _ => rfl) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RestrictScalarsPresheafCup |