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.GlobalFunction.ResidueEvaluation |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.CrystallineFiniteness |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ResidueLiftingSurjectivity |
| 4 | |
| 5 | /-! # Crystalline Generation -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.GlobalFunction.CrystallineGeneration |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The canonical global-function classes generate original integral crystalline H⁰ in its original coefficient module. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | attribute [local instance] PeriodInvariants.WittAlgebraFunctor.wittAlgebra |
| 18 | |
| 19 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [Fintype k] [CharP k p] |
| 20 | (X : Over (Spec (CommRingCat.of k))) [IsProper X.hom] [Smooth X.hom] [Nonempty X.left] |
| 21 | (hprojective : Projectivity.Construction.ProjectiveOver k X.hom) |
| 22 | |
| 23 | local notation "W" => WittVector p k |
| 24 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := WittVector p k) |
| 25 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.GlobalFunctionAlgebra.algebra k X |
| 26 | local notation "M" => OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.Crystalline.integralCohomology p k X 0 |
| 27 | |
| 28 | def coefficientMap : Crystalline.EtaleSections.source (B := W) (WittVector p A) →ₗ[R] M := by |
| 29 | let := SmoothProper.GlobalFunctionWitt.etale p k X hprojective |
| 30 | exact (Global.Crystalline.Comparison.integralEquiv p k X 0).toLinearMap.comp |
| 31 | (Crystalline.EtaleSections.cohomologyMap (WittVector p A) |
| 32 | (WittFactor.factor k X p) (WittFactor.overBase k X p)) |
| 33 | |
| 34 | theorem coefficientMap_apply (w : WittVector p A) : |
| 35 | coefficientMap p k X hprojective (ULift.up w) = |
| 36 | SmoothProper.GlobalFunctionConstants.integralMap p k X hprojective w := rfl |
| 37 | |
| 38 | theorem residue_surjective : ∀ x : ZeroLevel.GlobalFunctionLinear.coefficientModule p k X, |
| 39 | ∃ w : Crystalline.EtaleSections.source (B := W) (WittVector p A), |
| 40 | SmoothProper.CrystallineResidueInjection.integralEvaluation p k X hprojective |
| 41 | (coefficientMap p k X hprojective w) = x := by |
| 42 | intro x |
| 43 | obtain ⟨w, hw⟩ := WittVector.constantCoeff_surjective («R» := A) p x.down |
| 44 | refine ⟨ULift.up w, ?_⟩ |
| 45 | have h₁ := congrArg (SmoothProper.CrystallineResidueInjection.integralEvaluation p k X hprojective) |
| 46 | (coefficientMap_apply p k X hprojective w) |
| 47 | have h₂ := ResidueEvaluation.evaluation p k X hprojective w |
| 48 | have h₃ : (ULift.up (w.coeff 0) : ZeroLevel.GlobalFunctionLinear.coefficientModule p k X) = x := by |
| 49 | apply ULift.ext |
| 50 | exact hw |
| 51 | exact h₁.trans (h₂.trans h₃) |
| 52 | |
| 53 | theorem lifts (x : M) : ∃ w : Crystalline.EtaleSections.source (B := W) (WittVector p A), |
| 54 | coefficientMap p k X hprojective w - x ∈ (Ideal.span {(p : R)}) • (⊤ : Submodule R M) := by |
| 55 | have hk := SmoothProper.CrystallineResidueInjection.integralEvaluation_kernel p k X hprojective |
| 56 | obtain ⟨w, hw⟩ := residue_surjective p k X hprojective |
| 57 | (SmoothProper.CrystallineResidueInjection.integralEvaluation p k X hprojective x) |
| 58 | refine ⟨w, ?_⟩ |
| 59 | rw [← hk, LinearMap.mem_ker, map_sub] |
| 60 | exact sub_eq_zero.mpr hw |
| 61 | |
| 62 | theorem coefficient_surjective : Function.Surjective (coefficientMap p k X hprojective) := by |
| 63 | have hs := lifts p k X hprojective |
| 64 | let : Module.Finite R M := SmoothProper.CrystallineFiniteness.integral_coefficient p k X hprojective 0 |
| 65 | let : IsAdicComplete (Ideal.span {(p : R)}) R := Witt.Coefficient.coefficient p k |
| 66 | exact @ResidueLiftingSurjectivity.surjective_of_lifts R inferInstance |
| 67 | (Crystalline.EtaleSections.source (B := W) (WittVector p A)) inferInstance inferInstance |
| 68 | M inferInstance inferInstance inferInstance |
| 69 | (Ideal.span {(p : R)}) (IsAdicComplete.le_jacobson_bot _) |
| 70 | (coefficientMap p k X hprojective) hs |
| 71 | |
| 72 | theorem surjective : Function.Surjective (SmoothProper.GlobalFunctionConstants.integralMap p k X hprojective) := by |
| 73 | intro x |
| 74 | obtain ⟨w, hw⟩ := coefficient_surjective p k X hprojective x |
| 75 | exact ⟨w.down, (coefficientMap_apply p k X hprojective w.down).symm.trans hw⟩ |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.NumberTheory.PadicHodge.IntegralComparison.GlobalFunction.CrystallineGeneration |