Skip to content

Commit 168b9f3

Browse files
committed
doc: fix composition order in Presieve.pullback docstring (leanprover-community#41573)
This PR fixes the `Presieve.pullback` docstring, which said the pullback of `R` along `f : X ⟶ Y` consists of all `g : Z ⟶ X` such that `f ≫ g` is in `R`; the definition uses `R (g ≫ f)`, and `f ≫ g` is not even well-typed, so the docstring now says `g ≫ f`. Follow-up to [leanprover-community#40527 (feat(CategoryTheory/Sites): pushforward and pullback of presieves)](leanprover-community#40527). 🤖 Prepared with Claude Code
1 parent 1a9188a commit 168b9f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mathlib/CategoryTheory/Sites/Sieves.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ lemma pushforward_singleton {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z) :
320320
rw [← ofArrows_pUnit.{0}, pushforward_ofArrows, ofArrows_pUnit.{0}]
321321

322322
/-- The pullback of a presieve `R` on `Y` along a morphism `f : X ⟶ Y` is the presieve on `X`
323-
given by all morphisms `g : Z ⟶ X` such that `fg` is in `R`. -/
323+
given by all morphisms `g : Z ⟶ X` such that `gf` is in `R`. -/
324324
def pullback {X Y : C} (f : X ⟶ Y) (R : Presieve Y) : Presieve X :=
325325
fun _ g ↦ R (g ≫ f)
326326

0 commit comments

Comments
 (0)