Skip to content

Commit 56f227a

Browse files
committed
doc(CategoryTheory): qualify Pairwise in docstrings
1 parent 9e73522 commit 56f227a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Mathlib/CategoryTheory/Category/Pairwise.lean

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ public import Mathlib.Data.Fintype.Sum
1616
/-!
1717
# The category of "pairwise intersections".
1818
19-
Given `ι : Type v`, we build the diagram category `Pairwise ι`
19+
Given `ι : Type v`, we build the diagram category `CategoryTheory.Pairwise ι`
2020
with objects `single i` and `pair i j`, for `i j : ι`,
2121
whose only non-identity morphisms are
2222
`left : pair i j ⟶ single i` and `right : pair i j ⟶ single j`.
2323
2424
We use this later in describing (one formulation of) the sheaf condition.
2525
2626
Given any function `U : ι → α`, where `α` is some complete lattice (e.g. `(Opens X)ᵒᵖ`),
27-
we produce a functor `Pairwise ι ⥤ α` in the obvious way,
27+
we produce a functor `CategoryTheory.Pairwise ι ⥤ α` in the obvious way,
2828
and show that `iSup U` provides a colimit cocone over this functor.
2929
-/
3030

@@ -56,7 +56,7 @@ namespace Pairwise
5656
instance pairwiseInhabited [Inhabited ι] : Inhabited (Pairwise ι) :=
5757
⟨single default⟩
5858

59-
/-- Morphisms in the category `Pairwise ι`. The only non-identity morphisms are
59+
/-- Morphisms in the category `CategoryTheory.Pairwise ι`. The only non-identity morphisms are
6060
`left i j : single i ⟶ pair i j` and `right i j : single j ⟶ pair i j`.
6161
-/
6262
inductive Hom : Pairwise ι → Pairwise ι → Type v
@@ -74,13 +74,13 @@ open Hom
7474
instance homInhabited [Inhabited ι] : Inhabited (Hom (single (default : ι)) (single default)) :=
7575
⟨id_single default⟩
7676

77-
/-- The identity morphism in `Pairwise ι`.
77+
/-- The identity morphism in `CategoryTheory.Pairwise ι`.
7878
-/
7979
def id : ∀ o : Pairwise ι, Hom o o
8080
| single i => id_single i
8181
| pair i j => id_pair i j
8282

83-
/-- Composition of morphisms in `Pairwise ι`. -/
83+
/-- Composition of morphisms in `CategoryTheory.Pairwise ι`. -/
8484
def comp : ∀ {o₁ o₂ o₃ : Pairwise ι} (_ : Hom o₁ o₂) (_ : Hom o₂ o₃), Hom o₁ o₃
8585
| _, _, _, id_single _, g => g
8686
| _, _, _, id_pair _ _, g => g
@@ -95,7 +95,7 @@ instance : CategoryStruct (Pairwise ι) where
9595
section
9696

9797
open Lean Elab Tactic in
98-
/-- A helper tactic for `cat_disch` and `Pairwise`. -/
98+
/-- A helper tactic for `cat_disch` and `CategoryTheory.Pairwise`. -/
9999
meta def pairwiseCases : TacticM Unit := do
100100
evalTactic (← `(tactic| casesm* (_ : Pairwise _) ⟶ (_ : Pairwise _)))
101101

@@ -138,7 +138,8 @@ def diagramMap : ∀ {o₁ o₂ : Pairwise ι} (_ : o₁ ⟶ o₂), diagramObj U
138138
| _, _, left _ _ => homOfLE inf_le_left
139139
| _, _, right _ _ => homOfLE inf_le_right
140140

141-
/-- Given a function `U : ι → α` for `[SemilatticeInf α]`, we obtain a functor `Pairwise ι ⥤ α`,
141+
/-- Given a function `U : ι → α` for `[SemilatticeInf α]`, we obtain a functor
142+
`CategoryTheory.Pairwise ι ⥤ α`,
142143
sending `single i` to `U i` and `pair i j` to `U i ⊓ U j`,
143144
and the morphisms to the obvious inequalities.
144145
-/

0 commit comments

Comments
 (0)