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.DivisorClass.Chern.Regular.LineSections |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.Regular.FunctionGluing |
| 3 | |
| 4 | /-! # Line Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Regular.LineGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Native structure-sheaf gluing constructs each regular bundle coordinate. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | |
| 19 | variable {X : Scheme} {ι : Type} {κ : Type*} (D : FunctionGluing.RegularLineCocycle X ι) |
| 20 | variable (U : κ → X.Opens) (s : ∀ a, LineSections.RegularLineSection D (U a)) |
| 21 | variable (hc : ∀ a b, LineSections.regularLineSectionRestrict D inf_le_left (s a) = |
| 22 | LineSections.regularLineSectionRestrict D inf_le_right (s b)) |
| 23 | |
| 24 | include hc in |
| 25 | theorem regularLineSectionCompatible_value (a b : κ) (i : ι) (W : X.Opens) |
| 26 | (hWa : W ≤ U a) (hWb : W ≤ U b) (hWi : W ≤ D.domain i) : |
| 27 | (s a).val i ⟨W, hWa, hWi⟩ = (s b).val i ⟨W, hWb, hWi⟩ := by |
| 28 | exact congrArg (fun t : LineSections.RegularLineSection D (U a ⊓ U b) => |
| 29 | t.val i ⟨W, le_inf hWa hWb, hWi⟩) (hc a b) |
| 30 | |
| 31 | include hc in |
| 32 | theorem exists_regularLineCoordinate_glue (i : ι) (W : X.Opens) |
| 33 | (hWU : W ≤ iSup U) (hWi : W ≤ D.domain i) : |
| 34 | ∃ g : Γ(X, W), ∀ a, FunctionGluing.regularRestriction inf_le_left g = |
| 35 | (s a).val i ⟨W ⊓ U a, inf_le_right, inf_le_left.trans hWi⟩ := by |
| 36 | apply FunctionGluing.exists_regularFunction_glue (fun a => W ⊓ U a) W (fun _ => inf_le_left) |
| 37 | · rw [← inf_iSup_eq, inf_eq_left.mpr hWU] |
| 38 | · intro a b |
| 39 | change FunctionGluing.regularRestriction inf_le_left ((s a).val i ⟨W ⊓ U a, inf_le_right, inf_le_left.trans hWi⟩) = |
| 40 | FunctionGluing.regularRestriction inf_le_right ((s b).val i ⟨W ⊓ U b, inf_le_right, inf_le_left.trans hWi⟩) |
| 41 | rw [(s a).property.1 i (W ⊓ U a) ((W ⊓ U a) ⊓ (W ⊓ U b)) |
| 42 | inf_le_right (inf_le_left.trans hWi) inf_le_left, |
| 43 | (s b).property.1 i (W ⊓ U b) ((W ⊓ U a) ⊓ (W ⊓ U b)) |
| 44 | inf_le_right (inf_le_left.trans hWi) inf_le_right] |
| 45 | exact regularLineSectionCompatible_value D U s hc a b i _ |
| 46 | (inf_le_left.trans inf_le_right) (inf_le_right.trans inf_le_right) |
| 47 | (inf_le_left.trans (inf_le_left.trans hWi)) |
| 48 | |
| 49 | def regularLineGluedCoordinate (i : ι) (W : X.Opens) |
| 50 | (hWU : W ≤ iSup U) (hWi : W ≤ D.domain i) : Γ(X, W) := |
| 51 | (exists_regularLineCoordinate_glue D U s hc i W hWU hWi).choose |
| 52 | |
| 53 | theorem regularLineGluedCoordinate_restrict (i : ι) (W : X.Opens) |
| 54 | (hWU : W ≤ iSup U) (hWi : W ≤ D.domain i) (a : κ) : |
| 55 | FunctionGluing.regularRestriction inf_le_left (regularLineGluedCoordinate D U s hc i W hWU hWi) = |
| 56 | (s a).val i ⟨W ⊓ U a, inf_le_right, inf_le_left.trans hWi⟩ := |
| 57 | (exists_regularLineCoordinate_glue D U s hc i W hWU hWi).choose_spec a |
| 58 | |
| 59 | end |
| 60 | |
| 61 | section |
| 62 | |
| 63 | /-! Glued regular coordinates respect native restriction and transition functions. -/ |
| 64 | |
| 65 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 66 | set_option backward.isDefEq.respectTransparency false |
| 67 | set_option backward.isDefEq.respectTransparency.types false |
| 68 | set_option backward.defeqAttrib.useBackward true |
| 69 | |
| 70 | variable {X : Scheme} {ι : Type} {κ : Type*} (D : FunctionGluing.RegularLineCocycle X ι) |
| 71 | variable (U : κ → X.Opens) (s : ∀ a, LineSections.RegularLineSection D (U a)) |
| 72 | variable (hc : ∀ a b, LineSections.regularLineSectionRestrict D inf_le_left (s a) = |
| 73 | LineSections.regularLineSectionRestrict D inf_le_right (s b)) |
| 74 | |
| 75 | theorem regularLineGluedCoordinate_naturality (i : ι) (W V : X.Opens) |
| 76 | (hWU : W ≤ iSup U) (hWi : W ≤ D.domain i) (hVW : V ≤ W) : |
| 77 | FunctionGluing.regularRestriction hVW (regularLineGluedCoordinate D U s hc i W hWU hWi) = |
| 78 | regularLineGluedCoordinate D U s hc i V (hVW.trans hWU) (hVW.trans hWi) := by |
| 79 | apply FunctionGluing.regularFunction_eq_of_restrictions (fun a => V ⊓ U a) V (fun _ => inf_le_left) |
| 80 | · rw [← inf_iSup_eq, inf_eq_left.mpr (hVW.trans hWU)] |
| 81 | · intro a |
| 82 | have hr : FunctionGluing.regularRestriction inf_le_left |
| 83 | (FunctionGluing.regularRestriction hVW (regularLineGluedCoordinate D U s hc i W hWU hWi)) = |
| 84 | FunctionGluing.regularRestriction (inf_le_inf_right (U a) hVW) |
| 85 | (FunctionGluing.regularRestriction inf_le_left (regularLineGluedCoordinate D U s hc i W hWU hWi)) := by |
| 86 | simp only [FunctionGluing.regularRestriction_comp] |
| 87 | rw [hr, regularLineGluedCoordinate_restrict, |
| 88 | (s a).property.1 i (W ⊓ U a) (V ⊓ U a) inf_le_right (inf_le_left.trans hWi) |
| 89 | (inf_le_inf_right (U a) hVW), regularLineGluedCoordinate_restrict] |
| 90 | |
| 91 | theorem regularLineGluedCoordinate_transition (i j : ι) (W : X.Opens) |
| 92 | (hWU : W ≤ iSup U) (hWi : W ≤ D.domain i) (hWj : W ≤ D.domain j) : |
| 93 | regularLineGluedCoordinate D U s hc j W hWU hWj = |
| 94 | (D.transition i j W hWi hWj : Γ(X, W)) * |
| 95 | regularLineGluedCoordinate D U s hc i W hWU hWi := by |
| 96 | apply FunctionGluing.regularFunction_eq_of_restrictions (fun a => W ⊓ U a) W (fun _ => inf_le_left) |
| 97 | · rw [← inf_iSup_eq, inf_eq_left.mpr hWU] |
| 98 | · intro a |
| 99 | rw [map_mul, D.restrict, regularLineGluedCoordinate_restrict, |
| 100 | regularLineGluedCoordinate_restrict] |
| 101 | exact (s a).property.2 i j (W ⊓ U a) inf_le_right |
| 102 | (inf_le_left.trans hWi) (inf_le_left.trans hWj) |
| 103 | |
| 104 | theorem regularLineGluedCoordinate_on_subopen (a : κ) (i : ι) (W : X.Opens) |
| 105 | (hWa : W ≤ U a) (hWi : W ≤ D.domain i) : |
| 106 | regularLineGluedCoordinate D U s hc i W (hWa.trans (le_iSup U a)) hWi = |
| 107 | (s a).val i ⟨W, hWa, hWi⟩ := by |
| 108 | have h := congrArg (FunctionGluing.regularRestriction (le_inf le_rfl hWa)) |
| 109 | (regularLineGluedCoordinate_restrict D U s hc i W (hWa.trans (le_iSup U a)) hWi a) |
| 110 | rw [FunctionGluing.regularRestriction_comp, FunctionGluing.regularRestriction_self, |
| 111 | (s a).property.1 i (W ⊓ U a) W inf_le_right (inf_le_left.trans hWi) |
| 112 | (le_inf le_rfl hWa)] at h |
| 113 | exact h |
| 114 | |
| 115 | end |
| 116 | |
| 117 | /-! Compatible regular-coordinate sections form a genuine sheaf of additive groups. -/ |
| 118 | |
| 119 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 120 | set_option backward.isDefEq.respectTransparency false |
| 121 | set_option backward.isDefEq.respectTransparency.types false |
| 122 | set_option backward.defeqAttrib.useBackward true |
| 123 | |
| 124 | variable {X : Scheme} {ι : Type} (D : FunctionGluing.RegularLineCocycle X ι) |
| 125 | |
| 126 | theorem exists_regularLineSection_glue {κ : Type*} (U : κ → X.Opens) |
| 127 | (s : ∀ a, LineSections.RegularLineSection D (U a)) |
| 128 | (hc : ∀ a b, LineSections.regularLineSectionRestrict D inf_le_left (s a) = |
| 129 | LineSections.regularLineSectionRestrict D inf_le_right (s b)) : |
| 130 | ∃ g : LineSections.RegularLineSection D (iSup U), |
| 131 | ∀ a, LineSections.regularLineSectionRestrict D (le_iSup U a) g = s a := by |
| 132 | let g : LineSections.RegularLineSection D (iSup U) := |
| 133 | ⟨fun i W => regularLineGluedCoordinate D U s hc i W.val W.property.1 W.property.2, |
| 134 | ⟨regularLineGluedCoordinate_naturality D U s hc, |
| 135 | regularLineGluedCoordinate_transition D U s hc⟩⟩ |
| 136 | refine ⟨g, ?_⟩ |
| 137 | intro a |
| 138 | apply LineSections.regularLineSection_ext |
| 139 | intro i W hWa hWi |
| 140 | exact regularLineGluedCoordinate_on_subopen D U s hc a i W hWa hWi |
| 141 | |
| 142 | theorem regularLineSection_eq_of_restrictions {κ : Type*} (U : κ → X.Opens) |
| 143 | (s t : LineSections.RegularLineSection D (iSup U)) |
| 144 | (h : ∀ a, LineSections.regularLineSectionRestrict D (le_iSup U a) s = |
| 145 | LineSections.regularLineSectionRestrict D (le_iSup U a) t) : s = t := by |
| 146 | apply LineSections.regularLineSection_ext |
| 147 | intro i W hWU hWi |
| 148 | apply FunctionGluing.regularFunction_eq_of_restrictions (fun a => W ⊓ U a) W (fun _ => inf_le_left) |
| 149 | · rw [← inf_iSup_eq, inf_eq_left.mpr hWU] |
| 150 | · intro a |
| 151 | rw [s.property.1 i W (W ⊓ U a) hWU hWi inf_le_left, |
| 152 | t.property.1 i W (W ⊓ U a) hWU hWi inf_le_left] |
| 153 | exact congrArg (fun q : LineSections.RegularLineSection D (U a) => |
| 154 | q.val i ⟨W ⊓ U a, inf_le_right, inf_le_left.trans hWi⟩) (h a) |
| 155 | |
| 156 | def regularLineSectionPresheaf : TopCat.Presheaf AddCommGrpCat X where |
| 157 | obj U := AddCommGrpCat.of (LineSections.RegularLineSection D U.unop) |
| 158 | map f := AddCommGrpCat.ofHom (LineSections.regularLineSectionRestrict D (leOfHom f.unop)) |
| 159 | map_id U := by |
| 160 | ext s |
| 161 | rfl |
| 162 | map_comp f g := by |
| 163 | ext s |
| 164 | rfl |
| 165 | |
| 166 | theorem regularLineSectionPresheaf_isSheaf : (regularLineSectionPresheaf D).IsSheaf := by |
| 167 | apply (TopCat.Presheaf.isSheaf_iff_isSheafUniqueGluing (regularLineSectionPresheaf D)).mpr |
| 168 | intro κ U s hc |
| 169 | obtain ⟨g, hg⟩ := exists_regularLineSection_glue D U s hc |
| 170 | refine ⟨g, hg, ?_⟩ |
| 171 | intro t ht |
| 172 | exact regularLineSection_eq_of_restrictions D U t g (fun a => (ht a).trans (hg a).symm) |
| 173 | |
| 174 | def regularLineSectionSheaf : TopCat.Sheaf AddCommGrpCat X where |
| 175 | obj := regularLineSectionPresheaf D |
| 176 | property := regularLineSectionPresheaf_isSheaf D |
| 177 | |
| 178 | end |
| 179 | |
| 180 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Regular.LineGluing |