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.GeometricComparison.IntrinsicPadic.OpenFactor |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Bounded.AmbientMono |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Crystalline.BaseImage |
| 4 | import OAI.NumberTheory.PadicHodge.GeometricComparison.ProductMap |
| 5 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Affine.OpenProducts |
| 6 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Products |
| 7 | |
| 8 | /-! # Local Product -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.LocalProduct.IntrinsicPadicLocalProduct |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Over an object mapping into a native affine frame, intersecting another |
| 15 | chart with that open leaves its actual crystalline product unchanged. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site |
| 20 | variable (p : ℕ) [Fact p.Prime] |
| 21 | (X : Over (Spec (CommRingCat.of ℤ_[p]))) [Smooth X.hom] [X.left.IsSeparated] |
| 22 | (Y : Over (Spec (CommRingCat.of (ZMod p)))) [IsSeparated Y.hom] |
| 23 | (f : Y.left ⟶ X.left) |
| 24 | (hp : IsPullback f Y.hom X.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 25 | (n : ℕ) (V I : X.left.Opens) (hV : IsAffineOpen V) (hI : IsAffineOpen I) |
| 26 | |
| 27 | local notation "w" => OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y |
| 28 | local notation "FV" => OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.ChartImage.IntrinsicPadicOpenFrame.frame p X Y f hp V hV n |
| 29 | local notation "FI" => OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.ChartImage.IntrinsicPadicOpenFrame.frame p X Y f hp I hI n |
| 30 | local notation "FVI" => OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.ChartImage.IntrinsicPadicOpenFrame.frame p X Y f hp (V ⊓ I) (hV.inf hI) n |
| 31 | |
| 32 | local instance separated : IsSeparated w := by |
| 33 | dsimp only [IntegralComparison.Witt.Crystalline.wittStructureMap] |
| 34 | infer_instance |
| 35 | |
| 36 | def restriction : FVI ⟶ FV := |
| 37 | PadicFrameRestriction.IntrinsicPadicFrameRestriction.map p X Y f hp (V ⊓ I) V (hV.inf hI) hV inf_le_left n |
| 38 | |
| 39 | variable (T : IntegralComparison.BoundedCrystalline.Site.Objects (p := p) (J := Ideal.span {(p : WittVector p (ZMod p))}) |
| 40 | (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p (ZMod p)) |
| 41 | (IntegralComparison.Witt.Crystalline.wittStructureMap p (ZMod p) Y) n) |
| 42 | (τ : T ⟶ ChartImage.IntrinsicPadicOpenFrame.frame p X Y f hp I hI n) |
| 43 | |
| 44 | include τ in |
| 45 | omit [X.left.IsSeparated] in |
| 46 | theorem base_image : Set.range (FV ⨯ T).obj.mapToX ⊆ (f ⁻¹ᵁ (V ⊓ I) : Set Y.left) := by |
| 47 | have hv := Crystalline.BaseImage.CrystallineBaseImage.range_subset (prod.fst : FV ⨯ T ⟶ FV).hom |
| 48 | have hi := Crystalline.BaseImage.CrystallineBaseImage.range_subset ((prod.snd : FV ⨯ T ⟶ T) ≫ τ).hom |
| 49 | rw [FrameClosed.IntrinsicPadicFrameClosed.range] at hv hi |
| 50 | intro y hy |
| 51 | exact ⟨hv hy, hi hy⟩ |
| 52 | |
| 53 | def factor : FV ⨯ T ⟶ FVI := |
| 54 | ObjectProperty.homMk (OpenFactor.IntrinsicPadicOpenFactor.lift p X Y f hp n (V ⊓ I) V |
| 55 | (hV.inf hI) hV inf_le_left (FV ⨯ T).obj (prod.fst : FV ⨯ T ⟶ FV).hom |
| 56 | (base_image p X Y f hp n V I hV hI T τ)) |
| 57 | |
| 58 | theorem factor_comp : factor p X Y f hp n V I hV hI T τ ≫ restriction p X Y f hp n V I hV hI = |
| 59 | (prod.fst : FV ⨯ T ⟶ FV) := by |
| 60 | apply (IntegralComparison.BoundedCrystalline.Site.inclusion w n).map_injective |
| 61 | exact OpenFactor.IntrinsicPadicOpenFactor.lift_comp p X Y f hp n (V ⊓ I) V |
| 62 | (hV.inf hI) hV inf_le_left (FV ⨯ T).obj (prod.fst : FV ⨯ T ⟶ FV).hom |
| 63 | (base_image p X Y f hp n V I hV hI T τ) |
| 64 | |
| 65 | def iso : FVI ⨯ T ≅ FV ⨯ T := by |
| 66 | letI : Mono (restriction p X Y f hp n V I hV hI) := |
| 67 | Bounded.AmbientMono.BoundedAmbientMono.mono _ (OpenFactor.IntrinsicPadicOpenFactor.ambient_open p X Y f hp n |
| 68 | (V ⊓ I) V (hV.inf hI) hV inf_le_left) |
| 69 | exact ProductMap.ProductMapOfFactorization.iso (restriction p X Y f hp n V I hV hI) |
| 70 | (factor p X Y f hp n V I hV hI T τ) (factor_comp p X Y f hp n V I hV hI T τ) |
| 71 | |
| 72 | include τ in |
| 73 | theorem map_isIso : IsIso (prod.map (restriction p X Y f hp n V I hV hI) (𝟙 T)) := |
| 74 | (iso p X Y f hp n V I hV hI T τ).isIso_hom |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.LocalProduct.IntrinsicPadicLocalProduct |