Eine aufbereitete Darstellung der Quelle

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


Quelle  Fibered.lean   Sprache: Lean

 

/-
Copyright (c) 2024 Paul Lezeau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul Lezeau, Calle Sönne
-/

module

public import Mathlib.CategoryTheory.FiberedCategory.Cartesian

/-!
# Fibered categories

This file defines what it means for a functor `p : �� ⥤ ��` to be (pre)fibered.

## Main definitions

- `IsPreFibered p` expresses `��` is fibered over `��` via a functor `p : �� ⥤ ��`, as in SGA VI.6.1.
  This means that any morphism in the base `��` can be lifted to a Cartesian morphism in `��`.

- `IsFibered p` expresses `��` is fibered over `��` via a functor `p : �� ⥤ ��`, as in SGA VI.6.1.
  This means that it is prefibered, and that the composition of any two Cartesian morphisms is
  Cartesian.

In the literature one often sees the notion of a fibered category defined as the existence of
strongly Cartesian morphisms lying over any given morphism in the base. This is equivalent to the
notion above, and we give an alternate constructor `IsFibered.of_exists_isCartesian'` for
constructing a fibered category this way.

## Implementation

The constructor of `IsPreFibered` is called `exists_isCartesian'`. The reason for the prime is that
when wanting to apply this condition, it is recommended to instead use the lemma
`exists_isCartesian` (without the prime), which is more applicable with respect to non-definitional
equalities.

