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.PointedSquares |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineSection.EquivCompatibility |
| 3 | |
| 4 | /-! # Pointed Restriction -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedRestriction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restrict the specified original pointed equivalence to a smaller |
| 11 | affine neighborhood and retain its native frame map and parameters. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | private theorem unrestricted_square {X₁ X₂ Y : Scheme} |
| 17 | (f₁ : Y ⟶ X₁) (f₂ : Y ⟶ X₂) (U₁ : X₁.Opens) (U₂ : X₂.Opens) |
| 18 | (h : f₁ ⁻¹ᵁ U₁ = f₂ ⁻¹ᵁ U₂) (φ : Γ(X₁, U₁) ⟶ Γ(X₂, U₂)) |
| 19 | (he : φ ≫ f₂.appLE U₂ (f₁ ⁻¹ᵁ U₁) h.le = f₁.app U₁) : |
| 20 | φ ≫ f₂.app U₂ = f₁.app U₁ ≫ Y.presheaf.map (eqToHom h.symm).op := by |
| 21 | have hh := congrArg (fun a => a ≫ Y.presheaf.map (eqToHom h.symm).op) he |
| 22 | have hi : (homOfLE h.le).op ≫ (eqToHom h.symm).op = 𝟙 (op (f₂ ⁻¹ᵁ U₂)) := |
| 23 | Subsingleton.elim _ _ |
| 24 | simpa only [Scheme.Hom.appLE, Category.assoc, ← Functor.map_comp, hi, |
| 25 | CategoryTheory.Functor.map_id, Category.comp_id] using hh |
| 26 | |
| 27 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 28 | (n : ℕ) |
| 29 | (X₁ X₂ : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) |
| 30 | [Smooth X₁.hom] [Smooth X₂.hom] |
| 31 | (Y : Over (Spec (CommRingCat.of k))) |
| 32 | (f₁ : Y.left ⟶ X₁.left) (f₂ : Y.left ⟶ X₂.left) |
| 33 | (hp₁ : IsPullback f₁ Y.hom X₁.hom |
| 34 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 35 | (hp₂ : IsPullback f₂ Y.hom X₂.hom |
| 36 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 37 | (U₁ : X₁.left.affineOpens) (U₂ : X₂.left.affineOpens) |
| 38 | (h : f₁ ⁻¹ᵁ U₁.val = f₂ ⁻¹ᵁ U₂.val) |
| 39 | (s₁ : Spec (CommRingCat.of (Truncated.Witt.Ring p k n)) ⟶ X₁.left) |
| 40 | (hs₁ : s₁ ≫ X₁.hom = 𝟙 _) |
| 41 | (s₂ : Spec (CommRingCat.of (Truncated.Witt.Ring p k n)) ⟶ X₂.left) |
| 42 | (hs₂ : s₂ ≫ X₂.hom = 𝟙 _) |
| 43 | (s₀ : Spec (CommRingCat.of k) ⟶ Y.left) (hs₀ : s₀ ≫ Y.hom = 𝟙 _) |
| 44 | (hred₁ : s₀ ≫ f₁ = Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)) ≫ s₁) |
| 45 | (hred₂ : s₀ ≫ f₂ = Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)) ≫ s₂) |
| 46 | (h₁ : ⊤ ≤ s₁ ⁻¹ᵁ U₁.val) (h₂ : ⊤ ≤ s₂ ⁻¹ᵁ U₂.val) |
| 47 | (V : X₁.left.affineOpens) (hVU : V.val ≤ U₁.val) |
| 48 | |
| 49 | local notation "S" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.Witt.Ring p k n |
| 50 | local notation "e" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedLocalEquiv.equiv |
| 51 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ |
| 52 | |
| 53 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffineSection.EquivCompatibility.Geometry |
| 54 | |
| 55 | def target : X₂.left.affineOpens := |
| 56 | ⟨AffineSection.EquivGeometry.targetOpen S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e V.val, |
| 57 | AffineSection.EquivGeometry.target_affine S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e V.val V.property hVU⟩ |
| 58 | |
| 59 | local notation "T" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedRestriction.target |
| 60 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU |
| 61 | |
| 62 | theorem target_le : (T).val ≤ U₂.val := |
| 63 | AffineSection.EquivGeometry.target_below S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e V.val |
| 64 | |
| 65 | def equiv := AffineSection.EquivGeometry.sectionEquiv S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e V.val hVU |
| 66 | |
| 67 | local notation "eV" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedRestriction.equiv |
| 68 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU |
| 69 | |
| 70 | theorem reduction : f₁ ⁻¹ᵁ V.val = f₂ ⁻¹ᵁ (T).val := |
| 71 | AffineSection.EquivReduction.Geometry.target_preimage S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e f₁ f₂ h |
| 72 | (PointedSquares.reduction_square |
| 73 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂) |
| 74 | V.val hVU |
| 75 | |
| 76 | local notation "hVred" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedRestriction.reduction |
| 77 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU |
| 78 | |
| 79 | theorem reduction_square : CommRingCat.ofHom (eV).toRingHom ≫ |
| 80 | f₂.appLE (T).val (f₁ ⁻¹ᵁ V.val) (hVred).le = f₁.app V.val := |
| 81 | AffineSection.EquivCompatibility.Geometry.section_compatibility S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e f₁ f₂ h |
| 82 | (PointedSquares.reduction_square |
| 83 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂) |
| 84 | V.val V.property hVU |
| 85 | |
| 86 | theorem reduction_equiv (a : Γ(X₁.left, V.val)) : |
| 87 | (f₂.app (T).val).hom ((eV) a) = |
| 88 | LocalIso.Map.residueMap p k n X₁ X₂ Y f₁ f₂ V T hVred ((f₁.app V.val).hom a) := |
| 89 | ConcreteCategory.congr_hom |
| 90 | (unrestricted_square f₁ f₂ V.val (T).val hVred (CommRingCat.ofHom (eV).toRingHom) |
| 91 | (reduction_square |
| 92 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU)) a |
| 93 | |
| 94 | def frameIso := LocalIso.iso p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ V T hVred eV |
| 95 | (reduction_equiv |
| 96 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU) |
| 97 | |
| 98 | local notation "iV" => OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedRestriction.frameIso |
| 99 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU |
| 100 | |
| 101 | theorem frameIso_ambient (a : Γ(X₁.left, V.val)) : (iV).hom.ambientMap a = (eV) a := rfl |
| 102 | |
| 103 | theorem restriction (a : Γ(X₁.left, U₁.val)) : |
| 104 | (eV) (X₁.left.presheaf.map (homOfLE hVU).op a) = |
| 105 | X₂.left.presheaf.map (homOfLE (target_le |
| 106 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU)).op ((e) a) := |
| 107 | AffineSection.EquivRestriction.Geometry.sectionEquiv_restriction S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e V.val hVU a |
| 108 | |
| 109 | theorem frameIso_restriction (a : Γ(X₁.left, U₁.val)) : |
| 110 | (iV).hom.ambientMap (X₁.left.presheaf.map (homOfLE hVU).op a) = |
| 111 | X₂.left.presheaf.map (homOfLE (target_le |
| 112 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU)).op |
| 113 | ((PointedLocalEquiv.frameIso |
| 114 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂).hom.ambientMap a) := |
| 115 | restriction |
| 116 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU a |
| 117 | |
| 118 | theorem section_preimage : s₁ ⁻¹ᵁ V.val = s₂ ⁻¹ᵁ (T).val := |
| 119 | AffineSection.EquivReduction.Geometry.target_preimage S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e s₁ s₂ |
| 120 | ((top_unique h₁).trans (top_unique h₂).symm) |
| 121 | (PointedSquares.section_square |
| 122 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂) |
| 123 | V.val hVU |
| 124 | |
| 125 | theorem target_contains (hV : ⊤ ≤ s₁ ⁻¹ᵁ V.val) : ⊤ ≤ s₂ ⁻¹ᵁ (T).val := by |
| 126 | rw [← section_preimage |
| 127 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU] |
| 128 | exact hV |
| 129 | |
| 130 | theorem section_square : CommRingCat.ofHom (eV).toRingHom ≫ |
| 131 | s₂.appLE (T).val (s₁ ⁻¹ᵁ V.val) |
| 132 | (section_preimage |
| 133 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU).le = s₁.app V.val := |
| 134 | AffineSection.EquivCompatibility.Geometry.section_compatibility S X₁ X₂ U₁.val U₂.val U₁.property U₂.property e s₁ s₂ |
| 135 | ((top_unique h₁).trans (top_unique h₂).symm) |
| 136 | (PointedSquares.section_square |
| 137 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂) |
| 138 | V.val V.property hVU |
| 139 | |
| 140 | theorem section_equiv (hV : ⊤ ≤ s₁ ⁻¹ᵁ V.val) (a : Γ(X₁.left, V.val)) : |
| 141 | Intrinsic.SectionEvaluation.evaluation S X₂ s₂ hs₂ (T).val |
| 142 | (target_contains |
| 143 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU hV) ((eV) a) = |
| 144 | Intrinsic.SectionEvaluation.evaluation S X₁ s₁ hs₁ V.val hV a := by |
| 145 | have hh := congrArg (fun m => m ≫ |
| 146 | (Spec (CommRingCat.of S)).presheaf.map (homOfLE hV).op) |
| 147 | (section_square |
| 148 | p k n X₁ X₂ Y f₁ f₂ hp₁ hp₂ U₁ U₂ h s₁ hs₁ s₂ hs₂ s₀ hs₀ hred₁ hred₂ h₁ h₂ V hVU) |
| 149 | rw [Category.assoc, Scheme.Hom.appLE_map] at hh |
| 150 | exact ConcreteCategory.congr_hom |
| 151 | (congrArg (fun m => m ≫ (Scheme.ΓSpecIso (CommRingCat.of S)).hom) hh) a |
| 152 | |
| 153 | end |
| 154 | |
| 155 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.PointedRestriction |