Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  OfSection.lean   Sprache: Lean

 

/-
Copyright (c) 2025 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/

module

public import Mathlib.CategoryTheory.Subfunctor.Image

/-!
# The subpresheaf generated by a section

Given a presheaf of types `F : Cᵒᵖ ⥤ Type w` and a section `x : F.obj X`,
we define `Subfunctor.ofSection x : Subfunctor F` as the subpresheaf
of `F` generated by `x`.
-/


@[expose] public section

universe w v u

namespace CategoryTheory

variable {C : Type u} [Category.{v} C]

namespace Subfunctor

section

variable {F : Cᵒᵖ ⥤ Type w} {X : Cᵒᵖ} (x : F.obj X)

/-- The subpresheaf of `F : Cᵒᵖ ⥤ Type w` that is generated
by a section `x : F.obj X`. -/

@[simps -isSimp]
def ofSection : Subfunctor F where
  obj U := Set.ofPred (fun u ↦ ∃ (f : X ⟶ U), F.map f x = u)
  map {U V} g := by
    rintro _ ⟨f, rfl⟩
    exact ⟨f ≫ g, by simp⟩

lemma mem_ofSection_obj : x ∈ (ofSection x).obj X := ⟨�� _, by simp⟩

@[simp]
lemma ofSection_le_iff (G : Subfunctor F) :
    ofSection x ≤ G ↔ x ∈ G.obj X := by
  constructor
  · intro hx
    exact hx _ (mem_ofSection_obj x)
  · rintro hx U _ ⟨f, rfl⟩
    exact G.map f hx

@[simp]
lemma ofSection_image {F' : Cᵒᵖ ⥤ Type w} (f : F ⟶ F') :
    (ofSection x).image f = ofSection (f.app _ x) := by
  apply le_antisymm
  · rw [image_le_iff, ofSection_le_iff, preimage_obj, Set.mem_preimage]
    exact ⟨�� X, by simp⟩
  · simp only [ofSection_le_iff, image_obj, Set.mem_image]
    exact ⟨x, mem_ofSection_obj x, rfl⟩

end

section

variable {F : Cᵒᵖ ⥤ Type v}

lemma ofSection_eq_range {X : Cᵒᵖ} (x : F.obj X) :
    ofSection x = range (yonedaEquiv.symm x) := by
  ext U y
  simp only [ofSection_obj, Set.mem_ofPred_eq, Opposite.op_unop, range_obj,
    Set.mem_range]
  constructor
  · rintro ⟨f, rfl⟩
    exact ⟨f.unop, rfl⟩
  · rintro ⟨f, rfl⟩
    exact ⟨f.op, rfl⟩

lemma range_eq_ofSection {X : C} (f : yoneda.obj X ⟶ F) :
    range f = ofSection (yonedaEquiv f) := by
  rw [ofSection_eq_range, Equiv.symm_apply_apply]

end

section

variable {F : Cᵒᵖ ⥤ Type max v w}

set_option backward.defeqAttrib.useBackward true in
lemma ofSection_eq_range' {X : Cᵒᵖ} (x : F.obj X) :
    ofSection x = range (uliftYonedaEquiv.symm x) := by
  ext U y
  dsimp [uliftYonedaEquiv]
  simp only [Set.mem_range, ULift.exists]
  constructor
  · rintro ⟨f, rfl⟩
    exact ⟨f.unop, rfl⟩
  · rintro ⟨f, rfl⟩
    exact ⟨f.op, rfl⟩

lemma range_eq_ofSection' {X : C} (f : yoneda.obj X ⋙ uliftFunctor.{w} ⟶ F) :
    range f = ofSection (uliftYonedaEquiv f) := by
  rw [ofSection_eq_range', Equiv.symm_apply_apply]

end

end Subfunctor

end CategoryTheory

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,113
#Domains=863,217