## References
* [A. Grothendieck, M. Raynaud, *SGA 1*](https://arxiv.org/abs/math/0206203)
-/


@[expose] public section

universe v₁ v₂ u₁ u₂

namespace CategoryTheory

open CategoryTheory.Functor Category IsHomLift

variable {�� : Type u₁} {�� : Type u₂} [Category.{v₁} ��] [Category.{v₂} ��]

/-- Definition of a prefibered category.

See SGA 1 VI.6.1. -/

class Functor.IsPreFibered (p : �� ⥤ ��) : Prop where
  exists_isCartesian' {a : ��} {R : ��} (f : R ⟶ p.obj a) : ∃ (b : ��) (φ : b ⟶ a), IsCartesian p f φ

protected lemma IsPreFibered.exists_isCartesian (p : �� ⥤ ��) [p.IsPreFibered] {a : ��} {R S : ��}
    (ha : p.obj a = S) (f : R ⟶ S) : ∃ (b : ��) (φ : b ⟶ a), IsCartesian p f φ := by
  subst ha; exact IsPreFibered.exists_isCartesian' f

/-- Definition of a fibered category.

See SGA 1 VI.6.1. -/

class Functor.IsFibered (p : �� ⥤ ��) : Prop extends IsPreFibered p where
  comp {R S T : ��} (f : R ⟶ S) (g : S ⟶ T) {a b c : ��} (φ : a ⟶ b) (ψ : b ⟶ c)
    [IsCartesian p f φ] [IsCartesian p g ψ] : IsCartesian p (f ≫ g) (φ ≫ ψ)

instance (p : �� ⥤ ��) [p.IsFibered] {R S T : ��} (f : R ⟶ S) (g : S ⟶ T) {a b c : ��} (φ : a ⟶ b)
    (ψ : b ⟶ c) [IsCartesian p f φ] [IsCartesian p g ψ] : IsCartesian p (f ≫ g) (φ ≫ ψ) :=
  IsFibered.comp f g φ ψ

namespace Functor.IsPreFibered

variable {p : �� ⥤ ��} [IsPreFibered p] {R S : ��} {a : ��} (ha : p.obj a = S) (f : R ⟶ S)

/-- Given a fibered category `p : �� ⥤ ��`, a morphism `f : R ⟶ S` and an object `a` lying over `S`,
then `pullbackObj` is the domain of some choice of a Cartesian morphism lying over `f` with
codomain `a`. -/

noncomputable def pullbackObj : �� :=
  Classical.choose (IsPreFibered.exists_isCartesian p ha f)

/-- Given a fibered category `p : �� ⥤ ��`, a morphism `f : R ⟶ S` and an object `a` lying over `S`,
then `pullbackMap` is a choice of a Cartesian morphism lying over `f` with codomain `a`. -/

noncomputable def pullbackMap : pullbackObj ha f ⟶ a :=
  Classical.choose (Classical.choose_spec (IsPreFibered.exists_isCartesian p ha f))

instance pullbackMap.IsCartesian : IsCartesian p f (pullbackMap ha f) :=
  Classical.choose_spec (Classical.choose_spec (IsPreFibered.exists_isCartesian p ha f))

lemma pullbackObj_proj : p.obj (pullbackObj ha f) = R :=
  domain_eq p f (pullbackMap ha f)

end Functor.IsPreFibered

namespace Functor.IsFibered

open IsCartesian Functor.IsPreFibered

/-- In a fibered category, any Cartesian morphism is strongly Cartesian. -/
instance isStronglyCartesian_of_isCartesian (p : �� ⥤ ��) [p.IsFibered] {R S : ��} (f : R ⟶ S)
    {a b : ��} (φ : a ⟶ b) [p.IsCartesian f φ] : p.IsStronglyCartesian f φ where
  universal_property' g φ' hφ' := by
    -- Let `ψ` be a Cartesian arrow lying over `g`
    let ψ := pullbackMap (domain_eq p f φ) g
    -- Let `τ` be the map induced by the universal property of `ψ ≫ φ`.
    let τ := IsCartesian.map p (g ≫ f) (ψ ≫ φ) φ'
    use τ ≫ ψ
    -- It is easily verified that `τ ≫ ψ` lifts `g` and `τ ≫ ψ ≫ φ = φ'`
    refine ⟨⟨inferInstance, by simp only [assoc, IsCartesian.fac, τ]⟩, ?_⟩
    -- It remains to check that `τ ≫ ψ` is unique.
    -- So fix another lift `π` of `g` satisfying `π ≫ φ = φ'`.
    intro π ⟨hπ, hπ_comp⟩
    -- Write `π` as `π = τ' ≫ ψ` for some `τ'` induced by the universal property of `ψ`.
    rw [← fac p g ψ π]
    -- It remains to show that `τ' = τ`. This follows again from the universal property of `ψ`.
    congr 1
    apply map_uniq
    rwa [← assoc, IsCartesian.fac]

/-- In a category which admits strongly Cartesian pullbacks, any Cartesian morphism is
strongly Cartesian. This is a helper-lemma for the fact that admitting strongly Cartesian pullbacks
implies being fibered. -/

lemma isStronglyCartesian_of_exists_isCartesian (p : �� ⥤ ��) (h : ∀ (a : ��) (R : ��)
    (f : R ⟶ p.obj a), ∃ (b : ��) (φ : b ⟶ a), IsStronglyCartesian p f φ) {R S : ��} (f : R ⟶ S)
      {a b : ��} (φ : a ⟶ b) [p.IsCartesian f φ] : p.IsStronglyCartesian f φ := by
  constructor
  intro c g φ' hφ'
  subst_hom_lift p f φ; clear a b R S
  -- Let `ψ` be a Cartesian arrow lying over `g`
  obtain ⟨a', ψ, hψ⟩ := h _ _ (p.map φ)
  -- Let `τ' : c ⟶ a'` be the map induced by the universal property of `ψ`
  let τ' := IsStronglyCartesian.map p (p.map φ) ψ (f' := g ≫ p.map φ) rfl φ'
  -- Let `Φ : a' ≅ a` be natural isomorphism induced between `φ` and `ψ`.
  let Φ := domainUniqueUpToIso p (p.map φ) φ ψ
  -- The map induced by `φ` will be `τ' ≫ Φ.hom`
  use τ' ≫ Φ.hom
  -- It is easily verified that `τ' ≫ Φ.hom` lifts `g` and `τ' ≫ Φ.hom ≫ φ = φ'`
  refine ⟨⟨by simp only [Φ]; infer_instance, ?_⟩, ?_⟩
  · simp [τ', Φ]
  -- It remains to check that it is unique. This follows from the universal property of `ψ`.
  intro π ⟨hπ, hπ_comp⟩
  rw [← Iso.comp_inv_eq]
  apply IsStronglyCartesian.map_uniq p (p.map φ) ψ rfl φ'
  simp [hπ_comp, Φ]

/-- Alternate constructor for `IsFibered`, a functor `p : �� ⥤ ��` is fibered if any diagram of the
form
```
          a
          -
          |
          v
R --f--> p(a)
```
admits a strongly Cartesian lift `b ⟶ a` of `f`. -/

lemma of_exists_isStronglyCartesian {p : �� ⥤ ��}
    (h : ∀ (a : ��) (R : ��) (f : R ⟶ p.obj a),
      ∃ (b : ��) (φ : b ⟶ a), IsStronglyCartesian p f φ) :
    IsFibered p where
  exists_isCartesian' := by
    intro a R f
    obtain ⟨b, φ, hφ⟩ := h a R f
    refine ⟨b, φ, inferInstance⟩
  comp := fun R S T f g {a b c} φ ψ _ _ =>
    have : p.IsStronglyCartesian f φ := isStronglyCartesian_of_exists_isCartesian p h _ _
    have : p.IsStronglyCartesian g ψ := isStronglyCartesian_of_exists_isCartesian p h _ _
    inferInstance

/-- Given a diagram
```
                  a
                  -
                  |
                  v
T --g--> R --f--> S
```
we have an isomorphism `T ×_S a ≅ T ×_R (R ×_S a)` -/

noncomputable def pullbackPullbackIso {p : �� ⥤ ��} [IsFibered p]
    {R S T : ��} {a : ��} (ha : p.obj a = S) (f : R ⟶ S) (g : T ⟶ R) :
      pullbackObj ha (g ≫ f) ≅ pullbackObj (pullbackObj_proj ha f) g :=
  domainUniqueUpToIso p (g ≫ f) (pullbackMap (pullbackObj_proj ha f) g ≫ pullbackMap ha f)
    (pullbackMap ha (g ≫ f))

end Functor.IsFibered

end CategoryTheory

Messung
CHZG
100100100100

¤ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,097
#Domains=862,672