1234567891011121314151617181920212223{-# OPTIONS --without-K --safe #-} open import Categories.Category -- Reasoning facilities about morphism equivalences (not necessarily 'squares') module Categories.Morphism.Reasoning {o ℓ e} (C : Category o ℓ e) where -- some items are defined in sub-modulesopen import Categories.Morphism.Reasoning.Core C publicopen import Categories.Morphism.Reasoning.Iso C public open Category Copen Definitions Copen HomReasoning -- create a commutative square from an equivalencetoSquare : ∀ {A B} {f g : A ⇒ B} → f ≈ g → CommutativeSquare f id id gtoSquare {_} {_} {f} {g} f≈g = begin id ∘ f ≈⟨ identityˡ ⟩ f ≈⟨ f≈g ⟩ g ≈˘⟨ identityʳ ⟩ g ∘ id ∎