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.PointedLocalEquiv |
| 2 | |
| 3 | /-! # Pointed Squares -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedSquares |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual pointed equivalence preserves the original reduction |
| 10 | and section maps as morphisms of section rings. -/ |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | |
| 15 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 16 | (n : ℕ) |
| 17 | (X₁ X₂ : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 18 | [Smooth X₁.hom] [Smooth X₂.hom] |
| 19 | (Y : Over (Spec (CommRingCat.of k))) |
| 20 | (f₁ : Y.left ⟶ X₁.left) (f₂ : Y.left ⟶ X₂.left) |
| 21 | (hp₁ : IsPullback f₁ Y.hom X₁.hom |
| 22 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 23 | (hp₂ : IsPullback f₂ Y.hom X₂.hom |
| 24 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 25 | (U₁ : X₁.left.affineOpens) (U₂ : X₂.left.affineOpens) |
| 26 | (h : f₁ ⁻¹ᵁ U₁.val = f₂ ⁻¹ᵁ U₂.val) |
| 27 | (s₁ : Spec (CommRingCat.of (Truncated.Witt.Ring p k n)) ⟶ X₁.left) |
| 28 | (hs₁ : s₁ ≫ X₁.hom = 𝟙 _) |
| 29 | (s₂ : Spec (CommRingCat.of (Truncated.Witt.Ring p k n)) ⟶ X₂.left) |
| 30 | (hs₂ : s₂ ≫ X₂.hom = 𝟙 _) |
| 31 | (s₀ : Spec (CommRingCat.of k) ⟶ Y.left) (hs₀ : s₀ ≫ Y.hom = 𝟙 _) |
| 32 | (hred₁ : s₀ ≫ f₁ = Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)) ≫ s₁) |
| 33 | (hred₂ : s₀ ≫ f₂ = Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)) ≫ s₂) |
| 34 | (h₁ : ⊤ ≤ s₁ ⁻¹ᵁ U₁.val) (h₂ : ⊤ ≤ s₂ ⁻¹ᵁ U₂.val) |
| 35 | |
| 36 | local notation "e" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedLocalEquiv.equiv |
| 37 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ |
| 38 | |
| 39 | theorem reduction_square : |
| 40 | CommRingCat.ofHom (e).toRingHom ≫ |
| 41 | f₂.appLE U₂.val (f₁ ⁻¹ᵁ U₁.val) h.le = f₁.app U₁.val := by |
| 42 | have hr : CommRingCat.ofHom (e).toRingHom ≫ f₂.app U₂.val = |
| 43 | f₁.app U₁.val ≫ Y.left.presheaf.map (eqToHom h.symm).op := by |
| 44 | ext a |
| 45 | exact PointedLocalEquiv.reduction_equiv |
| 46 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ a |
| 47 | rw [Scheme.Hom.appLE, ← Category.assoc, hr, Category.assoc, ← Functor.map_comp] |
| 48 | have hi : (eqToHom h.symm).op ≫ (homOfLE h.le).op = 𝟙 (op (f₁ ⁻¹ᵁ U₁.val)) := |
| 49 | Subsingleton.elim _ _ |
| 50 | rw [hi, CategoryTheory.Functor.map_id, Category.comp_id] |
| 51 | |
| 52 | theorem section_top_square : |
| 53 | CommRingCat.ofHom (e).toRingHom ≫ s₂.appLE U₂.val ⊤ h₂ = s₁.appLE U₁.val ⊤ h₁ := by |
| 54 | apply (cancel_mono (Scheme.ΓSpecIso (CommRingCat.of (Truncated.Witt.Ring p k n))).hom).1 |
| 55 | ext a |
| 56 | exact PointedLocalEquiv.section_equiv |
| 57 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ a |
| 58 | |
| 59 | theorem section_square : |
| 60 | CommRingCat.ofHom (e).toRingHom ≫ |
| 61 | s₂.appLE U₂.val (s₁ ⁻¹ᵁ U₁.val) |
| 62 | ((top_unique h₁).trans (top_unique h₂).symm).le = s₁.app U₁.val := by |
| 63 | have : IsIso (homOfLE h₁) := by |
| 64 | change IsIso (eqToHom (top_unique h₁).symm) |
| 65 | infer_instance |
| 66 | apply (cancel_mono |
| 67 | ((Spec (CommRingCat.of (Truncated.Witt.Ring p k n))).presheaf.map (homOfLE h₁).op)).1 |
| 68 | rw [Category.assoc, Scheme.Hom.appLE_map] |
| 69 | exact section_top_square |
| 70 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedSquares |