Source code on Github{-# OPTIONS --safe #-}
module Prelude.CongSetoid where
open import Prelude.Init; open SetAsType
open import Prelude.Setoid
record CongSetoid (A : Type ℓ) ⦃ _ : ISetoid A ⦄ ⦃ _ : SetoidLaws A ⦄ : Typeω where
field ≈-cong : ∀ (f : A → A) → Congruent _≈_ _≈_ f
open CongSetoid ⦃...⦄ public
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