cfahlgren1/math / lean /OAI /NumberTheory /PiExponent /Geometry /SheafSectionGluing.lean
cfahlgren1's picture
download
raw
4.12 kB
12
def mapSection (f : P ⟶ Q) (U : X.Opens) :
    OpenSections P U →ₗ[Γ(X,⊤)] OpenSections Q U where
body · 4 lines
  toFun := f.app U
  map_add' := map_add _
  map_smul' r x := by
    exact f.app_smul (r := restrictScalar X U r) (x := x)
19
lemma mapSection_naturality (f : P ⟶ Q) {U V : X.Opens} (h : U ≤ V)
    (x : OpenSections P V) :
    mapSection f U (openRestriction P h x) = openRestriction Q h (mapSection f V x) :=
proof · 1 line
  CategoryTheory.congr_fun (f.mapPresheaf.naturality (homOfLE h).op) x
24
@[simp] lemma mapSection_comp {R : X.Modules} (f : P ⟶ Q) (g : Q ⟶ R)
    (U : X.Opens) (x : OpenSections P U) :
    mapSection (f ≫ g) U x = mapSection g U (mapSection f U x) := rfl
28
lemma mapSection_congr (f : P ⟶ Q) {U V : X.Opens} (h : U = V)
    (x : OpenSections P U) :
    openSectionsCongr Q h (mapSection f U x) = mapSection f V (openSectionsCongr P h x) := by
proof · 2 lines
  subst V
  rfl
34
theorem glue_after_map (f : P ⟶ Q) {ι : Type*} (U : ι → X.Opens)
    (hcover : (⨆ i, U i) = ⊤) (y : ∀ i, OpenSections P (U i))
    (hy : ∀ i j,
      mapSection f (U i ⊓ U j) (openRestriction P inf_le_left (y i)) =
        mapSection f (U i ⊓ U j) (openRestriction P inf_le_right (y j))) :
    ∃ z : OpenSections Q ⊤,
      ∀ i, openRestriction Q (show U i ≤ ⊤ from le_top) z = mapSection f (U i) (y i) := by
proof · 10 lines
  have h := TopCat.Sheaf.existsUnique_gluing' ⟨_, Q.isSheaf⟩ U ⊤
    (fun i => homOfLE (show U i ≤ ⊤ from le_top)) (by rw [hcover])
    (fun i => mapSection f (U i) (y i)) ?_
  · obtain ⟨z, hz, _⟩ := h
    exact ⟨z, hz⟩
  · intro i j
    change openRestriction Q (show U i ⊓ U j ≤ U i from inf_le_left) (mapSection f (U i) (y i)) =
      openRestriction Q (show U i ⊓ U j ≤ U j from inf_le_right) (mapSection f (U j) (y j))
    rw [← mapSection_naturality, ← mapSection_naturality]
    exact hy i j
52
theorem restriction_of_glued_map (f : P ⟶ Q) {ι : Type*} (U : ι → X.Opens)
    (hcover : (⨆ i, U i) = ⊤) (D : X.Opens) (x : OpenSections P D)
    (y : ∀ i, OpenSections P (U i))
    (hy : ∀ i, openRestriction P (show U i ⊓ D ≤ U i from inf_le_left) (y i) =
      openRestriction P inf_le_right x)
    (z : OpenSections Q ⊤)
    (hz : ∀ i, openRestriction Q (show U i ≤ ⊤ from le_top) z = mapSection f (U i) (y i)) :
    openRestriction Q (show D ≤ ⊤ from le_top) z = mapSection f D x := by
proof · 8 lines
  apply TopCat.Sheaf.eq_of_locally_eq' ⟨_, Q.isSheaf⟩ (fun i => U i ⊓ D) D
    (fun i => homOfLE inf_le_right) (by rw [← iSup_inf_eq, hcover, top_inf_eq])
  intro i
  change openRestriction Q inf_le_right (openRestriction Q (show D ≤ ⊤ from le_top) z) =
    openRestriction Q inf_le_right (mapSection f D x)
  rw [openRestriction_comp_apply,
    ← openRestriction_comp_apply Q (show U i ⊓ D ≤ U i from inf_le_left) le_top z,
    hz i, ← mapSection_naturality, hy i, mapSection_naturality]
69
theorem overlap_difference_zero {ι : Type*} (U : ι → X.Opens) (D : X.Opens)
    (x : OpenSections P D) (y : ∀ i, OpenSections P (U i))
    (hy : ∀ i, openRestriction P (show U i ⊓ D ≤ U i from inf_le_left) (y i) =
      openRestriction P inf_le_right x) (i j : ι) :
    openRestriction P (show (U i ⊓ U j) ⊓ D ≤ U i ⊓ U j from inf_le_left)
      (openRestriction P inf_le_left (y i) - openRestriction P inf_le_right (y j)) = 0 := by
proof · 7 lines
  rw [map_sub, openRestriction_comp_apply, openRestriction_comp_apply]
  have hi := congrArg (openRestriction P
    (show (U i ⊓ U j) ⊓ D ≤ U i ⊓ D from inf_le_inf inf_le_left le_rfl)) (hy i)
  have hj := congrArg (openRestriction P
    (show (U i ⊓ U j) ⊓ D ≤ U j ⊓ D from inf_le_inf inf_le_right le_rfl)) (hy j)
  simp only [openRestriction_comp_apply] at hi hj
  rw [hi, hj, sub_self]

Xet Storage Details

Size:
4.12 kB
·
Xet hash:
4c9658ca1b690b68b2726e508ce543ff407c1ba24e7bf6e047b0fece6aa6d7f2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.