diff options
author | Chloe Brown <chloe.brown.00@outlook.com> | 2021-03-05 16:24:02 +0000 |
---|---|---|
committer | Chloe Brown <chloe.brown.00@outlook.com> | 2021-03-05 16:24:02 +0000 |
commit | 701c0a2740b80bfb7f01fa426d18ef656a81f84d (patch) | |
tree | 8f2a9242fc53e65d5eac928e7d9914cb88757f43 | |
parent | a2bca9eb599e8109ba91e257ee223b39f64703c1 (diff) |
Add lifted types.
-rw-r--r-- | src/Cfe/Type/Construct/Lift.agda | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Cfe/Type/Construct/Lift.agda b/src/Cfe/Type/Construct/Lift.agda new file mode 100644 index 0000000..9f8e439 --- /dev/null +++ b/src/Cfe/Type/Construct/Lift.agda @@ -0,0 +1,20 @@ +{-# OPTIONS --without-K --safe #-} + +open import Relation.Binary using (Setoid) + +module Cfe.Type.Construct.Lift + {c ℓ} (over : Setoid c ℓ) + where + +open import Cfe.Type over +open import Level as L hiding (Lift) +open import Function + +Lift : ∀ {fℓ₁ lℓ₁} fℓ₂ lℓ₂ → Type fℓ₁ lℓ₁ → Type (fℓ₁ ⊔ fℓ₂) (lℓ₁ ⊔ lℓ₂) +Lift fℓ₂ lℓ₂ τ = record + { Null = τ.Null + ; First = L.Lift fℓ₂ ∘ τ.First + ; Flast = L.Lift lℓ₂ ∘ τ.Flast + } + where + module τ = Type τ |