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.MorphismData |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Bounded.FrameSquare |
| 4 | |
| 5 | /-! # Morphism Diagram -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismDiagram |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual finite-level model maps commute with affine restriction and |
| 12 | give natural transformations on compatible pairs of charts. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] (n : ℕ) |
| 20 | {X₁ X₂ : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))} |
| 21 | [Smooth X₁.hom] [Smooth X₂.hom] |
| 22 | {Y₁ Y₂ : Over (Spec (CommRingCat.of k))} |
| 23 | (u : X₁ ⟶ X₂) (v : Y₁ ⟶ Y₂) (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 | (sq : f₁ ≫ u.left = v.left ≫ f₂) |
| 29 | |
| 30 | local notation "G" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.Equivalence.postcompose v.left |
| 31 | (MorphismData.Frames.ambient_over p k v) n |
| 32 | local notation "P" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.FrameFunctor.functor p k n X₁ Y₁ f₁ hp₁ |
| 33 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.FrameFunctor.functor p k n X₂ Y₂ f₂ hp₂ |
| 34 | |
| 35 | section Restriction |
| 36 | |
| 37 | variable (U U' : X₂.left.affineOpens) (V V' : X₁.left.affineOpens) |
| 38 | (hU : U ⟶ U') (hV : V ⟶ V') |
| 39 | (hu : V.val ≤ u.left ⁻¹ᵁ U.val) (hu' : V'.val ≤ u.left ⁻¹ᵁ U'.val) |
| 40 | |
| 41 | local notation "a" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismData.Frames.map p k n u v f₁ f₂ hp₁ hp₂ sq |
| 42 | U.val V.val U.property V.property hu |
| 43 | local notation "a'" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismData.Frames.map p k n u v f₁ f₂ hp₁ hp₂ sq |
| 44 | U'.val V'.val U'.property V'.property hu' |
| 45 | |
| 46 | theorem ring_square : ((P).map hV).hom.ringMap.toRingHom.comp (a').hom.ringMap.toRingHom = |
| 47 | (a).hom.ringMap.toRingHom.comp ((Q).map hU).hom.ringMap.toRingHom := by |
| 48 | ext x |
| 49 | change FrameFunctor.integralMap p k n X₁ V.val V'.val (leOfHom hV) |
| 50 | (MorphismData.integralMap p k n u U'.val V'.val hu' x) = |
| 51 | MorphismData.integralMap p k n u U.val V.val hu |
| 52 | (FrameFunctor.integralMap p k n X₂ U.val U'.val (leOfHom hU) x) |
| 53 | have hs := u.left.appLE_map hu' (homOfLE (leOfHom hV)).op |
| 54 | have ht := u.left.map_appLE hu (homOfLE (leOfHom hU)).op |
| 55 | exact ConcreteCategory.congr_hom (hs.trans ht.symm) x |
| 56 | |
| 57 | theorem natural : (G).map ((P).map hV) ≫ a' = a ≫ (Q).map hU := |
| 58 | GeometricComparison.Bounded.FrameSquare.BoundedGeometricFrameSquare.square v.left (MorphismData.Frames.ambient_over p k v) n |
| 59 | ((P).map hV) ((Q).map hU) a a' |
| 60 | (ring_square p k n u v f₁ f₂ hp₁ hp₂ sq U U' V V' hU hV hu hu') |
| 61 | |
| 62 | end Restriction |
| 63 | |
| 64 | def transformation : AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.source u.left ⋙ P ⋙ G ⟶ |
| 65 | AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.target u.left ⋙ Q where |
| 66 | app A := MorphismData.Frames.map p k n u v f₁ f₂ hp₁ hp₂ sq |
| 67 | A.val.2.val A.val.1.val A.val.2.property A.val.1.property A.property |
| 68 | naturality A D h := natural p k n u v f₁ f₂ hp₁ hp₂ sq |
| 69 | A.val.2 D.val.2 A.val.1 D.val.1 |
| 70 | ((AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.target u.left).map h) ((AlgebraicGeometry.Crystalline.Cohomology.Affine.MorphismPairs.AffineMorphismPairs.source u.left).map h) |
| 71 | A.property D.property |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.MorphismDiagram |