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.Truncated.SmoothFrame |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.BaseAffine.ReductionRing |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Smooth.IntegralFirstThreeSections |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.SectionBase |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.Equivalence |
| 6 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.OpenPresentation |
| 7 | |
| 8 | /-! # Affine Model Frame -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.AffineModelFrame |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Every actual affine open of a smooth finite-Witt-level model gives |
| 15 | a native frame on the original crystalline site of its special fiber. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 20 | (n : ℕ) (X : Over (Spec (CommRingCat.of (Witt.Ring p k n)))) [Smooth X.hom] |
| 21 | (Y : Over (Spec (CommRingCat.of k))) (f : Y.left ⟶ X.left) |
| 22 | (hp : IsPullback f Y.hom X.hom |
| 23 | (Spec.map (CommRingCat.ofHom (Witt.reduction p k n)))) |
| 24 | (U : X.left.Opens) (hU : IsAffineOpen U) |
| 25 | |
| 26 | local notation "W" => WittVector p k |
| 27 | local notation "S" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.Witt.Ring p k n |
| 28 | |
| 29 | abbrev sourceRing := Γ(X.left, U) |
| 30 | abbrev targetRing := Γ(Y.left, f ⁻¹ᵁ U) |
| 31 | |
| 32 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.AffineModelFrame.sourceRing p k n X U |
| 33 | local notation "C" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.AffineModelFrame.targetRing p k n X Y f U |
| 34 | |
| 35 | local instance residueBase : Algebra S k := (Witt.reduction p k n).toAlgebra |
| 36 | local instance sourceAlgebra : Algebra S A := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra S X U |
| 37 | local instance targetAlgebra : Algebra k C := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra k Y (f ⁻¹ᵁ U) |
| 38 | |
| 39 | omit [Fintype k] [CharP k p] in |
| 40 | include hU in |
| 41 | theorem source_smooth : Algebra.Smooth S A := |
| 42 | GeometricComparison.Smooth.IntegralFirstThreeSections.SmoothIntegralFirstThreeSections.algebra_smooth S X U hU |
| 43 | |
| 44 | def reduction : A →+* C := (f.app U).hom |
| 45 | |
| 46 | omit [Smooth X.hom] in |
| 47 | include hp hU in |
| 48 | theorem reduction_surjective : Function.Surjective (reduction p k n X Y f U) := |
| 49 | AlgebraicGeometry.Crystalline.Cohomology.BaseAffine.ReductionRing.BaseAffineReductionRing.surjective S k X Y f hp U hU (Witt.reduction_surjective p k n) |
| 50 | |
| 51 | omit [Smooth X.hom] in |
| 52 | include hp hU in |
| 53 | theorem reduction_kernel : RingHom.ker (reduction p k n X Y f U) = Ideal.span {(p : A)} := by |
| 54 | have hker : RingHom.ker (Witt.reduction p k n) = Ideal.span {(p : S)} := by |
| 55 | rw [Witt.reduction_kernel] |
| 56 | change (Ideal.span {(p : W)}).map (Witt.quotient p k n) = _ |
| 57 | rw [Ideal.map_span, Set.image_singleton, map_natCast] |
| 58 | have h := AlgebraicGeometry.Crystalline.Cohomology.BaseAffine.ReductionRing.BaseAffineReductionRing.kernel_principal S k X Y f hp U hU |
| 59 | (Witt.reduction_surjective p k n) (p : S) hker |
| 60 | simpa only [reduction, sourceRing, map_natCast] using h |
| 61 | |
| 62 | omit [Smooth X.hom] in |
| 63 | include hp hU in |
| 64 | theorem reduction_base (w : W) : |
| 65 | reduction p k n X Y f U (algebraMap S A (Witt.quotient p k n w)) = |
| 66 | algebraMap k C (WittVector.constantCoeff w) := |
| 67 | AlgebraicGeometry.Crystalline.Cohomology.BaseAffine.ReductionRing.BaseAffineReductionRing.base S k X Y f hp U hU (Witt.quotient p k n w) |
| 68 | |
| 69 | omit [Smooth X.hom] in |
| 70 | include hp hU in |
| 71 | theorem residue_affine : IsAffineOpen (f ⁻¹ᵁ U) := by |
| 72 | let : IsAffineHom f := MorphismProperty.of_isPullback hp.flip |
| 73 | (inferInstance : IsAffineHom (Spec.map (CommRingCat.ofHom (Witt.reduction p k n)))) |
| 74 | exact hU.preimage f |
| 75 | |
| 76 | def chart : Spec (CommRingCat.of C) ⟶ Y.left := (residue_affine p k n X Y f hp U hU).fromSpec |
| 77 | |
| 78 | instance chart_open : IsOpenImmersion (chart p k n X Y f hp U hU) := |
| 79 | IsAffineOpen.isOpenImmersion_fromSpec (residue_affine p k n X Y f hp U hU) |
| 80 | |
| 81 | omit [Smooth X.hom] in |
| 82 | theorem chart_over : chart p k n X Y f hp U hU ≫ Y.hom = |
| 83 | Spec.map (CommRingCat.ofHom (algebraMap k C)) := |
| 84 | AffineOpen.SectionBase.overBase k Y (f ⁻¹ᵁ U) (residue_affine p k n X Y f hp U hU) |
| 85 | |
| 86 | def localFrame : BoundedCrystalline.Site.Objects (p := p) |
| 87 | (J := Ideal.span {(p : W)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 88 | (Witt.Crystalline.wittStructureMap p k (Crystalline.Presentation.affineScheme k C)) n := by |
| 89 | letI := source_smooth p k n X U hU |
| 90 | exact SmoothFrame.boundedFrame p A C (reduction p k n X Y f U) |
| 91 | (reduction_surjective p k n X Y f hp U hU) (reduction_kernel p k n X Y f hp U hU) k n |
| 92 | (reduction_base p k n X Y f hp U hU) |
| 93 | |
| 94 | def frame : BoundedCrystalline.Site.Objects (p := p) |
| 95 | (J := Ideal.span {(p : W)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 96 | (Witt.Crystalline.wittStructureMap p k Y) n := |
| 97 | (BoundedOpen.Equivalence.postcompose (chart p k n X Y f hp U hU) |
| 98 | (Crystalline.OpenPresentation.overWitt p k C Y (chart p k n X Y f hp U hU) |
| 99 | (chart_over p k n X Y f hp U hU)) n).obj |
| 100 | (localFrame p k n X Y f hp U hU) |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.AffineModelFrame |