Setoid.Functions.Basic¶
Setoid functions¶
This is the Setoid.Functions.Basic module of the Agda Universal Algebra Library.
ππ : {A : Setoid Ξ± Οα΅} β A βΆ A ππ {A} = record { to = id ; cong = id } open _βΆ_ renaming ( to to _β¨$β©_ ) _β_ : {A : Setoid Ξ± Οα΅}{B : Setoid Ξ² Οα΅}{C : Setoid Ξ³ ΟαΆ} β B βΆ C β A βΆ B β A βΆ C f β g = record { to = (_β¨$β©_ f) β (_β¨$β©_ g); cong = (cong f) β (cong g) } module _ {π¨ : Setoid Ξ± Οα΅} where open Lift ; open Level ; open Setoid using (_β_) open Setoid π¨ using ( sym ; trans ) renaming (Carrier to A ; _β_ to _ββ_ ; refl to reflβ) ππππ‘ : β β β Setoid (Ξ± β β) Οα΅ ππππ‘ β = record { Carrier = Lift β A ; _β_ = Ξ» x y β (lower x) ββ (lower y) ; isEquivalence = record { refl = reflβ ; sym = sym ; trans = trans } } liftβΌlower : (a : Lift Ξ² A) β (_β_ (ππππ‘ Ξ²)) (lift (lower a)) a liftβΌlower a = reflβ lowerβΌlift : β a β (lower {Ξ±}{Ξ²}) (lift a) ββ a lowerβΌlift _ = reflβ liftFunc : {β : Level} β π¨ βΆ ππππ‘ β liftFunc = record { to = lift ; cong = id }