Zulip Chat Archive
Stream: mathlib4
Topic: CategoryTheory.Functor.flipFunctor
Edison Xie (Feb 20 2026 at 11:53):
import Mathlib
namespace CategoryTheory
def Functor.flipFunctor {C D E : Type*} [Category C] [Category D] [Category E] :
(C ⥤ D ⥤ E) ⥤ (D ⥤ C ⥤ E) where
obj F := F.flip
map {X Y} f := {
app M := {
app N := (f.app N).app M
naturality {X' Y'} f' := by
dsimp
rw [← NatTrans.comp_app, ← NatTrans.comp_app]
congr 1
exact f.naturality _
}
naturality {X' Y'} f' := by
ext M
dsimp [NatTrans.comp_app]
exact (f.app M).naturality _
}
end CategoryTheory
Do we have this in mathlib? It's pretty weird that we have CategoryTheory.Functor.flip₁₃Functor but not this
Edison Xie (Feb 20 2026 at 12:03):
@Andrew Yang @Joël Riou
Andrew Yang (Feb 20 2026 at 12:04):
docs#CategoryTheory.flipFunctor
Edison Xie (Feb 20 2026 at 12:11):
wait but this name is weird, we have Functor.flip, Functor.flip₁₃Functor but suddennly it's CategoryTheory.flipFunctor?
Andrew Yang (Feb 20 2026 at 12:12):
I would personally say Functor.flip₁₃Functor is the weird one.
Andrew Yang (Feb 20 2026 at 12:12):
Because it says Functor twice.
Edison Xie (Feb 20 2026 at 12:12):
hmmmm okay
Last updated: Feb 28 2026 at 14:05 UTC