{-# OPTIONS --cubical-compatible --safe #-}
module Function.Dependent.Bundles where
open import Level using (Level; _⊔_)
open import Relation.Binary.Bundles using (Setoid)
open import Relation.Binary.Indexed.Heterogeneous using (IndexedSetoid)
private
variable
a b ℓ₁ ℓ₂ : Level
module _
(From : Setoid a ℓ₁)
(To : IndexedSetoid (Setoid.Carrier From) b ℓ₂)
where
open Setoid From using () renaming (Carrier to A; _≈_ to _≈₁_)
open IndexedSetoid To using () renaming (Carrier to B; _≈_ to _≈₂_)
record Func : Set (a ⊔ b ⊔ ℓ₁ ⊔ ℓ₂) where
field
to : (x : A) → B x
cong : ∀ {x y} → x ≈₁ y → to x ≈₂ to y