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.Principal.FiniteEtaleTraceCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedAtOne |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.FormSheafDuality |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.InternalHom |
| 5 | |
| 6 | /-! # Finite Etale Form Tensor -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleFormTensor |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The tensor coordinates of the actual finite-etale form sheaf send |
| 13 | literal source differential symbols to their original coefficient |
| 14 | and target differential symbol at the unit principal open. -/ |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 16 | open scoped TensorProduct |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | universe u |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 22 | attribute [local instance] IntegralComparison.Finite.FlatCoefficientSections.quotientAlgebra IntegralComparison.Finite.FlatCoefficientSections.coefficientAlgebra IntegralComparison.Finite.FlatCoefficientSections.ambientAlgebra |
| 23 | variable (R : Type u) [CommRing R] |
| 24 | (X Y : Over (Spec (CommRingCat.of R))) (f : Y ⟶ X) |
| 25 | [IsFinite f.left] [Etale f.left] [IsProper X.hom] [Smooth X.hom] |
| 26 | {Z : Scheme.{u}} (i : X.left ⟶ Z) [IsClosedImmersion i] |
| 27 | local notation "M" => OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.FormSheafDuality.coefficients R Y X f |
| 28 | local notation "N" g => OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g |
| 29 | local notation "S" g => OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.FormSheafDuality.source R Y X f g |
| 30 | local instance coefficient_qc : (M).IsQuasicoherent := |
| 31 | FiniteEtale.FormSheafDuality.coefficient_qc R Y X f |
| 32 | |
| 33 | def coefficientIso (g : ℕ) : (Scheme.Modules.pushforward i).obj (S g) ≅ |
| 34 | ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule ((Scheme.Modules.pushforward i).obj M) |
| 35 | ((Scheme.Modules.pushforward i).obj (N g)) := |
| 36 | (Scheme.Modules.pushforward i).mapIso (FiniteEtale.FormSheafDuality.iso R Y X f g) ≪≫ |
| 37 | Closed.InternalHom.iso i M (N g) |
| 38 | |
| 39 | variable (U : Z.Opens) (hU : IsAffineOpen U) |
| 40 | (hgood : FiniteEtale.TraceBasis.Good R Y X f (i ⁻¹ᵁ U)) |
| 41 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U |
| 42 | private abbrev finiteRing : Type u := IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U |
| 43 | local notation "B" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleFormTensor.finiteRing (f := f) (i := i) (U := U) |
| 44 | local notation "P" g => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedScalars.modules i U hU (N g) |
| 45 | local notation "r₁" => op (OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AtOne.object U) |
| 46 | local instance targetBase : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) := |
| 47 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X (i ⁻¹ᵁ U) |
| 48 | local instance sourceBase : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 49 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R Y (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 50 | local instance baseTower : IsScalarTower R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 51 | AffineOpen.DeRhamTrace.sectionTower R Y X f (i ⁻¹ᵁ U) |
| 52 | private abbrev goodChart : FiniteEtale.TraceBasis.Index R Y X f := ⟨i ⁻¹ᵁ U, hgood⟩ |
| 53 | local notation "a₀" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleFormTensor.goodChart (f := f) (i := i) (U := U) (hgood := hgood) |
| 54 | local instance coordinate_order : LinearOrder |
| 55 | (FiniteEtale.TraceBasis.coordinateIndex R Y X f (goodChart R X Y f i U hgood)) := |
| 56 | FiniteEtale.TraceBasis.coordinateOrder R Y X f a₀ |
| 57 | |
| 58 | include hgood in |
| 59 | def iso (g : ℕ) : SectionPresheaf.modules U hU ((Scheme.Modules.pushforward i).obj (S g)) ≅ |
| 60 | FiniteEtale.PresheafTrace.tensor Q B (P g) ⋙ ModuleCat.restrictScalars (i.app U).hom := by |
| 61 | letI : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 62 | letI : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 63 | letI : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 64 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 65 | exact (ModuleFunctor.functor U hU).mapIso (coefficientIso R X Y f i g) ≪≫ |
| 66 | FiniteEtaleTraceCoordinates.iso f.left i U hU (N g) |
| 67 | |
| 68 | include hU in |
| 69 | theorem evaluation (g : ℕ) |
| 70 | (z : Γ((Scheme.Modules.pushforward i).obj |
| 71 | (FiniteEtale.FormSheafDuality.source R Y X f g), U)) |
| 72 | (x : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) : |
| 73 | ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomEvaluation.Construction.sheafHomEvalAtOpen ((Scheme.Modules.pushforward i).obj M) |
| 74 | ((Scheme.Modules.pushforward i).obj (N g)) U |
| 75 | ((coefficientIso R X Y f i g).hom.app U z) x = |
| 76 | Intrinsic.EtaleFormRestriction.localEquiv R Y X f a₀ g z x := by |
| 77 | let : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 78 | let : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 79 | let : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 80 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 81 | change ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomEvaluation.Construction.sheafHomEvalAtOpen _ _ U |
| 82 | ((Closed.InternalHom.iso i M (N g)).hom.app U |
| 83 | ((FiniteEtale.FormSheafDuality.iso R Y X f g).hom.app (i ⁻¹ᵁ U) z)) x = _ |
| 84 | rw [Closed.InternalHom.iso_app i M (N g) U hU, |
| 85 | Closed.InternalHom.evaluation i M (N g) U hU, |
| 86 | FiniteEtale.FormSheafDuality.iso_app R Y X f a₀ g] |
| 87 | exact FiniteEtale.FormSheafDuality.sectionEquiv_evaluation R Y X f a₀ g z x |
| 88 | |
| 89 | theorem pairing (g : ℕ) (x : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) : |
| 90 | letI : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 91 | letI : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 92 | letI : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 93 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 94 | (iso R X Y f i U hU hgood g).hom ≫ |
| 95 | (FiniteEtaleTraceCoordinates.forget i U).map |
| 96 | (FiniteEtale.PresheafTrace.pairing Q B (P g) x) ≫ |
| 97 | (ClosedScalars.restrictionIso i U hU (N g)).hom = |
| 98 | (ModuleFunctor.functor U hU).map (coefficientIso R X Y f i g).hom ≫ |
| 99 | HomEvaluation.map U hU ((Scheme.Modules.pushforward i).obj M) |
| 100 | ((Scheme.Modules.pushforward i).obj (N g)) x := by |
| 101 | let : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 102 | let : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 103 | let : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 104 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 105 | simpa only [iso, Iso.trans_hom, Functor.mapIso_hom, Category.assoc] using |
| 106 | congrArg (fun a => (ModuleFunctor.functor U hU).map |
| 107 | (coefficientIso R X Y f i g).hom ≫ a) |
| 108 | (FiniteEtaleTraceCoordinates.pairing f.left i U hU (N g) x) |
| 109 | |
| 110 | theorem atOne_evaluation (g : ℕ) |
| 111 | (z : Γ((Scheme.Modules.pushforward i).obj |
| 112 | (FiniteEtale.FormSheafDuality.source R Y X f g), U)) |
| 113 | (x : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) : |
| 114 | letI : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 115 | letI : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 116 | letI : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 117 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 118 | FiniteEtale.LineTrace.equiv Q B ((P g).obj r₁) |
| 119 | ((iso R X Y f i U hU hgood g).hom.app r₁ |
| 120 | (AtOne.equiv U ((Scheme.Modules.pushforward i).obj (S g)) z)) x = |
| 121 | ClosedAtOne.equiv i U (N g) |
| 122 | (Intrinsic.EtaleFormRestriction.localEquiv R Y X f a₀ g z x) := by |
| 123 | let : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 124 | let : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 125 | let : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 126 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 127 | have h := ConcreteCategory.congr_hom |
| 128 | (congrArg (fun a => a.app r₁) (pairing R X Y f i U hU hgood g x)) |
| 129 | (AtOne.equiv U ((Scheme.Modules.pushforward i).obj (S g)) z) |
| 130 | have hn := (ConcreteCategory.congr_hom |
| 131 | ((AtOne.iso U hU).hom.naturality (coefficientIso R X Y f i g).hom) z).symm |
| 132 | change ((ModuleFunctor.functor U hU).map (coefficientIso R X Y f i g).hom).app r₁ |
| 133 | (AtOne.equiv U ((Scheme.Modules.pushforward i).obj (S g)) z) = |
| 134 | AtOne.equiv U |
| 135 | (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule ((Scheme.Modules.pushforward i).obj M) |
| 136 | ((Scheme.Modules.pushforward i).obj (N g))) |
| 137 | ((coefficientIso R X Y f i g).hom.app U z) at hn |
| 138 | change FiniteEtale.LineTrace.equiv Q B ((P g).obj r₁) |
| 139 | ((iso R X Y f i U hU hgood g).hom.app r₁ |
| 140 | (AtOne.equiv U ((Scheme.Modules.pushforward i).obj (S g)) z)) x = |
| 141 | (HomEvaluation.map U hU ((Scheme.Modules.pushforward i).obj M) |
| 142 | ((Scheme.Modules.pushforward i).obj (N g)) x).app r₁ |
| 143 | (((ModuleFunctor.functor U hU).map (coefficientIso R X Y f i g).hom).app r₁ |
| 144 | (AtOne.equiv U ((Scheme.Modules.pushforward i).obj (S g)) z)) at h |
| 145 | rw [hn, HomEvaluation.atOne, evaluation R X Y f i U hU hgood] at h |
| 146 | exact h |
| 147 | |
| 148 | theorem unit (g : ℕ) (b : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) |
| 149 | (ω : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) g) : |
| 150 | (iso R X Y f i U hU hgood g).hom.app r₁ |
| 151 | (AtOne.equiv U ((Scheme.Modules.pushforward i).obj (S g)) |
| 152 | (Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 153 | (b • OrdinaryFormScalars.Ordinary.map R Q B g ω))) = |
| 154 | b ⊗ₜ[Q] ClosedAtOne.equiv i U (N g) |
| 155 | (Integral.FormSectionUnit.unit R X g (i ⁻¹ᵁ U) ω) := by |
| 156 | let : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 157 | let : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 158 | let : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 159 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 160 | let : Fact (IsAffineOpen (i ⁻¹ᵁ U)) := ⟨hgood.1⟩ |
| 161 | let : Algebra (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) |
| 162 | (AffineOpen.DeRhamTrace.sourceRing R Y X f (i ⁻¹ᵁ U)) := |
| 163 | AffineOpen.DeRhamTrace.sectionAlgebra R Y X f (i ⁻¹ᵁ U) |
| 164 | let : IsScalarTower R (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) |
| 165 | (AffineOpen.DeRhamTrace.sourceRing R Y X f (i ⁻¹ᵁ U)) := |
| 166 | AffineOpen.DeRhamTrace.sectionTower R Y X f (i ⁻¹ᵁ U) |
| 167 | let : Algebra.Etale (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) |
| 168 | (AffineOpen.DeRhamTrace.sourceRing R Y X f (i ⁻¹ᵁ U)) := |
| 169 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 170 | let : Module.Free (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) |
| 171 | (AffineOpen.DeRhamTrace.sourceRing R Y X f (i ⁻¹ᵁ U)) := hgood.2.2 |
| 172 | let : Module.Finite (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) |
| 173 | (AffineOpen.DeRhamTrace.sourceRing R Y X f (i ⁻¹ᵁ U)) := f.left.finite_app _ hgood.1 |
| 174 | let : Algebra (MvPolynomial (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) R) |
| 175 | (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) := |
| 176 | FiniteEtale.TraceBasis.polynomialAlgebra R Y X f a₀ |
| 177 | let : IsScalarTower R (MvPolynomial (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) R) |
| 178 | (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) := |
| 179 | FiniteEtale.TraceBasis.coordinateTower R Y X f a₀ |
| 180 | let : Algebra.Etale (MvPolynomial (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) R) |
| 181 | (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) := |
| 182 | FiniteEtale.TraceBasis.coordinateEtale R Y X f a₀ |
| 183 | let := AffineOpen.DeRhamTrace.polynomialSource R Y X f (i ⁻¹ᵁ U) |
| 184 | (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) |
| 185 | let := AffineOpen.DeRhamTrace.polynomialTower R Y X f (i ⁻¹ᵁ U) |
| 186 | (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) |
| 187 | let := AffineOpen.DeRhamTrace.polynomialBaseTower R Y X f (i ⁻¹ᵁ U) |
| 188 | (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) |
| 189 | let := AffineOpen.DeRhamTrace.sourceEtale R Y X f (i ⁻¹ᵁ U) |
| 190 | (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) |
| 191 | apply (FiniteEtale.LineTrace.equiv Q B ((P g).obj r₁)).injective |
| 192 | apply LinearMap.ext |
| 193 | intro x |
| 194 | rw [atOne_evaluation] |
| 195 | change ClosedAtOne.equiv i U (N g) |
| 196 | (Intrinsic.EtaleFormDuality.equiv R Y X f (i ⁻¹ᵁ U) |
| 197 | (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) g |
| 198 | (Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 199 | (b • OrdinaryFormScalars.Ordinary.map R Q B g ω)) x) = _ |
| 200 | rw [Intrinsic.EtaleFormDuality.equiv_unit] |
| 201 | erw [IntegralComparison.Etale.FormDualTrace.equiv_smul_map R |
| 202 | (AffineOpen.DeRhamTrace.targetRing R X (i ⁻¹ᵁ U)) |
| 203 | (AffineOpen.DeRhamTrace.sourceRing R Y X f (i ⁻¹ᵁ U)) |
| 204 | (FiniteEtale.TraceBasis.coordinateIndex R Y X f a₀) g b x ω] |
| 205 | rw [FiniteEtale.LineTrace.equiv_tmul] |
| 206 | exact ((ClosedAtOne.equiv i U (N g)).toLinearMap.comp |
| 207 | (Integral.FormSectionUnit.unit R X g (i ⁻¹ᵁ U))).map_smul |
| 208 | (Algebra.trace Q B (b*x)) ω |
| 209 | |
| 210 | end |
| 211 | |
| 212 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleFormTensor |