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.ZeroLevel.FormFiniteness |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PD.BaseQuotientDifferential |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.ZeroIdeal |
| 4 | |
| 5 | /-! # De Rham Complex -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ZeroLevel.DeRhamComplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # IntegralComparison: the actual zeroth-level frame complex is the ordinary residue-field de Rham complex |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (p : ℕ) [Fact p.Prime] (k C : Type u) [Field k] [CommRing C] [Algebra k C] |
| 20 | |
| 21 | local notation "W" => WittVector p k |
| 22 | |
| 23 | attribute [local instance] FormFiniteness.residueAlgebra |
| 24 | FormFiniteness.ambientAlgebra FormFiniteness.coefficientTower |
| 25 | |
| 26 | def residuePDComplex : CochainComplex (ModuleCat.{u} W) ℕ := |
| 27 | ((ModuleCat.restrictScalars (WittVector.constantCoeff (p := p) (R := k))).mapHomologicalComplex |
| 28 | (ComplexShape.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.complex k C ⊥ (dividedPowersBot C)) |
| 29 | |
| 30 | def componentMap (n : ℕ) : ModuleCat.of W (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.Form W C ⊥ (dividedPowersBot C) n) ⟶ |
| 31 | (ModuleCat.restrictScalars (WittVector.constantCoeff (p := p) (R := k))).obj |
| 32 | (ModuleCat.of k (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.Form k C ⊥ (dividedPowersBot C) n)) := |
| 33 | ModuleCat.ofHom (X := ModuleCat.of W (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.Form W C ⊥ (dividedPowersBot C) n)) |
| 34 | (Y := (ModuleCat.restrictScalars (WittVector.constantCoeff (p := p) (R := k))).obj |
| 35 | (ModuleCat.of k (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.Form k C ⊥ (dividedPowersBot C) n))) |
| 36 | { toFun := PD.FormsBaseQuotientSymbols.formsEquiv W k C (WittVector.constantCoeff_surjective p) |
| 37 | ⊥ (dividedPowersBot C) n |
| 38 | map_add' := fun _ _ => map_add _ _ _ |
| 39 | map_smul' := by |
| 40 | intro r ω |
| 41 | let e := PD.FormsBaseQuotientSymbols.formsEquiv W k C (WittVector.constantCoeff_surjective p) |
| 42 | ⊥ (dividedPowersBot C) n |
| 43 | change e (r • ω) = WittVector.constantCoeff r • e ω |
| 44 | rw [← IsScalarTower.algebraMap_smul C r ω, map_smul, |
| 45 | ← IsScalarTower.algebraMap_smul C (WittVector.constantCoeff r) (e ω)] |
| 46 | rfl } |
| 47 | |
| 48 | def componentIso (n : ℕ) : ModuleCat.of W (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.Form W C ⊥ (dividedPowersBot C) n) ≅ |
| 49 | (ModuleCat.restrictScalars (WittVector.constantCoeff (p := p) (R := k))).obj |
| 50 | (ModuleCat.of k (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.Form k C ⊥ (dividedPowersBot C) n)) := |
| 51 | (LinearEquiv.ofBijective (componentMap p k C n).hom |
| 52 | (PD.FormsBaseQuotientSymbols.formsEquiv W k C (WittVector.constantCoeff_surjective p) |
| 53 | ⊥ (dividedPowersBot C) n).bijective).toModuleIso |
| 54 | |
| 55 | def pdComplexIso : AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.complex W C ⊥ (dividedPowersBot C) ≅ residuePDComplex p k C := |
| 56 | HomologicalComplex.Hom.isoOfComponents |
| 57 | (componentIso p k C) (by |
| 58 | intro n m hnm |
| 59 | change n + 1 = m at hnm |
| 60 | subst m |
| 61 | change (componentIso p k C n).hom ≫ |
| 62 | (ModuleCat.restrictScalars (WittVector.constantCoeff (p := p) (R := k))).map |
| 63 | ((AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.complex k C ⊥ (dividedPowersBot C)).d n (n + 1)) = |
| 64 | (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.complex W C ⊥ (dividedPowersBot C)).d n (n + 1) ≫ (componentIso p k C (n + 1)).hom |
| 65 | rw [PD.BaseQuotientDifferential.complex_d, PD.BaseQuotientDifferential.complex_d] |
| 66 | apply ModuleCat.hom_ext |
| 67 | apply LinearMap.ext |
| 68 | intro ω |
| 69 | exact (PD.BaseQuotientDifferential.differential W k C (WittVector.constantCoeff_surjective p) |
| 70 | ⊥ (dividedPowersBot C) n ω).symm) |
| 71 | |
| 72 | def residueComplex : CochainComplex (ModuleCat.{u} W) ℕ := |
| 73 | ((ModuleCat.restrictScalars (WittVector.constantCoeff (p := p) (R := k))).mapHomologicalComplex |
| 74 | (ComplexShape.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex k C) |
| 75 | |
| 76 | def complexIso : AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.complex W C ⊥ (dividedPowersBot C) ≅ residueComplex p k C := |
| 77 | pdComplexIso p k C ≪≫ |
| 78 | ((ModuleCat.restrictScalars (WittVector.constantCoeff (p := p) (R := k))).mapHomologicalComplex |
| 79 | (ComplexShape.up ℕ)).mapIso (AlgebraicGeometry.Crystalline.Cohomology.ZeroIdeal.ZeroIdealPDForms.complexIso k C).symm |
| 80 | |
| 81 | def frameComplexIso [Fintype k] [CharP k p] : |
| 82 | let U := LevelFrame.frame p k C |
| 83 | letI : Algebra W U.ring := U.base.toAlgebra |
| 84 | AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.complex W U.ring U.ideal U.dividedPowers ≅ residueComplex p k C := |
| 85 | complexIso p k C |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ZeroLevel.DeRhamComplex |