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.MorphismPrincipal |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.OrdinaryBaseIso |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.AlgebraPullback |
| 4 | |
| 5 | /-! # Morphism Base -/ |
| 6 | |
| 7 | namespace OAI |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismBase.Coordinates |
| 12 | |
| 13 | /-! Section-ring coordinates for the finite-model scalar-change square. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] (n : ℕ) |
| 21 | {X₁ X₂ : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))} [Smooth X₁.hom] [Smooth X₂.hom] |
| 22 | {Y₁ Y₂ : Over (Spec (CommRingCat.of k))} |
| 23 | (u : X₁ ⟶ X₂) (v : Y₁ ⟶ Y₂) (f₁ : Y₁.left ⟶ X₁.left) (f₂ : Y₂.left ⟶ X₂.left) |
| 24 | (hp₁ : IsPullback f₁ Y₁.hom X₁.hom (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 25 | (hp₂ : IsPullback f₂ Y₂.hom X₂.hom (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 26 | (sq : f₁ ≫ u.left = v.left ≫ f₂) |
| 27 | |
| 28 | local notation "W" => WittVector p k |
| 29 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.Witt.Ring p k n |
| 30 | |
| 31 | def sourceAlgebra (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) : CommAlgCat R := |
| 32 | (Affine.AlgebraPullback.diagram R X₂).obj (op U.val.2) |
| 33 | def targetAlgebra (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) : CommAlgCat R := |
| 34 | (Affine.AlgebraPullback.diagram R X₁).obj (op U.val.1) |
| 35 | |
| 36 | local instance sourceWitt (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) : |
| 37 | Algebra W (sourceAlgebra p k n u U) := |
| 38 | Truncated.SmoothFrame.Complex.wittAlgebra p k n (sourceAlgebra p k n u U) |
| 39 | local instance targetWitt (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) : |
| 40 | Algebra W (targetAlgebra p k n u U) := |
| 41 | Truncated.SmoothFrame.Complex.wittAlgebra p k n (targetAlgebra p k n u U) |
| 42 | local instance sourceTower (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) : |
| 43 | IsScalarTower W R (sourceAlgebra p k n u U) := IsScalarTower.of_algebraMap_eq' rfl |
| 44 | local instance targetTower (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) : |
| 45 | IsScalarTower W R (targetAlgebra p k n u U) := IsScalarTower.of_algebraMap_eq' rfl |
| 46 | |
| 47 | def integral (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) : |
| 48 | sourceAlgebra p k n u U →ₐ[R] targetAlgebra p k n u U := |
| 49 | ((Affine.AlgebraPullback.transformation R u).app (op U)).hom |
| 50 | |
| 51 | theorem ring_component (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) : |
| 52 | (MorphismRings.transformation p k n u v f₁ f₂ hp₁ hp₂ sq).app (op U) = |
| 53 | CommAlgCat.ofHom ((integral p k n u U).restrictScalars W) := by |
| 54 | rw [MorphismRings.component] |
| 55 | apply CommAlgCat.hom_ext |
| 56 | apply AlgHom.ext |
| 57 | intro x |
| 58 | rfl |
| 59 | |
| 60 | theorem forms_square (U : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left) (degree : ℕ) |
| 61 | (ω : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form W (sourceAlgebra p k n u U) degree) : |
| 62 | OrdinaryBaseQuotient.Ordinary.formsEquiv W R (targetAlgebra p k n u U) Ideal.Quotient.mk_surjective degree |
| 63 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap |
| 64 | ((MorphismRings.transformation p k n u v f₁ f₂ hp₁ hp₂ sq).app (op U)) degree ω) = |
| 65 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap (CommAlgCat.ofHom (integral p k n u U)) degree |
| 66 | (OrdinaryBaseQuotient.Ordinary.formsEquiv W R (sourceAlgebra p k n u U) Ideal.Quotient.mk_surjective degree ω) := by |
| 67 | have h := congrArg (fun a : CommAlgCat.of W (sourceAlgebra p k n u U) ⟶ |
| 68 | CommAlgCat.of W (targetAlgebra p k n u U) => AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap a degree ω) |
| 69 | (ring_component p k n u v f₁ f₂ hp₁ hp₂ sq U) |
| 70 | exact (congrArg (OrdinaryBaseQuotient.Ordinary.formsEquiv W R (targetAlgebra p k n u U) |
| 71 | Ideal.Quotient.mk_surjective degree) h).trans |
| 72 | (GeometricComparison.SurjectiveBase.SurjectiveBaseDeRham.forms_naturality W R (sourceAlgebra p k n u U) |
| 73 | Ideal.Quotient.mk_surjective (targetAlgebra p k n u U) (integral p k n u U) degree ω) |
| 74 | |
| 75 | end NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismBase.Coordinates |
| 76 | |
| 77 | namespace NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismBase.Comparison |
| 78 | |
| 79 | /-! The actual finite-level ordinary de Rham comparison commutes with |
| 80 | model morphisms, including its change from Witt scalars to the |
| 81 | truncated coefficient ring. -/ |
| 82 | |
| 83 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 84 | |
| 85 | set_option backward.isDefEq.respectTransparency false |
| 86 | set_option backward.isDefEq.respectTransparency.types false |
| 87 | |
| 88 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] (n : ℕ) |
| 89 | {X₁ X₂ : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))} [Smooth X₁.hom] [Smooth X₂.hom] |
| 90 | {Y₁ Y₂ : Over (Spec (CommRingCat.of k))} |
| 91 | (u : X₁ ⟶ X₂) (v : Y₁ ⟶ Y₂) (f₁ : Y₁.left ⟶ X₁.left) (f₂ : Y₂.left ⟶ X₂.left) |
| 92 | (hp₁ : IsPullback f₁ Y₁.hom X₁.hom (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 93 | (hp₂ : IsPullback f₂ Y₂.hom X₂.hom (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 94 | (sq : f₁ ≫ u.left = v.left ≫ f₂) |
| 95 | |
| 96 | local notation "W" => WittVector p k |
| 97 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.Witt.Ring p k n |
| 98 | local notation "S" => Functor.op (OAI.AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.source (Over.Hom.left u)) |
| 99 | local notation "T" => Functor.op (OAI.AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.target (Over.Hom.left u)) |
| 100 | local notation "M" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismRings.transformation p k n u v f₁ f₂ hp₁ hp₂ sq |
| 101 | |
| 102 | def ordinaryMap : T ⋙ OrdinaryBaseIso.Ordinary.target p k n X₂ ⟶ |
| 103 | S ⋙ OrdinaryBaseIso.Ordinary.target p k n X₁ := |
| 104 | Functor.whiskerRight |
| 105 | (Functor.whiskerRight (Affine.AlgebraPullback.transformation R u) |
| 106 | (OrdinaryDeRhamFunctor.Ordinary.functor R)) |
| 107 | ((ModuleCat.restrictScalars (algebraMap W R)).mapHomologicalComplex (.up ℕ)) |
| 108 | |
| 109 | theorem base_component (U : (AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.Charts u.left)ᵒᵖ) : |
| 110 | OrdinaryDeRhamFunctor.Ordinary.map ((M).app U) ≫ |
| 111 | (OrdinaryBaseIso.Ordinary.component p k n X₁ Y₁ f₁ hp₁ (op U.unop.val.1)).hom = |
| 112 | (OrdinaryBaseIso.Ordinary.component p k n X₂ Y₂ f₂ hp₂ (op U.unop.val.2)).hom ≫ |
| 113 | (ordinaryMap p k n u).app U := by |
| 114 | apply HomologicalComplex.Hom.ext |
| 115 | funext degree |
| 116 | apply ModuleCat.hom_ext |
| 117 | apply LinearMap.ext |
| 118 | intro ω |
| 119 | exact Coordinates.forms_square p k n u v f₁ f₂ hp₁ hp₂ sq |
| 120 | U.unop degree ω |
| 121 | |
| 122 | theorem base_natural : |
| 123 | Functor.whiskerRight M (OrdinaryDeRhamFunctor.Ordinary.functor W) ≫ |
| 124 | Functor.whiskerLeft S (OrdinaryBaseIso.Ordinary.iso p k n X₁ Y₁ f₁ hp₁).hom = |
| 125 | Functor.whiskerLeft T (OrdinaryBaseIso.Ordinary.iso p k n X₂ Y₂ f₂ hp₂).hom ≫ |
| 126 | ordinaryMap p k n u := by |
| 127 | apply NatTrans.ext |
| 128 | funext U |
| 129 | exact base_component p k n u v f₁ f₂ hp₁ hp₂ sq U |
| 130 | |
| 131 | theorem natural : |
| 132 | MorphismPrincipal.Comparison.frameMap p k n u v f₁ f₂ hp₁ hp₂ sq ≫ |
| 133 | Functor.whiskerLeft S (OrdinaryBaseIso.Ordinary.pdIso p k n X₁ Y₁ f₁ hp₁).hom = |
| 134 | Functor.whiskerLeft T (OrdinaryBaseIso.Ordinary.pdIso p k n X₂ Y₂ f₂ hp₂).hom ≫ |
| 135 | ordinaryMap p k n u := by |
| 136 | let a := MorphismPrincipal.Comparison.frameMap p k n u v f₁ f₂ hp₁ hp₂ sq |
| 137 | let c₁ := Functor.whiskerLeft S (PrincipalComplex.Comparison.iso p k n X₁ Y₁ f₁ hp₁).hom |
| 138 | let c₂ := Functor.whiskerLeft T (PrincipalComplex.Comparison.iso p k n X₂ Y₂ f₂ hp₂).hom |
| 139 | let b₁ := Functor.whiskerLeft S (OrdinaryBaseIso.Ordinary.iso p k n X₁ Y₁ f₁ hp₁).hom |
| 140 | let b₂ := Functor.whiskerLeft T (OrdinaryBaseIso.Ordinary.iso p k n X₂ Y₂ f₂ hp₂).hom |
| 141 | let m := Functor.whiskerRight M (OrdinaryDeRhamFunctor.Ordinary.functor W) |
| 142 | change a ≫ (c₁ ≫ b₁) = (c₂ ≫ b₂) ≫ ordinaryMap p k n u |
| 143 | calc |
| 144 | a ≫ (c₁ ≫ b₁) = (a ≫ c₁) ≫ b₁ := (Category.assoc _ _ _).symm |
| 145 | _ = (c₂ ≫ m) ≫ b₁ := congrArg (fun z => z ≫ b₁) |
| 146 | (MorphismPrincipal.Comparison.natural p k n u v f₁ f₂ hp₁ hp₂ sq) |
| 147 | _ = c₂ ≫ (m ≫ b₁) := Category.assoc _ _ _ |
| 148 | _ = c₂ ≫ (b₂ ≫ ordinaryMap p k n u) := |
| 149 | congrArg (fun z => c₂ ≫ z) (base_natural p k n u v f₁ f₂ hp₁ hp₂ sq) |
| 150 | _ = (c₂ ≫ b₂) ≫ ordinaryMap p k n u := (Category.assoc _ _ _).symm |
| 151 | |
| 152 | end NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismBase.Comparison |
| 153 | |
| 154 | end |
| 155 | |
| 156 | end OAI |