@@ -166,10 +166,9 @@ open Top.presheaf
166166/--
167167The functions satisfying a local predicate satisfy the sheaf condition.
168168-/
169- def sheaf_condition
170- (P : local_predicate T) :
171- sheaf_condition (subpresheaf_to_Types P.to_prelocal_predicate) :=
172- sheaf_condition_of_exists_unique_gluing _ $ λ ι U sf sf_comp, begin
169+ lemma is_sheaf (P : local_predicate T) :
170+ (subpresheaf_to_Types P.to_prelocal_predicate).is_sheaf :=
171+ presheaf.is_sheaf_of_is_sheaf_unique_gluing_types _ $ λ ι U sf sf_comp, begin
173172 -- We show the sheaf condition in terms of unique gluing.
174173 -- First we obtain a family of sections for the underlying sheaf of functions,
175174 -- by forgetting that the prediacte holds
@@ -209,14 +208,13 @@ The subsheaf of the sheaf of all dependently typed functions satisfying the loca
209208-/
210209@[simps]
211210def subsheaf_to_Types (P : local_predicate T) : sheaf (Type v) X :=
212- { presheaf := subpresheaf_to_Types P.to_prelocal_predicate,
213- sheaf_condition := subpresheaf_to_Types.sheaf_condition P }.
211+ ⟨subpresheaf_to_Types P.to_prelocal_predicate, subpresheaf_to_Types.is_sheaf P⟩
214212
215213/--
216214There is a canonical map from the stalk to the original fiber, given by evaluating sections.
217215-/
218216def stalk_to_fiber (P : local_predicate T) (x : X) :
219- (subsheaf_to_Types P).presheaf .stalk x ⟶ T x :=
217+ (subsheaf_to_Types P).1 .stalk x ⟶ T x :=
220218begin
221219 refine colimit.desc _
222220 { X := T x, ι := { app := λ U f, _, naturality' := _ } },
@@ -225,7 +223,7 @@ begin
225223end
226224
227225@[simp] lemma stalk_to_fiber_germ (P : local_predicate T) (U : opens X) (x : U) (f) :
228- stalk_to_fiber P x ((subsheaf_to_Types P).presheaf .germ x f) = f.1 x :=
226+ stalk_to_fiber P x ((subsheaf_to_Types P).1 .germ x f) = f.1 x :=
229227begin
230228 dsimp [presheaf.germ, stalk_to_fiber],
231229 cases x,
@@ -244,7 +242,7 @@ lemma stalk_to_fiber_surjective (P : local_predicate T) (x : X)
244242begin
245243 rcases w t with ⟨U, f, h, rfl⟩,
246244 fsplit,
247- { exact (subsheaf_to_Types P).presheaf .germ ⟨x, U.2 ⟩ ⟨f, h⟩, },
245+ { exact (subsheaf_to_Types P).1 .germ ⟨x, U.2 ⟩ ⟨f, h⟩, },
248246 { exact stalk_to_fiber_germ _ U.1 ⟨x, U.2 ⟩ ⟨f, h⟩, }
249247end
250248
@@ -262,8 +260,8 @@ begin
262260 -- We promise to provide all the ingredients of the proof later:
263261 let Q :
264262 ∃ (W : (open_nhds x)ᵒᵖ) (s : Π w : (unop W).1 , T w) (hW : P.pred s),
265- tU = (subsheaf_to_Types P).presheaf .germ ⟨x, (unop W).2 ⟩ ⟨s, hW⟩ ∧
266- tV = (subsheaf_to_Types P).presheaf .germ ⟨x, (unop W).2 ⟩ ⟨s, hW⟩ := _,
263+ tU = (subsheaf_to_Types P).1 .germ ⟨x, (unop W).2 ⟩ ⟨s, hW⟩ ∧
264+ tV = (subsheaf_to_Types P).1 .germ ⟨x, (unop W).2 ⟩ ⟨s, hW⟩ := _,
267265 { choose W s hW e using Q,
268266 exact e.1 .trans e.2 .symm, },
269267 -- Then use induction to pick particular representatives of `tU tV : stalk x`
@@ -300,9 +298,8 @@ nat_iso.of_components
300298The sheaf of continuous functions on `X` with values in a space `T`.
301299-/
302300def sheaf_to_Top (T : Top.{v}) : sheaf (Type v) X :=
303- { presheaf := presheaf_to_Top X T,
304- sheaf_condition :=
305- presheaf.sheaf_condition_equiv_of_iso (subpresheaf_continuous_prelocal_iso_presheaf_to_Top T)
306- (subpresheaf_to_Types.sheaf_condition (continuous_local X T)), }
301+ ⟨presheaf_to_Top X T,
302+ presheaf.is_sheaf_of_iso (subpresheaf_continuous_prelocal_iso_presheaf_to_Top T)
303+ (subpresheaf_to_Types.is_sheaf (continuous_local X T))⟩
307304
308305end Top
0 commit comments