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.LocalPDNaturality |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.IncomingSectionReindex |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedSection.FamilyCoordinates |
| 4 | |
| 5 | /-! # Local Coordinates -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.LocalCoordinates.Comparison |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The local PD map and the incoming comparison use the same frame |
| 12 | map and the same canonical change of principal-open section family. -/ |
| 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 | private theorem replace_right {C : Type*} [Category C] {A B D E : C} |
| 20 | (u : A ⟶ B) (v : B ⟶ D) (r r' : D ⟶ E) (w : A ⟶ E) |
| 21 | (hr : r' = r) (h : u ≫ (v ≫ r') = w) : (u ≫ v) ≫ r = w := |
| 22 | (congrArg (fun q => (u ≫ v) ≫ q) hr.symm).trans ((Category.assoc _ _ _).trans h) |
| 23 | |
| 24 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 25 | (n : ℕ) |
| 26 | (X₁ X₂ : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 27 | [IsProper X₁.hom] [Smooth X₁.hom] [X₁.left.IsSeparated] |
| 28 | [IsProper X₂.hom] [Smooth X₂.hom] [X₂.left.IsSeparated] |
| 29 | (Y : Over (Spec (CommRingCat.of k))) [IsSeparated Y.hom] |
| 30 | (f₁ : Y.left ⟶ X₁.left) (f₂ : Y.left ⟶ X₂.left) |
| 31 | (hp₁ : IsPullback f₁ Y.hom X₁.hom |
| 32 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 33 | (hp₂ : IsPullback f₂ Y.hom X₂.hom |
| 34 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 35 | (U₁ : X₁.left.affineOpens) (U₂ : X₂.left.affineOpens) |
| 36 | (e : (SmallFrame.functor p k n X₂ Y f₂ hp₂).obj U₂ ≅ |
| 37 | (SmallFrame.functor p k n X₁ Y f₁ hp₁).obj U₁) |
| 38 | |
| 39 | local notation "K₂" => Functor.obj (OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.ResolutionDiagram.diagram p k n X₂ Y f₂ hp₂) (op U₂) |
| 40 | local notation "s" => NatIso.mapHomologicalComplex |
| 41 | (IncomingSectionReindex.sectionIso p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e) (ComplexShape.up ℕ) |
| 42 | local notation "H" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PrincipalCoefficientNaturality.restriction p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e |
| 43 | local notation "a" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PrincipalCoefficientNaturality.sourceIso p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e |
| 44 | local notation "w" => OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.Crystalline.wittStructureMap p k Y |
| 45 | |
| 46 | local instance globalSeparated : IsSeparated w := by |
| 47 | dsimp only [Witt.Crystalline.wittStructureMap] |
| 48 | infer_instance |
| 49 | |
| 50 | omit [IsProper X₁.hom] [X₁.left.IsSeparated] [IsProper X₂.hom] [X₂.left.IsSeparated] in |
| 51 | theorem frame_map : LocalPrincipal.Sections.baseMap p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e = |
| 52 | IncomingSectionHomotopy.frameMap p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e := rfl |
| 53 | |
| 54 | abbrev section_change := |
| 55 | BoundedSection.FamilyCoordinates.Family.comparison w n |
| 56 | (PrincipalFamilyIso.Family.reindex p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e) |
| 57 | (PrincipalSections.opens p k n X₁ Y f₁ U₁) |
| 58 | (PrincipalSections.opens p k n X₂ Y f₂ U₂) |
| 59 | (IncomingSectionReindex.family_eq p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e) |
| 60 | (PrincipalOpenFunctorEq.opens_eq p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e).symm K₂ |
| 61 | |
| 62 | abbrev pd_square := replace_right _ _ ((s).app K₂).hom _ _ |
| 63 | (section_change p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e) |
| 64 | (LocalPDNaturality.naturality p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ e) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.LocalCoordinates.Comparison |