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.PadicFrameRestriction |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Smooth.WittFrameGenerators |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Frame.PostcompositionGenerators |
| 4 | |
| 5 | /-! # Frame Generators -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.FrameGenerators.IntrinsicPadicFrameGenerators |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A surjective generating family stated directly in the native global frame |
| 12 | ring, keeping quotient identifications out of subsequent categorical laws. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | variable (p : ℕ) [Fact p.Prime] |
| 17 | (X : Over (Spec (CommRingCat.of ℤ_[p]))) [Smooth X.hom] |
| 18 | (Y : Over (Spec (CommRingCat.of (ZMod p)))) (f : Y.left ⟶ X.left) |
| 19 | (hp : IsPullback f Y.hom X.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 20 | (n : ℕ) |
| 21 | |
| 22 | local instance padic (U : X.left.Opens) : Algebra ℤ_[p] (AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U) := |
| 23 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra ℤ_[p] X U |
| 24 | local instance witt (U : X.left.Opens) : Algebra (WittVector p (ZMod p)) (AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U) := |
| 25 | WittAlgebra.PadicWittAlgebra.algebra p (AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U) |
| 26 | local instance special (U : X.left.Opens) : Algebra (ZMod p) (AffineFrame.IntrinsicPadicAffineFrame.targetRing p X Y f U) := |
| 27 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra (ZMod p) Y (f ⁻¹ᵁ U) |
| 28 | |
| 29 | def localGenerators (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 30 | AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U → (AffineFrame.IntrinsicPadicAffineFrame.frame p X Y f hp U hU n).obj.ring := by |
| 31 | letI := AffineFrame.IntrinsicPadicAffineFrame.source_flat p X U hU |
| 32 | exact GeometricComparison.Smooth.WittFrameGenerators.SmoothWittFrameGenerators.generators p (ZMod p) |
| 33 | (AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U) (AffineFrame.IntrinsicPadicAffineFrame.targetRing p X Y f U) |
| 34 | (AffineFrame.IntrinsicPadicAffineFrame.reduction p X Y f U) |
| 35 | (AffineFrame.IntrinsicPadicAffineFrame.reduction_surjective p X Y f hp U hU) |
| 36 | (AffineFrame.IntrinsicPadicAffineFrame.reduction_kernel p X Y f hp U hU) |
| 37 | (AffineFrame.IntrinsicPadicAffineFrame.reduction_base p X Y f hp U) n |
| 38 | |
| 39 | theorem local_surjective (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 40 | Function.Surjective (localGenerators p X Y f hp n U hU) := by |
| 41 | let := AffineFrame.IntrinsicPadicAffineFrame.source_flat p X U hU |
| 42 | exact GeometricComparison.Smooth.WittFrameGenerators.SmoothWittFrameGenerators.surjective p (ZMod p) |
| 43 | (AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U) (AffineFrame.IntrinsicPadicAffineFrame.targetRing p X Y f U) |
| 44 | (AffineFrame.IntrinsicPadicAffineFrame.reduction p X Y f U) |
| 45 | (AffineFrame.IntrinsicPadicAffineFrame.reduction_surjective p X Y f hp U hU) |
| 46 | (AffineFrame.IntrinsicPadicAffineFrame.reduction_kernel p X Y f hp U hU) |
| 47 | (AffineFrame.IntrinsicPadicAffineFrame.reduction_base p X Y f hp U) n |
| 48 | |
| 49 | def postGenerators (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 50 | AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U → |
| 51 | (ChartImage.IntrinsicPadicOpenFrame.frame p X Y f hp U hU n).obj.ring := |
| 52 | GeometricComparison.Smooth.WittFrameGenerators.SmoothWittFrameGenerators.postcompose (ChartImage.IntrinsicPadicOpenFrame.chart p X Y f hp U hU) |
| 53 | (ChartImage.IntrinsicPadicOpenFrame.chart_over_witt p X Y f hp U hU) n |
| 54 | (AffineFrame.IntrinsicPadicAffineFrame.frame p X Y f hp U hU n) (localGenerators p X Y f hp n U hU) |
| 55 | |
| 56 | theorem post_surjective (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 57 | Function.Surjective (postGenerators p X Y f hp n U hU) := |
| 58 | GeometricComparison.Smooth.WittFrameGenerators.SmoothWittFrameGenerators.postcompose_surjective (ChartImage.IntrinsicPadicOpenFrame.chart p X Y f hp U hU) |
| 59 | (ChartImage.IntrinsicPadicOpenFrame.chart_over_witt p X Y f hp U hU) n |
| 60 | (AffineFrame.IntrinsicPadicAffineFrame.frame p X Y f hp U hU n) (localGenerators p X Y f hp n U hU) |
| 61 | (local_surjective p X Y f hp n U hU) |
| 62 | |
| 63 | def generators (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 64 | AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U → |
| 65 | (ChartImage.IntrinsicPadicOpenFrame.frame p X Y f hp U hU n).obj.ring := |
| 66 | Ideal.Quotient.mk ((Ideal.span {(p : AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U)}) ^ (n + 1)) |
| 67 | |
| 68 | theorem generators_eq_post (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 69 | generators p X Y f hp n U hU = postGenerators p X Y f hp n U hU := rfl |
| 70 | |
| 71 | theorem surjective (U : X.left.Opens) (hU : IsAffineOpen U) : |
| 72 | Function.Surjective (generators p X Y f hp n U hU) := |
| 73 | (generators_eq_post p X Y f hp n U hU).symm ▸ post_surjective p X Y f hp n U hU |
| 74 | |
| 75 | theorem local_map (U V : X.left.Opens) (hU : IsAffineOpen U) (hV : IsAffineOpen V) |
| 76 | (hUV : U ≤ V) (a : AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X V) : |
| 77 | (PadicFrameRestriction.IntrinsicPadicFrameRestriction.localMap p X Y f hp U V hU hV hUV n).hom.ringMap |
| 78 | (localGenerators p X Y f hp n V hV a) = |
| 79 | localGenerators p X Y f hp n U hU (FrameRestrictionData.IntrinsicPadicFrameRestrictionData.integralMap p X U V hUV a) := rfl |
| 80 | |
| 81 | theorem map (U V : X.left.Opens) (hU : IsAffineOpen U) (hV : IsAffineOpen V) |
| 82 | (hUV : U ≤ V) (a : AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X V) : |
| 83 | (PadicFrameRestriction.IntrinsicPadicFrameRestriction.map p X Y f hp U V hU hV hUV n).hom.ringMap |
| 84 | (generators p X Y f hp n V hV a) = |
| 85 | generators p X Y f hp n U hU (FrameRestrictionData.IntrinsicPadicFrameRestrictionData.integralMap p X U V hUV a) := by |
| 86 | rw [PadicFrameRestriction.IntrinsicPadicFrameRestriction.map_ringMap] |
| 87 | rfl |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.FrameGenerators.IntrinsicPadicFrameGenerators |