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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafCechSheafLocalContraction.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.SheafComplex |
| 8 | |
| 9 | /-! # Local Contraction -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.LocalContraction.TopCat.Sheaf |
| 12 | |
| 13 | open _root_.TopCat |
| 14 | open _root_.TopCat.Sheaf |
| 15 | |
| 16 | /-! |
| 17 | # Local contraction of the sheaf-level Cech complex |
| 18 | |
| 19 | This file contracts every positive-degree Cech cycle over an open contained in one member |
| 20 | of the cover. The contraction prepends the distinguished cover index to each tuple. The |
| 21 | cycle equation on that larger tuple then identifies the preceding differential with the |
| 22 | original cycle. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | variable {X : TopCat.{u}} {ι : Type u} |
| 30 | variable (U : ι → Opens X) |
| 31 | variable (F : Sheaf AddCommGrpCat.{u} X) |
| 32 | |
| 33 | private def cechPrependIndex {n : ℕ} (i₀ : ι) (i : Fin (n + 1) → ι) : |
| 34 | Fin (n + 2) → ι := |
| 35 | Fin.cases i₀ i |
| 36 | |
| 37 | private theorem cechPrependDeleteZero {n : ℕ} (i₀ : ι) (i : Fin (n + 1) → ι) : |
| 38 | cechPrependIndex i₀ i ∘ |
| 39 | (SimplexCategory.δ (0 : Fin (n + 2))).toOrderHom = i := by |
| 40 | funext k |
| 41 | rfl |
| 42 | |
| 43 | private theorem cechPrependDeleteSucc {n : ℕ} (i₀ : ι) (i : Fin (n + 2) → ι) |
| 44 | (k : Fin (n + 2)) : |
| 45 | cechPrependIndex i₀ i ∘ |
| 46 | (SimplexCategory.δ k.succ).toOrderHom = |
| 47 | cechPrependIndex i₀ |
| 48 | (i ∘ (SimplexCategory.δ k).toOrderHom) := by |
| 49 | funext a |
| 50 | refine Fin.cases ?_ (fun b => ?_) a |
| 51 | · rfl |
| 52 | · simp [cechPrependIndex, SimplexCategory.δ, Function.comp_apply] |
| 53 | |
| 54 | private theorem cechPrependIntersection_eq {n : ℕ} {V : Opens X} (i₀ : ι) |
| 55 | (hV : V ≤ U i₀) (i : Fin (n + 1) → ι) : |
| 56 | V ⊓ (∏ᶜ fun k : Fin (n + 2) => U (cechPrependIndex i₀ i k)) = |
| 57 | V ⊓ (∏ᶜ fun k : Fin (n + 1) => U (i k)) := by |
| 58 | apply le_antisymm |
| 59 | · refine le_inf inf_le_left (leOfHom (Pi.lift fun k => ?_)) |
| 60 | exact homOfLE (inf_le_right.trans |
| 61 | (leOfHom (Pi.π (fun k : Fin (n + 2) => U (cechPrependIndex i₀ i k)) k.succ))) |
| 62 | · refine le_inf inf_le_left (leOfHom (Pi.lift fun k => ?_)) |
| 63 | refine Fin.cases ?_ (fun j => ?_) k |
| 64 | · exact homOfLE (inf_le_left.trans hV) |
| 65 | · exact homOfLE (inf_le_right.trans |
| 66 | (leOfHom (Pi.π (fun j : Fin (n + 1) => U (i j)) j))) |
| 67 | |
| 68 | private noncomputable def cechLocalContraction {V : Opens X} (i₀ : ι) |
| 69 | (hV : V ≤ U i₀) (n : ℕ) (s : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op V)) : |
| 70 | (Terms.TopCat.Sheaf.cechTerm F U n).obj.obj (op V) := |
| 71 | (Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U n V).symm fun i => |
| 72 | F.obj.map (eqToHom (congrArg op (cechPrependIntersection_eq U i₀ hV i))) |
| 73 | (Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U (n + 1) V s (cechPrependIndex i₀ i)) |
| 74 | |
| 75 | private theorem cechLocalContraction_apply {V : Opens X} (i₀ : ι) |
| 76 | (hV : V ≤ U i₀) (n : ℕ) (s : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op V)) |
| 77 | (i : Fin (n + 1) → ι) : |
| 78 | Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U n V (cechLocalContraction U F i₀ hV n s) i = |
| 79 | F.obj.map (eqToHom (congrArg op (cechPrependIntersection_eq U i₀ hV i))) |
| 80 | (Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U (n + 1) V s (cechPrependIndex i₀ i)) := by |
| 81 | rw [cechLocalContraction, AddEquiv.apply_symm_apply] |
| 82 | |
| 83 | private theorem cechTermSectionsAddEquiv_transport (n : ℕ) (V : Opens X) |
| 84 | (s : (Terms.TopCat.Sheaf.cechTerm F U n).obj.obj (op V)) |
| 85 | {i j : Fin (n + 1) → ι} (h : i = j) : |
| 86 | F.obj.map (eqToHom (congrArg |
| 87 | (fun q : Fin (n + 1) → ι => |
| 88 | op (V ⊓ ∏ᶜ fun k : Fin (n + 1) => U (q k))) h)) |
| 89 | (Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U n V s i) = |
| 90 | Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U n V s j := by |
| 91 | subst h |
| 92 | simp |
| 93 | |
| 94 | private noncomputable def cechFaceSection (n : ℕ) (V : Opens X) |
| 95 | (s : (Terms.TopCat.Sheaf.cechTerm F U n).obj.obj (op V)) (k : Fin (n + 2)) |
| 96 | (i : Fin (n + 2) → ι) : |
| 97 | F.obj.obj (op (V ⊓ ∏ᶜ fun a : Fin (n + 2) => U (i a))) := |
| 98 | F.obj.map (homOfLE (inf_le_inf_left V |
| 99 | (leOfHom (((FormalCoproduct.mk _ U).mapPower |
| 100 | (SimplexCategory.δ k).toOrderHom.toFun).φ i)))).op |
| 101 | (Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U n V s |
| 102 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun)) |
| 103 | |
| 104 | private theorem cechFaceSection_zero_transport {V : Opens X} (i₀ : ι) |
| 105 | (hV : V ≤ U i₀) (n : ℕ) |
| 106 | (s : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op V)) (i : Fin (n + 2) → ι) : |
| 107 | F.obj.map (eqToHom (congrArg op |
| 108 | (cechPrependIntersection_eq U i₀ hV i))) |
| 109 | (cechFaceSection U F (n + 1) V s 0 (cechPrependIndex i₀ i)) = |
| 110 | Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U (n + 1) V s i := by |
| 111 | rw [cechFaceSection] |
| 112 | rw [← cechTermSectionsAddEquiv_transport U F (n + 1) V s |
| 113 | (cechPrependDeleteZero i₀ i)] |
| 114 | change (F.obj.map _ ≫ F.obj.map _) _ = F.obj.map _ _ |
| 115 | exact ConcreteCategory.congr_hom |
| 116 | ((F.obj.map_comp _ _).symm.trans |
| 117 | (congrArg F.obj.map (Subsingleton.elim _ _))) _ |
| 118 | |
| 119 | private theorem cechFaceSection_succ_transport {V : Opens X} (i₀ : ι) |
| 120 | (hV : V ≤ U i₀) (n : ℕ) |
| 121 | (s : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op V)) (i : Fin (n + 2) → ι) |
| 122 | (k : Fin (n + 2)) : |
| 123 | F.obj.map (eqToHom (congrArg op |
| 124 | (cechPrependIntersection_eq U i₀ hV i))) |
| 125 | (cechFaceSection U F (n + 1) V s k.succ (cechPrependIndex i₀ i)) = |
| 126 | cechFaceSection U F n V (cechLocalContraction U F i₀ hV n s) k i := by |
| 127 | rw [cechFaceSection, cechFaceSection, cechLocalContraction_apply] |
| 128 | erw [← cechTermSectionsAddEquiv_transport U F (n + 1) V s |
| 129 | (cechPrependDeleteSucc i₀ i k)] |
| 130 | change (F.obj.map _ ≫ F.obj.map _) _ = |
| 131 | (F.obj.map _ ≫ F.obj.map _ ≫ F.obj.map _) _ |
| 132 | exact ConcreteCategory.congr_hom |
| 133 | ((F.obj.map_comp _ _).symm.trans |
| 134 | ((congrArg F.obj.map (Subsingleton.elim _ _)).trans |
| 135 | ((F.obj.map_comp _ _).trans |
| 136 | (congrArg (fun f ↦ F.obj.map _ ≫ f) (F.obj.map_comp _ _))))) _ |
| 137 | |
| 138 | private theorem cechLocalContraction_differential_component {V : Opens X} (i₀ : ι) |
| 139 | (hV : V ≤ U i₀) (n : ℕ) |
| 140 | (s : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op V)) |
| 141 | (hs : (SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op V) s = 0) |
| 142 | (i : Fin (n + 2) → ι) : |
| 143 | Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U (n + 1) V |
| 144 | ((SheafDifferential.TopCat.Sheaf.cechDifferential F U n).hom.app (op V) |
| 145 | (cechLocalContraction U F i₀ hV n s)) i = |
| 146 | Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U (n + 1) V s i := by |
| 147 | rw [SheafDifferential.TopCat.Sheaf.cechDifferential_apply] |
| 148 | change (∑ k : Fin (n + 2), (-1 : ℤ) ^ (k : ℕ) • |
| 149 | cechFaceSection U F n V (cechLocalContraction U F i₀ hV n s) k i) = _ |
| 150 | have hd := congrArg (fun y => |
| 151 | Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U (n + 2) V y (cechPrependIndex i₀ i)) hs |
| 152 | rw [SheafDifferential.TopCat.Sheaf.cechDifferential_apply] at hd |
| 153 | simp only [map_zero, Pi.zero_apply] at hd |
| 154 | change (∑ k : Fin (n + 3), (-1 : ℤ) ^ (k : ℕ) • |
| 155 | cechFaceSection U F (n + 1) V s k (cechPrependIndex i₀ i)) = 0 at hd |
| 156 | have hd' := congrArg (fun y => F.obj.map (eqToHom (congrArg op |
| 157 | (cechPrependIntersection_eq U i₀ hV i))) y) hd |
| 158 | simp only [map_zero] at hd' |
| 159 | rw [map_sum, Fin.sum_univ_succ] at hd' |
| 160 | simp only [Fin.val_zero, pow_zero, one_smul, Fin.val_succ, pow_succ, |
| 161 | mul_neg, mul_one, neg_smul, map_neg, map_zsmul, |
| 162 | cechFaceSection_zero_transport U F i₀ hV n s i, |
| 163 | cechFaceSection_succ_transport U F i₀ hV n s i] at hd' |
| 164 | rw [Finset.sum_neg_distrib] at hd' |
| 165 | exact (sub_eq_zero.mp (by simpa only [sub_eq_add_neg] using hd')).symm |
| 166 | |
| 167 | /-- A positive-degree Cech cycle on an open contained in one cover member has a |
| 168 | preimage under the preceding Cech differential. -/ |
| 169 | theorem exists_preimage_cechDifferential_of_le {V : Opens X} (i₀ : ι) |
| 170 | (hV : V ≤ U i₀) (n : ℕ) |
| 171 | (s : (Terms.TopCat.Sheaf.cechTerm F U (n + 1)).obj.obj (op V)) |
| 172 | (hs : (SheafDifferential.TopCat.Sheaf.cechDifferential F U (n + 1)).hom.app (op V) s = 0) : |
| 173 | ∃ t : (Terms.TopCat.Sheaf.cechTerm F U n).obj.obj (op V), |
| 174 | (SheafDifferential.TopCat.Sheaf.cechDifferential F U n).hom.app (op V) t = s := by |
| 175 | refine ⟨cechLocalContraction U F i₀ hV n s, |
| 176 | (Terms.TopCat.Sheaf.cechTermSectionsAddEquiv F U (n + 1) V).injective ?_⟩ |
| 177 | funext i |
| 178 | exact cechLocalContraction_differential_component U F i₀ hV n s hs i |
| 179 | |
| 180 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.LocalContraction.TopCat.Sheaf |