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.SeparatedProductLift |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Small.CrystallineLocalization |
| 3 | |
| 4 | /-! # Crystalline Separated Product -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Small.CrystallineSeparatedProduct |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: products in the small crystalline site over a separated scheme |
| 12 | |
| 13 | The closed fibre product of affine opens of a separated X remains an affine |
| 14 | open. Thus the constructed big product is small, with the same universal |
| 15 | property, and the inclusion preserves binary products. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Site |
| 23 | |
| 24 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 25 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of B)) [IsSeparated f] |
| 26 | variable (U V : Crystalline.Site.AffineThickening p B J δ f) (hp : 0 < p) |
| 27 | |
| 28 | instance product_open : IsOpenImmersion |
| 29 | (Crystalline.SeparatedProductGeometry.object f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) hp).mapToX := by |
| 30 | let q : Spec (CommRingCat.of |
| 31 | (Crystalline.SeparatedProductRing.Ring f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) ⧸ |
| 32 | Crystalline.SeparatedProductRing.ideal f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V))) ⟶ |
| 33 | Spec (CommRingCat.of (U.ring ⧸ U.ideal)) := |
| 34 | Crystalline.SeparatedProductGeometry.fstClosed f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) |
| 35 | have hv : IsOpenImmersion (BigCrystallineSite.fromSmall.obj V).mapToX := V.isOpenImmersion |
| 36 | have hl : IsOpenImmersion |
| 37 | (Crystalline.SeparatedProductData.closedFst f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V)) := |
| 38 | MorphismProperty.of_isPullback |
| 39 | (Crystalline.SeparatedProductData.closed_pullback f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V)).flip hv |
| 40 | have hq : IsOpenImmersion q := by |
| 41 | change IsOpenImmersion (Crystalline.SeparatedProductGeometry.fstClosed f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V)) |
| 42 | rw [Crystalline.SeparatedProductGeometry.fstClosed_eq] |
| 43 | have he : Spec.map (CommRingCat.ofHom (Spec.preimage |
| 44 | (Crystalline.SeparatedProductData.closedFst f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V))).hom) = |
| 45 | Crystalline.SeparatedProductData.closedFst f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) := |
| 46 | Spec.map_preimage _ |
| 47 | rw [he] |
| 48 | infer_instance |
| 49 | exact @IsOpenImmersion.comp _ _ _ q U.openMap hq U.isOpenImmersion |
| 50 | |
| 51 | abbrev object : Crystalline.Site.AffineThickening p B J δ f := |
| 52 | CrystallineLocalization.smallOfBig |
| 53 | (Crystalline.SeparatedProductGeometry.object f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) hp) |
| 54 | |
| 55 | def fst : object f U V hp ⟶ U := |
| 56 | BigCrystallineSite.fromSmall.preimage (Crystalline.SeparatedProductGeometry.fst f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) hp) |
| 57 | |
| 58 | def snd : object f U V hp ⟶ V := |
| 59 | BigCrystallineSite.fromSmall.preimage (Crystalline.SeparatedProductGeometry.snd f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) hp) |
| 60 | |
| 61 | lemma map_fst : BigCrystallineSite.fromSmall.map (fst f U V hp) = |
| 62 | Crystalline.SeparatedProductGeometry.fst f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) hp := |
| 63 | Functor.map_preimage _ _ |
| 64 | |
| 65 | lemma map_snd : BigCrystallineSite.fromSmall.map (snd f U V hp) = |
| 66 | Crystalline.SeparatedProductGeometry.snd f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) hp := |
| 67 | Functor.map_preimage _ _ |
| 68 | |
| 69 | def fan : BinaryFan U V := BinaryFan.mk (fst f U V hp) (snd f U V hp) |
| 70 | |
| 71 | def isProduct : IsLimit (fan f U V hp) := by |
| 72 | apply isLimitOfReflectsOfMapIsLimit BigCrystallineSite.fromSmall |
| 73 | rw [map_fst, map_snd] |
| 74 | exact Crystalline.SeparatedProductLift.isProduct f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) hp |
| 75 | |
| 76 | include hp in |
| 77 | lemma hasBinaryProduct : HasBinaryProduct U V := HasLimit.mk ⟨fan f U V hp, isProduct f U V hp⟩ |
| 78 | |
| 79 | include hp in |
| 80 | lemma inclusion_preserves_product : PreservesLimit (pair U V) BigCrystallineSite.fromSmall := by |
| 81 | apply preservesLimit_of_preserves_limit_cone (isProduct f U V hp) |
| 82 | refine (isLimitMapConeBinaryFanEquiv BigCrystallineSite.fromSmall (fst f U V hp) (snd f U V hp)).symm ?_ |
| 83 | rw [map_fst, map_snd] |
| 84 | exact Crystalline.SeparatedProductLift.isProduct f (BigCrystallineSite.fromSmall.obj U) (BigCrystallineSite.fromSmall.obj V) hp |
| 85 | |
| 86 | include hp in |
| 87 | omit U V in |
| 88 | lemma hasBinaryProducts : HasBinaryProducts (Crystalline.Site.AffineThickening p B J δ f) := by |
| 89 | have (U V : Crystalline.Site.AffineThickening p B J δ f) : HasBinaryProduct U V := |
| 90 | hasBinaryProduct f U V hp |
| 91 | exact hasBinaryProducts_of_hasLimit_pair _ |
| 92 | |
| 93 | include hp in |
| 94 | omit U V in |
| 95 | lemma inclusion_preservesBinaryProducts : PreservesLimitsOfShape (Discrete WalkingPair) |
| 96 | (BigCrystallineSite.fromSmall (p := p) (B := B) (J := J) (δ := δ) (f := f)) where |
| 97 | preservesLimit {K} := by |
| 98 | have := inclusion_preserves_product f (K.obj ⟨WalkingPair.left⟩) (K.obj ⟨WalkingPair.right⟩) hp |
| 99 | exact preservesLimit_of_iso_diagram _ (diagramIsoPair K).symm |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Small.CrystallineSeparatedProduct |