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.AlgebraicGeometry.FormalGeometry.Completion.GlobalDomainConnected |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.IntegralIdempotents |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.GlobalIdempotentExt |
| 4 | |
| 5 | /-! # Clopen Idempotents -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ClopenIdempotents.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: actual global idempotents for open-and-closed decompositions |
| 13 | |
| 14 | The characteristic function of an open-and-closed subscheme is constructed |
| 15 | in its actual global section ring by the sheaf product decomposition. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | /-- The complementary open subscheme of an open-and-closed subscheme. -/ |
| 27 | def clopenComplement {X : Scheme.{u}} (U : X.Opens) (hU : IsClosed (U : Set X)) : X.Opens := |
| 28 | ⟨(U : Set X)ᶜ, hU.isOpen_compl⟩ |
| 29 | |
| 30 | /-- The actual global section ring decomposes over complementary open subschemes. -/ |
| 31 | def clopenGlobalFunctionProductIso {X : Scheme.{u}} (U : X.Opens) (hU : IsClosed (U : Set X)) : |
| 32 | Γ(X, ⊤) ≅ CommRingCat.of (Γ(X, U) × Γ(X, clopenComplement U hU)) := by |
| 33 | have hu : U ⊔ clopenComplement U hU = ⊤ := by ext; simp [clopenComplement] |
| 34 | have hd : U ⊓ clopenComplement U hU = ⊥ := by ext; simp [clopenComplement] |
| 35 | exact X.presheaf.mapIso (eqToIso hu).op ≪≫ |
| 36 | (X.sheaf.isProductOfDisjoint U (clopenComplement U hU) hd).conePointUniqueUpToIso |
| 37 | (CommRingCat.prodFanIsLimit Γ(X, U) Γ(X, clopenComplement U hU)) |
| 38 | |
| 39 | /-- The first coordinate is restriction to the original open subscheme. -/ |
| 40 | theorem clopenGlobalFunctionProductIso_fst {X : Scheme.{u}} (U : X.Opens) |
| 41 | (hU : IsClosed (U : Set X)) : |
| 42 | (clopenGlobalFunctionProductIso U hU).hom ≫ |
| 43 | CommRingCat.ofHom (RingHom.fst Γ(X, U) Γ(X, clopenComplement U hU)) = |
| 44 | X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op := by |
| 45 | have hd : U ⊓ clopenComplement U hU = ⊥ := by ext; simp [clopenComplement] |
| 46 | have h := IsLimit.conePointUniqueUpToIso_hom_comp |
| 47 | (X.sheaf.isProductOfDisjoint U (clopenComplement U hU) hd) |
| 48 | (CommRingCat.prodFanIsLimit Γ(X, U) Γ(X, clopenComplement U hU)) ⟨WalkingPair.left⟩ |
| 49 | simp only [CommRingCat.prodFan, BinaryFan.π_app_left, BinaryFan.mk_fst] at h |
| 50 | dsimp [clopenGlobalFunctionProductIso] |
| 51 | rw [Category.assoc, h] |
| 52 | change X.presheaf.map _ ≫ X.presheaf.map _ = X.presheaf.map _ |
| 53 | rw [← Functor.map_comp] |
| 54 | congr 1 |
| 55 | |
| 56 | /-- The second coordinate is restriction to the complementary open subscheme. -/ |
| 57 | theorem clopenGlobalFunctionProductIso_snd {X : Scheme.{u}} (U : X.Opens) |
| 58 | (hU : IsClosed (U : Set X)) : |
| 59 | (clopenGlobalFunctionProductIso U hU).hom ≫ |
| 60 | CommRingCat.ofHom (RingHom.snd Γ(X, U) Γ(X, clopenComplement U hU)) = |
| 61 | X.presheaf.map (homOfLE (show clopenComplement U hU ≤ ⊤ from le_top)).op := by |
| 62 | have hd : U ⊓ clopenComplement U hU = ⊥ := by ext; simp [clopenComplement] |
| 63 | have h := IsLimit.conePointUniqueUpToIso_hom_comp |
| 64 | (X.sheaf.isProductOfDisjoint U (clopenComplement U hU) hd) |
| 65 | (CommRingCat.prodFanIsLimit Γ(X, U) Γ(X, clopenComplement U hU)) ⟨WalkingPair.right⟩ |
| 66 | simp only [CommRingCat.prodFan, BinaryFan.π_app_right, BinaryFan.mk_snd] at h |
| 67 | dsimp [clopenGlobalFunctionProductIso] |
| 68 | rw [Category.assoc, h] |
| 69 | change X.presheaf.map _ ≫ X.presheaf.map _ = X.presheaf.map _ |
| 70 | rw [← Functor.map_comp] |
| 71 | congr 1 |
| 72 | |
| 73 | /-- The actual global function equal to one on the clopen piece and zero on its complement. -/ |
| 74 | def clopenIndicator {X : Scheme.{u}} (U : X.Opens) (hU : IsClosed (U : Set X)) : Γ(X, ⊤) := |
| 75 | (clopenGlobalFunctionProductIso U hU).inv (1, 0) |
| 76 | |
| 77 | theorem clopenIndicator_isIdempotent {X : Scheme.{u}} (U : X.Opens) |
| 78 | (hU : IsClosed (U : Set X)) : IsIdempotentElem (clopenIndicator U hU) := by |
| 79 | have h : IsIdempotentElem ((1, 0) : Γ(X, U) × Γ(X, clopenComplement U hU)) := by |
| 80 | change (1, 0) * (1, 0) = (1, 0) |
| 81 | simp |
| 82 | exact h.map (clopenGlobalFunctionProductIso U hU).inv.hom |
| 83 | |
| 84 | /-- Restriction of the actual indicator to its clopen piece is one. -/ |
| 85 | theorem clopenIndicator_restrict {X : Scheme.{u}} (U : X.Opens) |
| 86 | (hU : IsClosed (U : Set X)) : |
| 87 | X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op (clopenIndicator U hU) = 1 := by |
| 88 | rw [← clopenGlobalFunctionProductIso_fst U hU] |
| 89 | simp [clopenIndicator] |
| 90 | |
| 91 | /-- Restriction of the actual indicator to its complement is zero. -/ |
| 92 | theorem clopenIndicator_restrict_complement {X : Scheme.{u}} (U : X.Opens) |
| 93 | (hU : IsClosed (U : Set X)) : |
| 94 | X.presheaf.map (homOfLE (show clopenComplement U hU ≤ ⊤ from le_top)).op |
| 95 | (clopenIndicator U hU) = 0 := by |
| 96 | rw [← clopenGlobalFunctionProductIso_snd U hU] |
| 97 | simp [clopenIndicator] |
| 98 | |
| 99 | /-- The nonzero locus of the actual idempotent is precisely the prescribed clopen piece. -/ |
| 100 | theorem clopenIndicator_basicOpen {X : Scheme.{u}} (U : X.Opens) |
| 101 | (hU : IsClosed (U : Set X)) : X.basicOpen (clopenIndicator U hU) = U := by |
| 102 | have h₁ := congrArg (fun s : Γ(X, U) => X.basicOpen s) (clopenIndicator_restrict U hU) |
| 103 | have h₀ := congrArg (fun s : Γ(X, clopenComplement U hU) => X.basicOpen s) |
| 104 | (clopenIndicator_restrict_complement U hU) |
| 105 | simp only [Scheme.basicOpen_res, Scheme.basicOpen_one] at h₁ |
| 106 | simp only [Scheme.basicOpen_res, Scheme.basicOpen_zero] at h₀ |
| 107 | apply le_antisymm |
| 108 | · intro x hx |
| 109 | by_contra hn |
| 110 | have hx' : x ∈ clopenComplement U hU ⊓ X.basicOpen (clopenIndicator U hU) := ⟨hn, hx⟩ |
| 111 | rw [h₀] at hx' |
| 112 | exact hx' |
| 113 | · exact inf_eq_left.mp h₁ |
| 114 | |
| 115 | /-- Pullback carries the actual indicator to the indicator of the inverse-image clopen piece. -/ |
| 116 | theorem clopenIndicator_pullback {X Y : Scheme.{u}} (f : X ⟶ Y) (U : Y.Opens) |
| 117 | (hU : IsClosed (U : Set Y)) : |
| 118 | f.appTop (clopenIndicator U hU) = |
| 119 | clopenIndicator (f ⁻¹ᵁ U) (hU.preimage f.continuous) := by |
| 120 | apply GlobalIdempotentExt.Construction.global_idempotent_ext ((clopenIndicator_isIdempotent U hU).map f.appTop.hom) |
| 121 | (clopenIndicator_isIdempotent _ _) |
| 122 | rw [← Scheme.preimage_basicOpen_top, clopenIndicator_basicOpen, clopenIndicator_basicOpen] |
| 123 | |
| 124 | /-- The actual indicator is zero exactly when its clopen piece is empty. -/ |
| 125 | theorem clopenIndicator_eq_zero_iff {X : Scheme.{u}} (U : X.Opens) |
| 126 | (hU : IsClosed (U : Set X)) : clopenIndicator U hU = 0 ↔ U = ⊥ := by |
| 127 | constructor |
| 128 | · intro h |
| 129 | rw [← clopenIndicator_basicOpen U hU, h, Scheme.basicOpen_zero] |
| 130 | · intro h |
| 131 | apply GlobalIdempotentExt.Construction.global_idempotent_ext (clopenIndicator_isIdempotent U hU) (by simp [IsIdempotentElem]) |
| 132 | simp [clopenIndicator_basicOpen, h] |
| 133 | |
| 134 | /-- The actual indicator is one exactly when its clopen piece is the whole scheme. -/ |
| 135 | theorem clopenIndicator_eq_one_iff {X : Scheme.{u}} (U : X.Opens) |
| 136 | (hU : IsClosed (U : Set X)) : clopenIndicator U hU = 1 ↔ U = ⊤ := by |
| 137 | constructor |
| 138 | · intro h |
| 139 | rw [← clopenIndicator_basicOpen U hU, h, Scheme.basicOpen_one] |
| 140 | · intro h |
| 141 | apply GlobalIdempotentExt.Construction.global_idempotent_ext (clopenIndicator_isIdempotent U hU) (by simp [IsIdempotentElem]) |
| 142 | simp [clopenIndicator_basicOpen, h] |
| 143 | |
| 144 | end |
| 145 | |
| 146 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ClopenIdempotents.Construction |