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.TruncatedModel.PrincipalTopCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.Supported |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedCech.CoefficientFactor |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedCech.SingleCoefficientCoordinates |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Functor.SingleMapCoordinates |
| 6 | |
| 7 | /-! # Principal Top Homology -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PrincipalTopHomology |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The native principal top-form source iso preserves the original |
| 14 | single-degree homology coordinates, including exact additive coefficients. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | private theorem inv_prefix {C : Type*} [Category C] {A B D : C} |
| 20 | (e : A ≅ B) (a : A ⟶ D) (b : B ⟶ D) (h : e.hom ≫ b = a) : e.inv ≫ a = b := by |
| 21 | rw [← h, Iso.inv_hom_id_assoc] |
| 22 | |
| 23 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 24 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 25 | [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] |
| 26 | (U : X.left.affineOpens) (g : ℕ) [SmoothOfRelativeDimension g X.hom] |
| 27 | (a : Fin g → Γ(X.left,U.val)) |
| 28 | |
| 29 | abbrev family := Supported.Comparison.family p k n X U g a |
| 30 | abbrev originalFunctor := PrincipalTopCoordinates.originalFunctor p k n X U ⋙ |
| 31 | AugmentedOrdered.CechFunctor.functor (family p k n X U g a) |
| 32 | abbrev mappedFunctor := PrincipalTopCoordinates.forget p k n X U ⋙ |
| 33 | AugmentedOrdered.CechFunctor.functor (family p k n X U g a) |
| 34 | abbrev coefficient := PrincipalTopSingle.coefficient p k n X U g |
| 35 | abbrev sheafCoefficient := GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf (Truncated.Witt.Ring p k n) X g |
| 36 | abbrev forget := AdditiveTop.Comparison.forget p k |
| 37 | |
| 38 | def originalIso (r : ℕ) := IntegralComparison.Functor.SingleTotal.homologyIso (originalFunctor p k n X U g a) |
| 39 | (sheafCoefficient p k n X g) g r |
| 40 | |
| 41 | def mappedIso (r : ℕ) := IntegralComparison.Functor.SingleTotal.homologyIso (mappedFunctor p k n X U g a) |
| 42 | (coefficient p k n X U g) g r |
| 43 | |
| 44 | def nativeIso (r : ℕ) := IntegralComparison.Functor.SingleTotal.homologyIso |
| 45 | (AugmentedOrdered.CechFunctor.functor (family p k n X U g a)) (coefficient p k n X U g) g r |
| 46 | |
| 47 | def bicomplexMap : |
| 48 | IntegralComparison.Functor.SingleTotal.bicomplex (originalFunctor p k n X U g a) (sheafCoefficient p k n X g) g ⟶ |
| 49 | IntegralComparison.Functor.SingleTotal.bicomplex (mappedFunctor p k n X U g a) (coefficient p k n X U g) g := |
| 50 | ((AugmentedOrdered.CechFunctor.functor (family p k n X U g a)).mapHomologicalComplex (.up ℕ)).map |
| 51 | (PrincipalTopCoordinates.sourceIso p k n X U g).hom |
| 52 | |
| 53 | omit [Fintype k] [CharP k p] [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] [SmoothOfRelativeDimension g X.hom] in |
| 54 | theorem row : (bicomplexMap p k n X U g a).f g ≫ |
| 55 | (IntegralComparison.Functor.SingleTotal.rowIso (mappedFunctor p k n X U g a) (coefficient p k n X U g) g).hom = |
| 56 | (IntegralComparison.Functor.SingleTotal.rowIso (originalFunctor p k n X U g a) (sheafCoefficient p k n X g) g).hom := by |
| 57 | have h := congrArg (AugmentedOrdered.CechFunctor.functor (family p k n X U g a)).map |
| 58 | (PrincipalTopCoordinates.self p k n X U g) |
| 59 | simpa only [Functor.map_comp, bicomplexMap, IntegralComparison.Functor.SingleTotal.rowIso, |
| 60 | Functor.mapIso_hom, originalFunctor, mappedFunctor, Functor.comp_map, |
| 61 | Functor.mapHomologicalComplex_map_f] using h |
| 62 | |
| 63 | omit [Fintype k] [CharP k p] [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] [SmoothOfRelativeDimension g X.hom] in |
| 64 | theorem comparison (r : ℕ) : |
| 65 | homologyMap (AugmentedCech.CoefficientNaturality.Total.totalMap (family p k n X U g a) |
| 66 | (PrincipalTopCoordinates.sourceIso p k n X U g).hom) (r+g) ≫ |
| 67 | (mappedIso p k n X U g a r).hom = (originalIso p k n X U g a r).hom := by |
| 68 | have h := IntegralComparison.Functor.SingleMapCoordinates.comparison |
| 69 | (originalFunctor p k n X U g a) (mappedFunctor p k n X U g a) |
| 70 | (sheafCoefficient p k n X g) (coefficient p k n X U g) g |
| 71 | (bicomplexMap p k n X U g a) (𝟙 _) |
| 72 | (by simpa only [Category.comp_id] using row p k n X U g a) r |
| 73 | simpa only [homologyMap_id, Category.comp_id, bicomplexMap, |
| 74 | AugmentedCech.CoefficientNaturality.Total.totalMap, AugmentedCech.CoefficientNaturality.Total.bicomplexMap, |
| 75 | mappedIso, originalIso] using h |
| 76 | |
| 77 | def coefficientIso (r : ℕ) := AugmentedCech.SingleCoefficientCoordinates.coefficientIso |
| 78 | (family p k n X U g a) |
| 79 | (𝟭 ((Principal.SectionPresheaf.Index U.val)ᵒᵖ ⥤ |
| 80 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k)))) |
| 81 | (forget p k) (coefficient p k n X U g) r |
| 82 | |
| 83 | omit [Fintype k] [CharP k p] [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] [SmoothOfRelativeDimension g X.hom] in |
| 84 | theorem coefficient_comparison (r : ℕ) : |
| 85 | (AugmentedCech.CoefficientTotal.homologyIso (family p k n X U g a) (forget p k) |
| 86 | ((single _ (.up ℕ) g).obj (coefficient p k n X U g)) (r+g)).hom ≫ |
| 87 | (mappedIso p k n X U g a r).hom = |
| 88 | (forget p k).map (nativeIso p k n X U g a r).hom ≫ (coefficientIso p k n X U g a r).hom := |
| 89 | AugmentedCech.SingleCoefficientCoordinates.comparison (family p k n X U g a) |
| 90 | (𝟭 ((Principal.SectionPresheaf.Index U.val)ᵒᵖ ⥤ |
| 91 | ModuleCat.{2} (Crystalline.ExactRestriction.Coeff (B := WittVector p k)))) |
| 92 | (forget p k) (coefficient p k n X U g) g r |
| 93 | |
| 94 | omit [Fintype k] [CharP k p] [IsProper X.hom] [Smooth X.hom] [X.left.IsSeparated] [SmoothOfRelativeDimension g X.hom] in |
| 95 | theorem input_coordinates (r : ℕ) : |
| 96 | (AugmentedCech.CoefficientFactor.inputIso (family p k n X U g a) (forget p k) |
| 97 | (PrincipalTopCoordinates.sourceIso p k n X U g) (r+g)).hom ≫ |
| 98 | (originalIso p k n X U g a r).hom = |
| 99 | (forget p k).map (nativeIso p k n X U g a r).hom ≫ (coefficientIso p k n X U g a r).hom := by |
| 100 | let e := homologyMapIso |
| 101 | ((AugmentedCech.CoefficientFactor.totalFunctor (family p k n X U g a)).mapIso |
| 102 | (PrincipalTopCoordinates.sourceIso p k n X U g)) (r+g) |
| 103 | have he : e.hom ≫ (mappedIso p k n X U g a r).hom = (originalIso p k n X U g a r).hom := |
| 104 | comparison p k n X U g a r |
| 105 | have hi := inv_prefix e _ _ he |
| 106 | change ((AugmentedCech.CoefficientTotal.homologyIso (family p k n X U g a) (forget p k) |
| 107 | ((single _ (.up ℕ) g).obj (coefficient p k n X U g)) (r+g)).hom ≫ e.inv) ≫ _ = _ |
| 108 | rw [Category.assoc, hi] |
| 109 | exact coefficient_comparison p k n X U g a r |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PrincipalTopHomology |