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.BigCrystallineSite |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Nilpotence |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Augmentation |
| 4 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Poincare |
| 5 | |
| 6 | /-! # Divided Coordinates -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.DividedCoordinates |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # IntegralComparison: adjoining divided coordinates in the original crystalline site |
| 14 | |
| 15 | Every original big crystalline object admits its actual free divided |
| 16 | coordinate extension. The extension has the same closed subscheme, its |
| 17 | projection has a zero section, and its relative divided de Rham complex |
| 18 | contracts onto the original ambient ring. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 22 | |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {p : ℕ} {B : Type u} [CommRing B] |
| 28 | {J : Ideal B} {δ : DividedPowers J} {X : Scheme.{u}} |
| 29 | {f : X ⟶ Spec (CommRingCat.of B)} (U : BigCrystallineSite.Object p B J δ f) (σ : Type u) |
| 30 | |
| 31 | local notation "G" => DividedPowerAlgebra U.ring (σ →₀ U.ring) |
| 32 | local notation "I" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.DividedPowers.MultivariableDividedPowers.ideal U.ring σ U.ideal |
| 33 | local notation "γ" => OAI.AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Powers.FreeRelativePowers.dividedPowers U.ring σ U.ideal U.dividedPowers |
| 34 | local notation "ε" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.Reduction.MultivariableReduction.augmentation U.ring σ |
| 35 | |
| 36 | def residueAugmentation : G ⧸ I →+* U.ring ⧸ U.ideal := |
| 37 | Ideal.quotientMap U.ideal (ε).toRingHom |
| 38 | (Ideal.map_le_iff_le_comap.mp |
| 39 | (AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Augmentation.FreeRelativeAugmentation.isDPMorphism U.ring σ U.ideal U.dividedPowers).ideal_comp) |
| 40 | |
| 41 | def residueInclusion : U.ring ⧸ U.ideal →+* G ⧸ I := |
| 42 | Ideal.quotientMap I (algebraMap U.ring G) |
| 43 | (Ideal.map_le_iff_le_comap.mp |
| 44 | (AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Powers.FreeRelativePowers.base_isDPMorphism U.ring σ U.ideal U.dividedPowers).ideal_comp) |
| 45 | |
| 46 | theorem residue_inclusion_augmentation : |
| 47 | (residueAugmentation U σ).comp (residueInclusion U σ) = RingHom.id _ := by |
| 48 | ext x |
| 49 | change Ideal.Quotient.mk U.ideal (ε (algebraMap U.ring G x)) = Ideal.Quotient.mk U.ideal x |
| 50 | rw [AlgHom.commutes, Algebra.algebraMap_self_apply] |
| 51 | |
| 52 | theorem residue_augmentation_inclusion : |
| 53 | (residueInclusion U σ).comp (residueAugmentation U σ) = RingHom.id _ := by |
| 54 | apply RingHom.ext |
| 55 | intro a |
| 56 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective a |
| 57 | change Ideal.Quotient.mk I (algebraMap U.ring G (ε x)) = Ideal.Quotient.mk I x |
| 58 | apply Ideal.Quotient.eq.mpr |
| 59 | rw [AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Augmentation.FreeRelativeAugmentation.ideal_eq_comap] |
| 60 | change ε (algebraMap U.ring G (ε x) - x) ∈ U.ideal |
| 61 | simp only [map_sub, AlgHom.commutes, Algebra.algebraMap_self_apply, sub_self, Ideal.zero_mem] |
| 62 | |
| 63 | theorem prime_nilpotent : IsNilpotent (p : G) := by |
| 64 | simpa only [map_natCast] using U.primeNilpotent.map (algebraMap U.ring G) |
| 65 | |
| 66 | def augmentationPD : DividedPowers.DPMorphism γ U.dividedPowers where |
| 67 | toRingHom := (ε).toRingHom |
| 68 | ideal_comp := (AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Augmentation.FreeRelativeAugmentation.isDPMorphism U.ring σ U.ideal U.dividedPowers).ideal_comp |
| 69 | dpow_comp := (AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Augmentation.FreeRelativeAugmentation.isDPMorphism U.ring σ U.ideal U.dividedPowers).dpow_comp |
| 70 | |
| 71 | theorem residue_spec_retraction : |
| 72 | (Spec.map (CommRingCat.ofHom (residueAugmentation U σ)) : |
| 73 | Spec (CommRingCat.of (U.ring ⧸ U.ideal)) ⟶ Spec (CommRingCat.of (G ⧸ I))) ≫ |
| 74 | Spec.map (CommRingCat.ofHom (residueInclusion U σ)) = 𝟙 _ := by |
| 75 | rw [← Spec.map_comp] |
| 76 | change Spec.map (CommRingCat.ofHom ((residueAugmentation U σ).comp |
| 77 | (residueInclusion U σ))) = 𝟙 _ |
| 78 | rw [residue_inclusion_augmentation] |
| 79 | exact Spec.map_id _ |
| 80 | |
| 81 | variable [Fact p.Prime] |
| 82 | |
| 83 | /-- This is an object of the original IntegralComparison site with the original geometric map. -/ |
| 84 | def object : BigCrystallineSite.Object p B J δ f where |
| 85 | ring := CommRingCat.of G |
| 86 | base := (algebraMap U.ring G).comp U.base |
| 87 | ideal := I |
| 88 | dividedPowers := γ |
| 89 | baseCompatible := (AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Powers.FreeRelativePowers.base_isDPMorphism U.ring σ U.ideal U.dividedPowers).comp |
| 90 | _ U.baseCompatible |
| 91 | primeNilpotent := prime_nilpotent U σ |
| 92 | nilIdeal := fun _ hx => DividedPower.Nilpotence.nilpotent_of_mem γ p |
| 93 | (Fact.out : p.Prime).pos (prime_nilpotent U σ) hx |
| 94 | mapToX := Spec.map (CommRingCat.ofHom (residueInclusion U σ)) ≫ U.mapToX |
| 95 | overBase := by |
| 96 | rw [Category.assoc, U.overBase, ← Category.assoc, ← Spec.map_comp] |
| 97 | rw [← Spec.map_comp, ← Spec.map_comp] |
| 98 | congr 1 |
| 99 | |
| 100 | def projection : object U σ ⟶ U where |
| 101 | ringMap := |
| 102 | { toRingHom := algebraMap U.ring G |
| 103 | ideal_comp := (AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Powers.FreeRelativePowers.base_isDPMorphism U.ring σ U.ideal U.dividedPowers).ideal_comp |
| 104 | dpow_comp := (AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Powers.FreeRelativePowers.base_isDPMorphism U.ring σ U.ideal U.dividedPowers).dpow_comp } |
| 105 | overBase := rfl |
| 106 | overX := rfl |
| 107 | |
| 108 | theorem augmentation_quotientMap : |
| 109 | BigCrystallineSite.Object.quotientMap U (object U σ) (augmentationPD U σ) = residueAugmentation U σ := rfl |
| 110 | |
| 111 | theorem object_mapToX : (object U σ).mapToX = |
| 112 | Spec.map (CommRingCat.ofHom (residueInclusion U σ)) ≫ U.mapToX := rfl |
| 113 | |
| 114 | theorem augmentation_overBase : (augmentationPD U σ).toRingHom.comp (object U σ).base = U.base := by |
| 115 | ext b |
| 116 | exact AlgHom.commutes ε (U.base b) |
| 117 | |
| 118 | theorem augmentation_overX : |
| 119 | Spec.map (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap U (object U σ) (augmentationPD U σ))) ≫ |
| 120 | (object U σ).mapToX = U.mapToX := by |
| 121 | rw [augmentation_quotientMap, object_mapToX, ← Category.assoc] |
| 122 | erw [residue_spec_retraction U σ] |
| 123 | exact Category.id_comp _ |
| 124 | |
| 125 | def zeroSection : U ⟶ object U σ where |
| 126 | ringMap := augmentationPD U σ |
| 127 | overBase := augmentation_overBase U σ |
| 128 | overX := augmentation_overX U σ |
| 129 | |
| 130 | theorem zeroSection_projection : zeroSection U σ ≫ projection U σ = 𝟙 U := by |
| 131 | apply BigCrystallineSite.Object.Hom.ext |
| 132 | ext x |
| 133 | exact AlgHom.commutes ε x |
| 134 | |
| 135 | instance relativeAlgebra : Algebra U.ring (object U σ).ring := |
| 136 | inferInstanceAs (Algebra U.ring G) |
| 137 | |
| 138 | /-- Relative PD Poincaré for the actual divided-coordinate extension. -/ |
| 139 | def homotopyEquiv [Fintype σ] : HomotopyEquiv |
| 140 | ((CochainComplex.single₀ (ModuleCat U.ring)).obj (ModuleCat.of U.ring U.ring)) |
| 141 | (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.complex U.ring (object U σ).ring (object U σ).ideal (object U σ).dividedPowers) := |
| 142 | AlgebraicGeometry.Crystalline.Cohomology.FreeRelative.Poincare.FreeRelativePoincare.homotopyEquiv U.ring σ U.ideal U.dividedPowers |
| 143 | |
| 144 | end |
| 145 | |
| 146 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.DividedCoordinates |