Source code on Github
{-# OPTIONS --safe #-}
module Prelude.CongSetoid where

open import Prelude.Init; open SetAsType
open import Prelude.Setoid

-- ** homogeneous version
record CongSetoid (A : Type )  _ : ISetoid A   _ : SetoidLaws A  : Typeω where
  field ≈-cong :  (f : A  A)  Congruent _≈_ _≈_ f
open CongSetoid ⦃...⦄ public

-- ** heterogeneous version
record CongSetoid′ (A : Type )  _ : ISetoid A   _ : SetoidLaws A  : Typeω where
  field ≈-cong′ :  {B : Type ℓ′}  _ : ISetoid B   _ : SetoidLaws B  
                   (f : A  B)  Congruent _≈_ _≈_ f
open CongSetoid′ ⦃...⦄ public