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.CartesianMaps |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Inverse |
| 3 | |
| 4 | /-! # Isomorphism -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Isomorphism |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: recognizing isomorphisms of crystalline thickenings |
| 12 | |
| 13 | The inverse is constructed as a divided-power ring map and checked over |
| 14 | the base and over X. The quotient-ring condition preserves the ideal. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite |
| 22 | |
| 23 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 24 | variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of B)} |
| 25 | variable {U V : BigCrystallineSite.Object p B J δ f} (α : U ⟶ V) |
| 26 | variable (hα : Function.Bijective α.ringMap) |
| 27 | variable (hq : Function.Injective (BigCrystallineSite.Object.quotientMap U V α.ringMap)) |
| 28 | |
| 29 | def inverseDP : DividedPowers.DPMorphism U.dividedPowers V.dividedPowers := |
| 30 | DividedPower.Inverse.inverse α.ringMap hα hq |
| 31 | |
| 32 | lemma inverseDP_comp : (inverseDP α hα hq).comp α.ringMap = |
| 33 | DividedPowers.DPMorphism.id V.dividedPowers := |
| 34 | DividedPower.Inverse.inverse_comp α.ringMap hα hq |
| 35 | |
| 36 | lemma comp_inverseDP : α.ringMap.comp (inverseDP α hα hq) = |
| 37 | DividedPowers.DPMorphism.id U.dividedPowers := |
| 38 | DividedPower.Inverse.comp_inverse α.ringMap hα hq |
| 39 | |
| 40 | private lemma inverse_quotient_comp : |
| 41 | (BigCrystallineSite.Object.quotientMap V U (inverseDP α hα hq)).comp (BigCrystallineSite.Object.quotientMap U V α.ringMap) = |
| 42 | RingHom.id (V.ring ⧸ V.ideal) := by |
| 43 | rw [← BigCrystallineSite.Object.quotientMap_comp, inverseDP_comp, BigCrystallineSite.Object.quotientMap_id] |
| 44 | |
| 45 | def inverseHom : V ⟶ U where |
| 46 | ringMap := inverseDP α hα hq |
| 47 | overBase := by |
| 48 | apply RingHom.ext |
| 49 | intro b |
| 50 | apply hα.injective |
| 51 | have he := DFunLike.congr_fun (comp_inverseDP α hα hq) (U.base b) |
| 52 | change α.ringMap ((inverseDP α hα hq) (U.base b)) = U.base b at he |
| 53 | exact he.trans (DFunLike.congr_fun α.overBase b).symm |
| 54 | overX := by |
| 55 | rw [← α.overX, ← Category.assoc, ← Spec.map_comp] |
| 56 | have he := congrArg (fun t => Spec.map (CommRingCat.ofHom t)) (inverse_quotient_comp α hα hq) |
| 57 | change Spec.map (CommRingCat.ofHom |
| 58 | ((BigCrystallineSite.Object.quotientMap V U (inverseDP α hα hq)).comp (BigCrystallineSite.Object.quotientMap U V α.ringMap))) ≫ |
| 59 | V.mapToX = V.mapToX |
| 60 | rw [he] |
| 61 | simp |
| 62 | |
| 63 | def iso : U ≅ V where |
| 64 | hom := α |
| 65 | inv := inverseHom α hα hq |
| 66 | hom_inv_id := by |
| 67 | apply BigCrystallineSite.Object.Hom.ext |
| 68 | exact comp_inverseDP α hα hq |
| 69 | inv_hom_id := by |
| 70 | apply BigCrystallineSite.Object.Hom.ext |
| 71 | exact inverseDP_comp α hα hq |
| 72 | |
| 73 | include hα hq in |
| 74 | lemma isIso_of_ring_bijective_quotient_injective : IsIso α := |
| 75 | (iso α hα hq).isIso_hom |
| 76 | |
| 77 | omit hα hq in |
| 78 | lemma isIso_of_cartesian [IsIso (BigCrystallineSite.Object.ambient.map α)] (h : BigCrystallineSite.Object.Cartesian α) : IsIso α := by |
| 79 | have hclosed : IsIso (BigCrystallineSite.Object.closed.map α) := h.isIso_fst_of_isIso |
| 80 | have : IsIso (Scheme.Spec.map (CommRingCat.ofHom α.ringMap.toRingHom).op) := |
| 81 | inferInstanceAs (IsIso (BigCrystallineSite.Object.ambient.map α)) |
| 82 | have hringop : IsIso (CommRingCat.ofHom α.ringMap.toRingHom).op := |
| 83 | isIso_of_reflects_iso _ Scheme.Spec |
| 84 | have hring : IsIso (CommRingCat.ofHom α.ringMap.toRingHom) := isIso_of_op _ |
| 85 | have : IsIso (Scheme.Spec.map (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap U V α.ringMap)).op) := hclosed |
| 86 | have hquotop : IsIso (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap U V α.ringMap)).op := |
| 87 | isIso_of_reflects_iso _ Scheme.Spec |
| 88 | have hquot : IsIso (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap U V α.ringMap)) := isIso_of_op _ |
| 89 | exact isIso_of_ring_bijective_quotient_injective α |
| 90 | (ConcreteCategory.bijective_of_isIso (CommRingCat.ofHom α.ringMap.toRingHom)) |
| 91 | (ConcreteCategory.bijective_of_isIso |
| 92 | (CommRingCat.ofHom (BigCrystallineSite.Object.quotientMap U V α.ringMap))).injective |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Isomorphism |