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.Intrinsic.AffineReductionRing |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.WittAlgebra |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Smooth.IntegralFirstThreeSections |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothWitt.WittFrame |
| 5 | |
| 6 | /-! # Affine Frame -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.AffineFrame.IntrinsicPadicAffineFrame |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual affine sections of the integral model and its special fiber define |
| 13 | the original finite Witt crystalline frames. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | variable (p : ℕ) [Fact p.Prime] |
| 18 | local instance residueAlgebra : Algebra ℤ_[p] (ZMod p) := PadicInt.toZMod.toAlgebra |
| 19 | |
| 20 | variable (X : Over (Spec (CommRingCat.of ℤ_[p]))) [Smooth X.hom] |
| 21 | (Y : Over (Spec (CommRingCat.of (ZMod p)))) (f : Y.left ⟶ X.left) |
| 22 | (hp : IsPullback f Y.hom X.hom (Spec.map (CommRingCat.ofHom (PadicInt.toZMod : ℤ_[p] →+* ZMod p)))) |
| 23 | (U : X.left.Opens) (hU : IsAffineOpen U) |
| 24 | |
| 25 | abbrev sourceRing : Type := Γ(X.left, U) |
| 26 | abbrev targetRing : Type := Γ(Y.left, f ⁻¹ᵁ U) |
| 27 | |
| 28 | local notation "A" => OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.AffineFrame.IntrinsicPadicAffineFrame.sourceRing p X U |
| 29 | local notation "C" => OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.AffineFrame.IntrinsicPadicAffineFrame.targetRing p X Y f U |
| 30 | local notation "W" => WittVector p (ZMod p) |
| 31 | |
| 32 | local instance padicAlgebra : Algebra ℤ_[p] A := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra ℤ_[p] X U |
| 33 | local instance specialAlgebra : Algebra (ZMod p) C := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra (ZMod p) Y (f ⁻¹ᵁ U) |
| 34 | local instance wittAlgebra : Algebra W A := WittAlgebra.PadicWittAlgebra.algebra p A |
| 35 | |
| 36 | include hU in |
| 37 | theorem source_smooth : Algebra.Smooth W A := by |
| 38 | let : Algebra.Smooth ℤ_[p] A := GeometricComparison.Smooth.IntegralFirstThreeSections.SmoothIntegralFirstThreeSections.algebra_smooth ℤ_[p] X U hU |
| 39 | exact WittAlgebra.PadicWittAlgebra.smooth p A |
| 40 | |
| 41 | include hU in |
| 42 | theorem source_flat : Module.Flat W A := by |
| 43 | let : Algebra.Smooth W A := source_smooth p X U hU |
| 44 | infer_instance |
| 45 | |
| 46 | def reduction : A →+* C := (f.app U).hom |
| 47 | |
| 48 | include hp hU in |
| 49 | omit [Smooth X.hom] in |
| 50 | theorem reduction_surjective : Function.Surjective (reduction p X Y f U) := |
| 51 | Intrinsic.AffineReductionRing.IntrinsicAffineReductionRing.surjective ℤ_[p] (ZMod p) X Y f hp U hU |
| 52 | (ZMod.ringHom_surjective PadicInt.toZMod) |
| 53 | |
| 54 | include hp hU in |
| 55 | omit [Smooth X.hom] in |
| 56 | theorem reduction_kernel : RingHom.ker (reduction p X Y f U) = Ideal.span {(p : A)} := by |
| 57 | have h := Intrinsic.AffineReductionRing.IntrinsicAffineReductionRing.kernel_principal ℤ_[p] (ZMod p) X Y f hp U hU |
| 58 | (ZMod.ringHom_surjective PadicInt.toZMod) (p : ℤ_[p]) |
| 59 | (PadicInt.ker_toZMod.trans PadicInt.maximalIdeal_eq_span_p) |
| 60 | simpa only [reduction, sourceRing, map_natCast] using h |
| 61 | |
| 62 | include hp in |
| 63 | omit [Smooth X.hom] in |
| 64 | theorem reduction_base (w : W) : |
| 65 | reduction p X Y f U (algebraMap W A w) = algebraMap (ZMod p) C (WittVector.constantCoeff w) := |
| 66 | WittAlgebra.PadicWittAlgebra.reduction_base p A C (reduction p X Y f U) |
| 67 | (Intrinsic.AffineReductionRing.IntrinsicAffineReductionRing.base ℤ_[p] (ZMod p) X Y f hp U) w |
| 68 | |
| 69 | def frame (n : ℕ) := by |
| 70 | letI : Module.Flat W A := source_flat p X U hU |
| 71 | exact IntegralComparison.SmoothWitt.WittFrame.boundedFrame p (ZMod p) A C |
| 72 | (reduction p X Y f U) (reduction_surjective p X Y f hp U hU) |
| 73 | (reduction_kernel p X Y f hp U hU) (reduction_base p X Y f hp U) n |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicPadic.AffineFrame.IntrinsicPadicAffineFrame |