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 Mathlib.AlgebraicGeometry.Limits |
| 2 | import Mathlib.AlgebraicGeometry.Cover.Directed |
| 3 | |
| 4 | /-! # Open Pushout -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.Models.OpenPushout.Constructions.Foundations |
| 7 | |
| 8 | /-! Binary gluing along open subschemes. -/ |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable {W X Y : Scheme.{u}} (f : W ⟶ X) (g : W ⟶ Y) |
| 15 | [IsOpenImmersion f] [IsOpenImmersion g] |
| 16 | |
| 17 | theorem openPushout_inl_open : IsOpenImmersion (pushout.inl f g) := by |
| 18 | change IsOpenImmersion (colimit.ι (span f g) (some WalkingPair.left)) |
| 19 | infer_instance |
| 20 | |
| 21 | theorem openPushout_inr_open : IsOpenImmersion (pushout.inr f g) := by |
| 22 | change IsOpenImmersion (colimit.ι (span f g) (some WalkingPair.right)) |
| 23 | infer_instance |
| 24 | |
| 25 | theorem openPushout_covers (x : (pushout f g : Scheme)) : |
| 26 | (∃ a, pushout.inl f g a = x) ∨ (∃ b, pushout.inr f g b = x) := by |
| 27 | obtain ⟨i, y, hy⟩ := Scheme.IsLocallyDirected.ι_jointly_surjective (span f g) x |
| 28 | cases i with |
| 29 | | none => |
| 30 | left |
| 31 | refine ⟨f y, ?_⟩ |
| 32 | erw [← Scheme.Hom.comp_apply] |
| 33 | exact (congrArg (fun h : W ⟶ pushout f g ↦ h y) |
| 34 | (colimit.w (span f g) (WidePushoutShape.Hom.init WalkingPair.left))).trans hy |
| 35 | | some i => |
| 36 | cases i with |
| 37 | | left => exact Or.inl ⟨y, hy⟩ |
| 38 | | right => exact Or.inr ⟨y, hy⟩ |
| 39 | |
| 40 | theorem openPushout_intersection (x : X) (y : Y) : |
| 41 | pushout.inl f g x = pushout.inr f g y ↔ ∃ w, f w = x ∧ g w = y := by |
| 42 | constructor |
| 43 | · intro h |
| 44 | obtain ⟨k, a, b, w, ha, hb⟩ := |
| 45 | (Scheme.IsLocallyDirected.ι_eq_ι_iff (F := span f g)).mp h |
| 46 | cases a with |
| 47 | | id => cases b |
| 48 | | init => |
| 49 | cases b with |
| 50 | | init => exact ⟨w, ha, hb⟩ |
| 51 | · rintro ⟨w, rfl, rfl⟩ |
| 52 | simpa only [← Scheme.Hom.comp_apply] using |
| 53 | congrArg (fun h : W ⟶ pushout f g ↦ h w) (pushout.condition (f := f) (g := g)) |
| 54 | |
| 55 | theorem openPushout_isPullback : |
| 56 | IsPullback f g (pushout.inl f g) (pushout.inr f g) := by |
| 57 | let : IsOpenImmersion (pushout.inl f g) := openPushout_inl_open f g |
| 58 | let : IsOpenImmersion (pushout.inr f g) := openPushout_inr_open f g |
| 59 | apply IsOpenImmersion.isPullback f g (pushout.inl f g) (pushout.inr f g) |
| 60 | (pushout.condition (f := f) (g := g)).symm |
| 61 | ext y |
| 62 | change (∃ x, pushout.inl f g x = pushout.inr f g y) ↔ ∃ w, g w = y |
| 63 | constructor |
| 64 | · rintro ⟨x, h⟩ |
| 65 | obtain ⟨w, _, hw⟩ := (openPushout_intersection f g x y).mp h |
| 66 | exact ⟨w, hw⟩ |
| 67 | · rintro ⟨w, rfl⟩ |
| 68 | exact ⟨f w, (openPushout_intersection f g _ _).mpr ⟨w, rfl, rfl⟩⟩ |
| 69 | |
| 70 | variable {P : Scheme.{u}} (i : X ⟶ P) (j : Y ⟶ P) |
| 71 | [IsOpenImmersion i] [IsOpenImmersion j] |
| 72 | (hc : ∀ p : P, (∃ x, i x = p) ∨ (∃ y, j y = p)) |
| 73 | |
| 74 | def openPairObj : Bool → Scheme.{u} | false => X | true => Y |
| 75 | |
| 76 | def openPairMap : ∀ b, openPairObj (X := X) (Y := Y) b ⟶ P |
| 77 | | false => i |
| 78 | | true => j |
| 79 | |
| 80 | noncomputable def openPairCover : P.OpenCover := |
| 81 | Scheme.Cover.mkOfCovers Bool openPairObj (openPairMap i j) |
| 82 | (fun p ↦ by |
| 83 | rcases hc p with ⟨x, hx⟩ | ⟨y, hy⟩ |
| 84 | · exact ⟨false, x, hx⟩ |
| 85 | · exact ⟨true, y, hy⟩) |
| 86 | (fun b ↦ by cases b <;> assumption) |
| 87 | |
| 88 | omit [IsOpenImmersion f] [IsOpenImmersion g] in |
| 89 | theorem pullback_compatible {Q : Scheme.{u}} {i : X ⟶ P} {j : Y ⟶ P} |
| 90 | (h : IsPullback f g i j) (a : X ⟶ Q) (b : Y ⟶ Q) (hab : f ≫ a = g ≫ b) : |
| 91 | pullback.fst i j ≫ a = pullback.snd i j ≫ b := by |
| 92 | rw [← h.isoPullback_inv_fst, ← h.isoPullback_inv_snd, Category.assoc, Category.assoc, hab] |
| 93 | |
| 94 | include hc in |
| 95 | omit [IsOpenImmersion f] [IsOpenImmersion g] in |
| 96 | theorem openPair_isPushout (h : IsPullback f g i j) : IsPushout f g i j := by |
| 97 | let C := openPairCover i j hc |
| 98 | have compat (s : PushoutCocone f g) : ∀ a b : Bool, |
| 99 | pullback.fst (C.f a) (C.f b) ≫ |
| 100 | (show C.X a ⟶ s.pt from openPairMap s.inl s.inr a) = |
| 101 | pullback.snd (C.f a) (C.f b) ≫ |
| 102 | (show C.X b ⟶ s.pt from openPairMap s.inl s.inr b) := by |
| 103 | intro a b |
| 104 | cases a <;> cases b |
| 105 | · have he : pullback.fst i i = pullback.snd i i := |
| 106 | (cancel_mono i).mp pullback.condition |
| 107 | change pullback.fst i i ≫ s.inl = pullback.snd i i ≫ s.inl |
| 108 | rw [he] |
| 109 | · exact pullback_compatible f g h s.inl s.inr s.condition |
| 110 | · exact pullback_compatible g f h.flip s.inr s.inl s.condition.symm |
| 111 | · have he : pullback.fst j j = pullback.snd j j := |
| 112 | (cancel_mono j).mp pullback.condition |
| 113 | change pullback.fst j j ≫ s.inr = pullback.snd j j ≫ s.inr |
| 114 | rw [he] |
| 115 | let d (s : PushoutCocone f g) := C.glueMorphisms (openPairMap s.inl s.inr) (compat s) |
| 116 | apply IsPushout.of_isColimit (c := PushoutCocone.mk i j h.w) |
| 117 | refine PushoutCocone.IsColimit.mk h.w d ?_ ?_ ?_ |
| 118 | · intro s |
| 119 | exact C.ι_glueMorphisms _ (compat s) false |
| 120 | · intro s |
| 121 | exact C.ι_glueMorphisms _ (compat s) true |
| 122 | · intro s m hm₁ hm₂ |
| 123 | apply C.hom_ext |
| 124 | intro b |
| 125 | cases b |
| 126 | · exact hm₁.trans (C.ι_glueMorphisms _ (compat s) false).symm |
| 127 | · exact hm₂.trans (C.ι_glueMorphisms _ (compat s) true).symm |
| 128 | |
| 129 | end OAI.ArithmeticGeometry.Models.OpenPushout.Constructions.Foundations |