diff options
author | Helmut Grohne <grohne@cs.uni-bonn.de> | 2014-01-28 15:15:12 +0100 |
---|---|---|
committer | Helmut Grohne <grohne@cs.uni-bonn.de> | 2014-01-28 15:15:12 +0100 |
commit | 1c3da162d500cfe885fa21b4d75847c4bcbb2aa1 (patch) | |
tree | 75af4c2ff1fc049ea0a0b02b2104c16a93ab3d6a /Generic.agda | |
parent | b0eb7ada208d33eb82ec27cb7d40b9fa59646c92 (diff) | |
download | bidiragda-1c3da162d500cfe885fa21b4d75847c4bcbb2aa1.tar.gz |
define bff on a partial getlen
The representation chosen is to give both an injection gl₁ and a
function gl₂ (formerly getlen), such that by choosing a non-identity for
gl₁ partiality of getlen can be expressed. An alternative would have
been to allow getlen to return a Maybe ℕ and have get return
maybe (Vec A) ⊤ (getlen n)
thus sending all inputs for which getlen yields nothing to tt. It seems
that while there is no way to obtain a such a getlen predicate from an
arbitrary index Setoid I, it should be possible to manufacture a Setoid
from a predicate. Thanks to Stefan Mehner for the insightful discussion.
Diffstat (limited to 'Generic.agda')
0 files changed, 0 insertions, 0 deletions