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.Crystalline.SeparatedProductGeometry |
| 2 | |
| 3 | /-! # Separated Product Lift -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductLift |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: the universal property of crystalline products over separated schemes |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductData |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductGeometry OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductRing |
| 19 | |
| 20 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 21 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of B)) [IsSeparated f] |
| 22 | variable (U V : BigCrystallineSite.Object p B J δ f) (hp : 0 < p) |
| 23 | variable {Z : BigCrystallineSite.Object p B J δ f} (γ : Z ⟶ U) (η : Z ⟶ V) |
| 24 | |
| 25 | def closedLift : Spec (CommRingCat.of (Z.ring ⧸ Z.ideal)) ⟶ Spec (SeparatedProductData.ClosedRing f U V) := |
| 26 | (SeparatedProductData.closed_pullback f U V).lift (BigCrystallineSite.Object.closed.map γ) (BigCrystallineSite.Object.closed.map η) (γ.overX.trans η.overX.symm) |
| 27 | |
| 28 | def quotientMap : SeparatedProductData.ClosedRing f U V →+* Z.ring ⧸ Z.ideal := (Spec.preimage (closedLift f U V γ η)).hom |
| 29 | |
| 30 | lemma quotientMap_spec : Spec.map (CommRingCat.ofHom (quotientMap f U V γ η)) = closedLift f U V γ η := |
| 31 | Spec.map_preimage _ |
| 32 | |
| 33 | lemma quotientMap_left : (quotientMap f U V γ η).comp (Spec.preimage (SeparatedProductData.closedFst f U V)).hom = |
| 34 | BigCrystallineSite.Object.quotientMap Z U γ.ringMap := by |
| 35 | have he := (congrArg (fun t => t ≫ SeparatedProductData.closedFst f U V) |
| 36 | (quotientMap_spec f U V γ η)).trans ((SeparatedProductData.closed_pullback f U V).lift_fst _ _ _) |
| 37 | rw [← Spec.map_preimage (SeparatedProductData.closedFst f U V), ← Spec.map_comp] at he |
| 38 | exact congrArg CommRingCat.Hom.hom (Spec.map_injective he) |
| 39 | |
| 40 | lemma quotientMap_right : (quotientMap f U V γ η).comp (Spec.preimage (SeparatedProductData.closedSnd f U V)).hom = |
| 41 | BigCrystallineSite.Object.quotientMap Z V η.ringMap := by |
| 42 | have he := (congrArg (fun t => t ≫ SeparatedProductData.closedSnd f U V) |
| 43 | (quotientMap_spec f U V γ η)).trans ((SeparatedProductData.closed_pullback f U V).lift_snd _ _ _) |
| 44 | rw [← Spec.map_preimage (SeparatedProductData.closedSnd f U V), ← Spec.map_comp] at he |
| 45 | exact congrArg CommRingCat.Hom.hom (Spec.map_injective he) |
| 46 | |
| 47 | lemma leftReduction_eq : (SeparatedProductData.leftReduction f U V).toRingHom = |
| 48 | (Spec.preimage (SeparatedProductData.closedFst f U V)).hom.comp (Ideal.Quotient.mk U.ideal) := by |
| 49 | apply RingHom.ext |
| 50 | intro x |
| 51 | exact DFunLike.congr_fun (SeparatedProductData.residueReduction_left f U V) (Ideal.Quotient.mk U.ideal x) |
| 52 | |
| 53 | lemma rightReduction_eq : (SeparatedProductData.rightReduction f U V).toRingHom = |
| 54 | (Spec.preimage (SeparatedProductData.closedSnd f U V)).hom.comp (Ideal.Quotient.mk V.ideal) := by |
| 55 | apply RingHom.ext |
| 56 | intro x |
| 57 | exact DFunLike.congr_fun (SeparatedProductData.residueReduction_right f U V) (Ideal.Quotient.mk V.ideal x) |
| 58 | |
| 59 | lemma quotientMap_fromLeft : (quotientMap f U V γ η).comp (SeparatedProductData.leftReduction f U V).toRingHom = |
| 60 | (Ideal.Quotient.mk Z.ideal).comp γ.ringMap.toRingHom := by |
| 61 | rw [leftReduction_eq, ← RingHom.comp_assoc, quotientMap_left] |
| 62 | rfl |
| 63 | |
| 64 | lemma quotientMap_fromRight : (quotientMap f U V γ η).comp (SeparatedProductData.rightReduction f U V).toRingHom = |
| 65 | (Ideal.Quotient.mk Z.ideal).comp η.ringMap.toRingHom := by |
| 66 | rw [rightReduction_eq, ← RingHom.comp_assoc, quotientMap_right] |
| 67 | rfl |
| 68 | |
| 69 | omit [IsSeparated f] in |
| 70 | lemma mapsBase : γ.ringMap.toRingHom.comp U.base = η.ringMap.toRingHom.comp V.base := |
| 71 | γ.overBase.trans η.overBase.symm |
| 72 | |
| 73 | def liftDP : DividedPowers.DPMorphism (SeparatedProductRing.dividedPowers f U V) Z.dividedPowers := by |
| 74 | letI := U.base.toAlgebra |
| 75 | letI := V.base.toAlgebra |
| 76 | exact DividedPower.PrescribedLift.lift B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 77 | (SeparatedProductData.ClosedRing f U V) (SeparatedProductData.leftReduction f U V) (SeparatedProductData.rightReduction f U V) (SeparatedProductData.reductions_agree f U V) |
| 78 | γ.ringMap η.ringMap (mapsBase f U V γ η) (quotientMap f U V γ η) |
| 79 | (quotientMap_fromLeft f U V γ η) (quotientMap_fromRight f U V γ η) |
| 80 | |
| 81 | lemma liftDP_left : (liftDP f U V γ η).comp (SeparatedProductRing.fstDP f U V) = γ.ringMap := by |
| 82 | let := U.base.toAlgebra |
| 83 | let := V.base.toAlgebra |
| 84 | exact DividedPower.PrescribedLift.lift_left B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 85 | (SeparatedProductData.ClosedRing f U V) (SeparatedProductData.leftReduction f U V) (SeparatedProductData.rightReduction f U V) (SeparatedProductData.reductions_agree f U V) |
| 86 | γ.ringMap η.ringMap (mapsBase f U V γ η) (quotientMap f U V γ η) |
| 87 | (quotientMap_fromLeft f U V γ η) (quotientMap_fromRight f U V γ η) |
| 88 | |
| 89 | lemma liftDP_right : (liftDP f U V γ η).comp (SeparatedProductRing.sndDP f U V) = η.ringMap := by |
| 90 | let := U.base.toAlgebra |
| 91 | let := V.base.toAlgebra |
| 92 | exact DividedPower.PrescribedLift.lift_right B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 93 | (SeparatedProductData.ClosedRing f U V) (SeparatedProductData.leftReduction f U V) (SeparatedProductData.rightReduction f U V) (SeparatedProductData.reductions_agree f U V) |
| 94 | γ.ringMap η.ringMap (mapsBase f U V γ η) (quotientMap f U V γ η) |
| 95 | (quotientMap_fromLeft f U V γ η) (quotientMap_fromRight f U V γ η) |
| 96 | |
| 97 | lemma liftDP_unique (l : DividedPowers.DPMorphism (SeparatedProductRing.dividedPowers f U V) Z.dividedPowers) |
| 98 | (hl : l.comp (SeparatedProductRing.fstDP f U V) = γ.ringMap) (hr : l.comp (SeparatedProductRing.sndDP f U V) = η.ringMap) : l = liftDP f U V γ η := by |
| 99 | let := U.base.toAlgebra |
| 100 | let := V.base.toAlgebra |
| 101 | exact DividedPower.PrescribedLift.lift_unique B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 102 | (SeparatedProductData.ClosedRing f U V) (SeparatedProductData.leftReduction f U V) (SeparatedProductData.rightReduction f U V) (SeparatedProductData.reductions_agree f U V) |
| 103 | γ.ringMap η.ringMap (mapsBase f U V γ η) (quotientMap f U V γ η) |
| 104 | (quotientMap_fromLeft f U V γ η) (quotientMap_fromRight f U V γ η) l hl hr |
| 105 | |
| 106 | private lemma quotient_comp : |
| 107 | (BigCrystallineSite.Object.quotientMap Z (SeparatedProductGeometry.object f U V hp) (liftDP f U V γ η)).comp |
| 108 | (BigCrystallineSite.Object.quotientMap (SeparatedProductGeometry.object f U V hp) U (SeparatedProductRing.fstDP f U V)) = BigCrystallineSite.Object.quotientMap Z U γ.ringMap := by |
| 109 | rw [← BigCrystallineSite.Object.quotientMap_comp, liftDP_left] |
| 110 | |
| 111 | def lift : Z ⟶ SeparatedProductGeometry.object f U V hp where |
| 112 | ringMap := liftDP f U V γ η |
| 113 | overBase := by |
| 114 | change ((liftDP f U V γ η).comp (SeparatedProductRing.fstDP f U V)).toRingHom.comp U.base = Z.base |
| 115 | rw [liftDP_left] |
| 116 | exact γ.overBase |
| 117 | overX := by |
| 118 | change Spec.map (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap Z (SeparatedProductGeometry.object f U V hp) (liftDP f U V γ η))) ≫ |
| 119 | (SeparatedProductGeometry.fstClosed f U V ≫ U.mapToX) = Z.mapToX |
| 120 | rw [← Category.assoc] |
| 121 | have hq : Spec.map (CommRingCat.ofHom |
| 122 | (BigCrystallineSite.Object.quotientMap Z (SeparatedProductGeometry.object f U V hp) (liftDP f U V γ η))) ≫ SeparatedProductGeometry.fstClosed f U V = |
| 123 | Spec.map (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap Z U γ.ringMap)) := by |
| 124 | change Spec.map (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap Z (SeparatedProductGeometry.object f U V hp) (liftDP f U V γ η))) ≫ |
| 125 | Spec.map (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap (SeparatedProductGeometry.object f U V hp) U (SeparatedProductRing.fstDP f U V))) = _ |
| 126 | rw [← Spec.map_comp] |
| 127 | exact congrArg (fun t => Spec.map (CommRingCat.ofHom t)) (quotient_comp f U V hp γ η) |
| 128 | rw [hq] |
| 129 | exact γ.overX |
| 130 | |
| 131 | lemma lift_fst : SeparatedProductLift.lift f U V hp γ η ≫ SeparatedProductGeometry.fst f U V hp = γ := by |
| 132 | apply BigCrystallineSite.Object.Hom.ext |
| 133 | exact liftDP_left f U V γ η |
| 134 | |
| 135 | lemma lift_snd : SeparatedProductLift.lift f U V hp γ η ≫ SeparatedProductGeometry.snd f U V hp = η := by |
| 136 | apply BigCrystallineSite.Object.Hom.ext |
| 137 | exact liftDP_right f U V γ η |
| 138 | |
| 139 | lemma lift_unique (l : Z ⟶ SeparatedProductGeometry.object f U V hp) (hl : l ≫ SeparatedProductGeometry.fst f U V hp = γ) (hr : l ≫ SeparatedProductGeometry.snd f U V hp = η) : |
| 140 | l = SeparatedProductLift.lift f U V hp γ η := by |
| 141 | apply BigCrystallineSite.Object.Hom.ext |
| 142 | exact liftDP_unique f U V γ η l.ringMap (congrArg (fun t : Z ⟶ U => t.ringMap) hl) |
| 143 | (congrArg (fun t : Z ⟶ V => t.ringMap) hr) |
| 144 | |
| 145 | omit γ η in |
| 146 | def fan : BinaryFan U V := BinaryFan.mk (SeparatedProductGeometry.fst f U V hp) (SeparatedProductGeometry.snd f U V hp) |
| 147 | |
| 148 | omit γ η in |
| 149 | def isProduct : IsLimit (fan f U V hp) := |
| 150 | BinaryFan.isLimitMk (fun s => SeparatedProductLift.lift f U V hp s.fst s.snd) |
| 151 | (fun s => SeparatedProductLift.lift_fst f U V hp s.fst s.snd) (fun s => SeparatedProductLift.lift_snd f U V hp s.fst s.snd) |
| 152 | (fun s l hl hr => lift_unique f U V hp s.fst s.snd l hl hr) |
| 153 | |
| 154 | end |
| 155 | |
| 156 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductLift |