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.TruncatedModel.LocalIso |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.NilCommonReduction |
| 3 | |
| 4 | /-! # Local Equiv -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.LocalEquiv |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Two genuine affine smooth models of the same special open admit |
| 11 | an algebra isomorphism inducing the specified identity on that open. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 19 | (n : ℕ) |
| 20 | (X₁ X₂ : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 21 | [Smooth X₁.hom] [Smooth X₂.hom] |
| 22 | (Y : Over (Spec (CommRingCat.of k))) |
| 23 | (f₁ : Y.left ⟶ X₁.left) (f₂ : Y.left ⟶ X₂.left) |
| 24 | (hp₁ : IsPullback f₁ Y.hom X₁.hom |
| 25 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 26 | (hp₂ : IsPullback f₂ Y.hom X₂.hom |
| 27 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 28 | (U₁ : X₁.left.affineOpens) (U₂ : X₂.left.affineOpens) |
| 29 | (h : f₁ ⁻¹ᵁ U₁.val = f₂ ⁻¹ᵁ U₂.val) |
| 30 | |
| 31 | local notation "S" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.Witt.Ring p k n |
| 32 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.AffineModelFrame.sourceRing p k n X₁ U₁.val |
| 33 | local notation "B" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.AffineModelFrame.sourceRing p k n X₂ U₂.val |
| 34 | local notation "C" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.AffineModelFrame.targetRing p k n X₁ Y f₁ U₁.val |
| 35 | local notation "D" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.AffineModelFrame.targetRing p k n X₂ Y f₂ U₂.val |
| 36 | local notation "e" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.LocalIso.residueEquiv p k n X₁ X₂ Y f₁ f₂ U₁ U₂ h |
| 37 | |
| 38 | local instance sourceAlgebra₁ : Algebra S A := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra S X₁ U₁.val |
| 39 | local instance sourceAlgebra₂ : Algebra S B := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra S X₂ U₂.val |
| 40 | local instance residueAlgebra₁ : Algebra k C := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra k Y _ |
| 41 | local instance residueAlgebra₂ : Algebra k D := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra k Y _ |
| 42 | local instance residueBase : Algebra S k := (Truncated.Witt.reduction p k n).toAlgebra |
| 43 | local instance commonBase : Algebra S D := |
| 44 | AlgebraicGeometry.Crystalline.Cohomology.BaseAffine.ReductionRing.BaseAffineReductionRing.targetAlgebra S k X₂ Y f₂ U₂.val |
| 45 | local instance sourceSmooth₁ : Algebra.Smooth S A := |
| 46 | Truncated.AffineModelFrame.source_smooth p k n X₁ U₁.val U₁.property |
| 47 | local instance sourceSmooth₂ : Algebra.Smooth S B := |
| 48 | Truncated.AffineModelFrame.source_smooth p k n X₂ U₂.val U₂.property |
| 49 | |
| 50 | def leftReduction : A →ₐ[S] D where |
| 51 | __ := (e).toRingHom.comp (f₁.app U₁.val).hom |
| 52 | commutes' r := by |
| 53 | change e ((f₁.app U₁.val).hom (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap S X₁ U₁.val r)) = |
| 54 | algebraMap k D (Truncated.Witt.reduction p k n r) |
| 55 | rw [AlgebraicGeometry.Crystalline.Cohomology.BaseAffine.ReductionRing.BaseAffineReductionRing.base S k X₁ Y f₁ hp₁ U₁.val U₁.property] |
| 56 | exact (e).commutes _ |
| 57 | |
| 58 | def rightReduction : B →ₐ[S] D where |
| 59 | __ := (f₂.app U₂.val).hom |
| 60 | commutes' r := AlgebraicGeometry.Crystalline.Cohomology.BaseAffine.ReductionRing.BaseAffineReductionRing.base S k X₂ Y f₂ hp₂ U₂.val U₂.property r |
| 61 | |
| 62 | omit [Smooth X₁.hom] [Smooth X₂.hom] in |
| 63 | theorem left_surjective : Function.Surjective (leftReduction p k n X₁ X₂ Y f₁ f₂ hp₁ U₁ U₂ h) := |
| 64 | (e).surjective.comp |
| 65 | (Truncated.AffineModelFrame.reduction_surjective p k n X₁ Y f₁ hp₁ U₁.val U₁.property) |
| 66 | |
| 67 | omit [Smooth X₁.hom] [Smooth X₂.hom] in |
| 68 | theorem right_surjective : Function.Surjective (rightReduction p k n X₂ Y f₂ hp₂ U₂) := |
| 69 | Truncated.AffineModelFrame.reduction_surjective p k n X₂ Y f₂ hp₂ U₂.val U₂.property |
| 70 | |
| 71 | omit [Smooth X₁.hom] [Smooth X₂.hom] in |
| 72 | theorem left_kernel : |
| 73 | RingHom.ker (leftReduction p k n X₁ X₂ Y f₁ f₂ hp₁ U₁ U₂ h).toRingHom = |
| 74 | (Ideal.span {(p : S)}).map (algebraMap S A) := by |
| 75 | change RingHom.ker ((e).toRingHom.comp (f₁.app U₁.val).hom) = _ |
| 76 | rw [RingHom.ker_equiv_comp] |
| 77 | simpa only [Truncated.AffineModelFrame.reduction, Truncated.AffineModelFrame.sourceRing, |
| 78 | Ideal.map_span, Set.image_singleton, map_natCast] using |
| 79 | Truncated.AffineModelFrame.reduction_kernel p k n X₁ Y f₁ hp₁ U₁.val U₁.property |
| 80 | |
| 81 | omit [Smooth X₂.hom] in |
| 82 | theorem right_kernel : |
| 83 | RingHom.ker (rightReduction p k n X₂ Y f₂ hp₂ U₂).toRingHom = |
| 84 | (Ideal.span {(p : S)}).map (algebraMap S B) := by |
| 85 | simpa only [rightReduction, Truncated.AffineModelFrame.reduction, |
| 86 | Ideal.map_span, Set.image_singleton, map_natCast] using |
| 87 | Truncated.AffineModelFrame.reduction_kernel p k n X₂ Y f₂ hp₂ U₂.val U₂.property |
| 88 | |
| 89 | omit [Fintype k] [CharP k p] in |
| 90 | theorem base_nilpotent : IsNilpotent (Ideal.span {(p : S)}) := by |
| 91 | refine ⟨n + 1, ?_⟩ |
| 92 | exact (Ideal.span_singleton_pow (p : S) (n + 1)).trans |
| 93 | ((congrArg (fun a : S => Ideal.span {a}) (Truncated.Witt.prime_power_zero p k n)).trans |
| 94 | Ideal.span_singleton_zero) |
| 95 | |
| 96 | def equiv : A ≃ₐ[S] B := |
| 97 | IntegralComparison.Smooth.NilCommonReduction.equiv (Ideal.span {(p : S)}) (base_nilpotent p k n) |
| 98 | (leftReduction p k n X₁ X₂ Y f₁ f₂ hp₁ U₁ U₂ h) |
| 99 | (left_surjective p k n X₁ X₂ Y f₁ f₂ hp₁ U₁ U₂ h) |
| 100 | (left_kernel p k n X₁ X₂ Y f₁ f₂ hp₁ U₁ U₂ h) |
| 101 | (rightReduction p k n X₂ Y f₂ hp₂ U₂) |
| 102 | (right_surjective p k n X₂ Y f₂ hp₂ U₂) |
| 103 | (right_kernel p k n X₂ Y f₂ hp₂ U₂) |
| 104 | |
| 105 | theorem reduction_equiv (a : A) : |
| 106 | (f₂.app U₂.val).hom (equiv p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h a) = |
| 107 | LocalIso.Map.residueMap p k n X₁ X₂ Y f₁ f₂ U₁ U₂ h ((f₁.app U₁.val).hom a) := |
| 108 | IntegralComparison.Smooth.NilCommonReduction.reduction_equiv_apply (Ideal.span {(p : S)}) (base_nilpotent p k n) |
| 109 | (leftReduction p k n X₁ X₂ Y f₁ f₂ hp₁ U₁ U₂ h) |
| 110 | (left_surjective p k n X₁ X₂ Y f₁ f₂ hp₁ U₁ U₂ h) |
| 111 | (left_kernel p k n X₁ X₂ Y f₁ f₂ hp₁ U₁ U₂ h) |
| 112 | (rightReduction p k n X₂ Y f₂ hp₂ U₂) |
| 113 | (right_surjective p k n X₂ Y f₂ hp₂ U₂) |
| 114 | (right_kernel p k n X₂ Y f₂ hp₂ U₂) a |
| 115 | |
| 116 | def frameIso := LocalIso.iso p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h |
| 117 | (equiv p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h) |
| 118 | (reduction_equiv p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h) |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.LocalEquiv |