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.SeparatedAffineIntersection |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.PrescribedLift |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.PushoutExt |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite |
| 5 | |
| 6 | /-! # Separated Product Data -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductData |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # IntegralComparison: the closed quotient for products over a separated scheme |
| 14 | |
| 15 | The actual closed fiber product over X embeds in the closed fiber product |
| 16 | over the affine base. The latter is the residue of the divided-power |
| 17 | pushout. Thus the former is a proved quotient of that pushout. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite |
| 25 | |
| 26 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 27 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of B)) |
| 28 | variable (U V : BigCrystallineSite.Object p B J δ f) |
| 29 | |
| 30 | def Initial := by |
| 31 | letI := U.base.toAlgebra |
| 32 | letI := V.base.toAlgebra |
| 33 | exact DividedPower.PrescribedPushout.Initial B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 34 | |
| 35 | instance initialCommRing : CommRing (Initial f U V) := |
| 36 | @DividedPower.PrescribedPushout.initialCommRing B U.ring V.ring |
| 37 | inferInstance inferInstance inferInstance U.base.toAlgebra V.base.toAlgebra |
| 38 | U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 39 | |
| 40 | def initialIdeal : Ideal (Initial f U V) := by |
| 41 | letI := U.base.toAlgebra |
| 42 | letI := V.base.toAlgebra |
| 43 | exact DividedPower.PrescribedPushout.initialIdeal B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 44 | |
| 45 | def initialDP : DividedPowers (initialIdeal f U V) := by |
| 46 | letI := U.base.toAlgebra |
| 47 | letI := V.base.toAlgebra |
| 48 | exact DividedPower.PrescribedPushout.initialDP B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 49 | |
| 50 | def leftInitial : DividedPowers.DPMorphism U.dividedPowers (initialDP f U V) := by |
| 51 | letI := U.base.toAlgebra |
| 52 | letI := V.base.toAlgebra |
| 53 | exact DividedPower.PrescribedPushout.leftInitial B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 54 | |
| 55 | def rightInitial : DividedPowers.DPMorphism V.dividedPowers (initialDP f U V) := by |
| 56 | letI := U.base.toAlgebra |
| 57 | letI := V.base.toAlgebra |
| 58 | exact DividedPower.PrescribedPushout.rightInitial B U.ring V.ring U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 59 | |
| 60 | abbrev Residue := Initial f U V ⧸ initialIdeal f U V |
| 61 | |
| 62 | def leftResidue : U.ring ⧸ U.ideal →+* Residue f U V := |
| 63 | Ideal.quotientMap (initialIdeal f U V) (leftInitial f U V).toRingHom |
| 64 | (Ideal.map_le_iff_le_comap.mp (leftInitial f U V).ideal_comp) |
| 65 | |
| 66 | def rightResidue : V.ring ⧸ V.ideal →+* Residue f U V := |
| 67 | Ideal.quotientMap (initialIdeal f U V) (rightInitial f U V).toRingHom |
| 68 | (Ideal.map_le_iff_le_comap.mp (rightInitial f U V).ideal_comp) |
| 69 | |
| 70 | lemma base_pullback : IsPullback (Spec.map (CommRingCat.ofHom (leftResidue f U V))) |
| 71 | (Spec.map (CommRingCat.ofHom (rightResidue f U V))) (U.mapToX ≫ f) (V.mapToX ≫ f) := by |
| 72 | let := U.base.toAlgebra |
| 73 | let := V.base.toAlgebra |
| 74 | rw [U.overBase, V.overBase, ← Spec.map_comp, ← Spec.map_comp] |
| 75 | exact (DividedPower.PushoutResidue.schemePullback B U.ring V.ring |
| 76 | U.ideal U.dividedPowers V.ideal V.dividedPowers).flip |
| 77 | |
| 78 | abbrev ClosedRing : CommRingCat.{u} := |
| 79 | SeparatedAffineIntersection.CoordinateRing U.mapToX V.mapToX |
| 80 | |
| 81 | variable [IsSeparated f] |
| 82 | |
| 83 | def closedFst : Spec (ClosedRing f U V) ⟶ Spec (CommRingCat.of (U.ring ⧸ U.ideal)) := |
| 84 | SeparatedAffineIntersection.fst U.mapToX V.mapToX f |
| 85 | |
| 86 | def closedSnd : Spec (ClosedRing f U V) ⟶ Spec (CommRingCat.of (V.ring ⧸ V.ideal)) := |
| 87 | SeparatedAffineIntersection.snd U.mapToX V.mapToX f |
| 88 | |
| 89 | lemma closed_pullback : IsPullback (closedFst f U V) (closedSnd f U V) U.mapToX V.mapToX := |
| 90 | SeparatedAffineIntersection.isPullback U.mapToX V.mapToX f |
| 91 | |
| 92 | def embedding : Spec (ClosedRing f U V) ⟶ Spec (CommRingCat.of (Residue f U V)) := |
| 93 | SeparatedAffineIntersection.embedding U.mapToX V.mapToX f |
| 94 | (Spec.map (CommRingCat.ofHom (leftResidue f U V))) |
| 95 | (Spec.map (CommRingCat.ofHom (rightResidue f U V))) (base_pullback f U V) |
| 96 | |
| 97 | instance embedding_closed : IsClosedImmersion (embedding f U V) := |
| 98 | SeparatedAffineIntersection.embedding_closed U.mapToX V.mapToX f _ _ _ |
| 99 | |
| 100 | def residueReduction : Residue f U V →+* ClosedRing f U V := (Spec.preimage (embedding f U V)).hom |
| 101 | |
| 102 | lemma residueReduction_surjective : Function.Surjective (residueReduction f U V) := |
| 103 | SeparatedAffineIntersection.spec_preimage_surjective (embedding f U V) |
| 104 | |
| 105 | lemma residueReduction_left : (residueReduction f U V).comp (leftResidue f U V) = |
| 106 | (Spec.preimage (closedFst f U V)).hom := by |
| 107 | have he : CommRingCat.ofHom ((residueReduction f U V).comp (leftResidue f U V)) = |
| 108 | Spec.preimage (closedFst f U V) := by |
| 109 | apply Spec.map_injective |
| 110 | change Spec.map (CommRingCat.ofHom (leftResidue f U V) ≫ Spec.preimage (embedding f U V)) = _ |
| 111 | rw [Spec.map_comp, Spec.map_preimage, Spec.map_preimage] |
| 112 | exact SeparatedAffineIntersection.embedding_fst U.mapToX V.mapToX f _ _ _ |
| 113 | exact congrArg CommRingCat.Hom.hom he |
| 114 | |
| 115 | lemma residueReduction_right : (residueReduction f U V).comp (rightResidue f U V) = |
| 116 | (Spec.preimage (closedSnd f U V)).hom := by |
| 117 | have he : CommRingCat.ofHom ((residueReduction f U V).comp (rightResidue f U V)) = |
| 118 | Spec.preimage (closedSnd f U V) := by |
| 119 | apply Spec.map_injective |
| 120 | change Spec.map (CommRingCat.ofHom (rightResidue f U V) ≫ Spec.preimage (embedding f U V)) = _ |
| 121 | rw [Spec.map_comp, Spec.map_preimage, Spec.map_preimage] |
| 122 | exact SeparatedAffineIntersection.embedding_snd U.mapToX V.mapToX f _ _ _ |
| 123 | exact congrArg CommRingCat.Hom.hom he |
| 124 | |
| 125 | def reduction : DividedPowers.DPMorphism (initialDP f U V) (dividedPowersBot (ClosedRing f U V)) := |
| 126 | DividedPower.Transfer.mapToBot (initialDP f U V) |
| 127 | ((residueReduction f U V).comp (Ideal.Quotient.mk (initialIdeal f U V))) (by |
| 128 | intro x hx |
| 129 | change residueReduction f U V (Ideal.Quotient.mk (initialIdeal f U V) x) = 0 |
| 130 | rw [Ideal.Quotient.eq_zero_iff_mem.mpr hx, map_zero]) |
| 131 | |
| 132 | lemma reduction_surjective : Function.Surjective (reduction f U V) := |
| 133 | (residueReduction_surjective f U V).comp Ideal.Quotient.mk_surjective |
| 134 | |
| 135 | def leftReduction : DividedPowers.DPMorphism U.dividedPowers (dividedPowersBot (ClosedRing f U V)) := |
| 136 | (reduction f U V).comp (leftInitial f U V) |
| 137 | |
| 138 | def rightReduction : DividedPowers.DPMorphism V.dividedPowers (dividedPowersBot (ClosedRing f U V)) := |
| 139 | (reduction f U V).comp (rightInitial f U V) |
| 140 | |
| 141 | lemma reductions_agree : (leftReduction f U V).toRingHom.comp U.base = |
| 142 | (rightReduction f U V).toRingHom.comp V.base := by |
| 143 | let := U.base.toAlgebra |
| 144 | let := V.base.toAlgebra |
| 145 | apply RingHom.ext |
| 146 | intro b |
| 147 | exact congrArg (reduction f U V) |
| 148 | (DFunLike.congr_fun (DividedPower.Pushout.maps_agree B U.ring V.ring |
| 149 | U.ideal U.dividedPowers V.ideal V.dividedPowers) b) |
| 150 | |
| 151 | def prescribedReduction : DividedPowers.DPMorphism (initialDP f U V) |
| 152 | (dividedPowersBot (ClosedRing f U V)) := by |
| 153 | letI := U.base.toAlgebra |
| 154 | letI := V.base.toAlgebra |
| 155 | exact DividedPower.PrescribedPushout.initialReduction B U.ring V.ring |
| 156 | U.ideal U.dividedPowers V.ideal V.dividedPowers (ClosedRing f U V) |
| 157 | (leftReduction f U V) (rightReduction f U V) (reductions_agree f U V) |
| 158 | |
| 159 | lemma prescribedReduction_surjective : Function.Surjective (prescribedReduction f U V) := by |
| 160 | let := U.base.toAlgebra |
| 161 | let := V.base.toAlgebra |
| 162 | have he : reduction f U V = prescribedReduction f U V := |
| 163 | DividedPower.PushoutLift.lift_unique B U.ring V.ring |
| 164 | U.ideal U.dividedPowers V.ideal V.dividedPowers |
| 165 | (leftReduction f U V) (rightReduction f U V) (reductions_agree f U V) |
| 166 | (reduction f U V) rfl rfl |
| 167 | exact he ▸ reduction_surjective f U V |
| 168 | |
| 169 | end |
| 170 | |
| 171 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductData |