diff options
author | Helmut Grohne <grohne@cs.uni-bonn.de> | 2014-03-10 08:17:41 +0100 |
---|---|---|
committer | Helmut Grohne <grohne@cs.uni-bonn.de> | 2014-03-10 08:17:41 +0100 |
commit | dab051e89bbe904587a047d239e79610554d5c91 (patch) | |
tree | ecbcb94e559396d2f2546003d0843fa1da1016bb /Instances.agda | |
parent | 3616445f9a60402701ca00a22e9e6e2fbe95c741 (diff) | |
download | bidiragda-dab051e89bbe904587a047d239e79610554d5c91.tar.gz |
implement a bff on a shaped source type
Add IsShaped and Shaped records describing shapely types as in Jay95.
Implement bff on Shaped and rewrite PartialVecVec to use the vector
shape retaining all proofs on the vector implementation.
Diffstat (limited to 'Instances.agda')
-rw-r--r-- | Instances.agda | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Instances.agda b/Instances.agda new file mode 100644 index 0000000..faff6f8 --- /dev/null +++ b/Instances.agda @@ -0,0 +1,18 @@ +module Instances where + +open import Data.Nat using (ℕ) +open import Data.Vec using (Vec) +open import Function using (id) +open import Relation.Binary.PropositionalEquality using (refl) + +open import Structures using (Shaped) + +VecShaped : Shaped ℕ Vec +VecShaped = record + { arity = id + ; content = id + ; fill = λ _ → id + ; isShaped = record + { content-fill = λ _ → refl + ; fill-content = λ _ _ → refl + } } |