aboutsummaryrefslogtreecommitdiff
path: root/src/Spec/Encoding.v
diff options
context:
space:
mode:
authorGravatar jadep <jade.philipoom@gmail.com>2016-04-28 10:21:25 -0400
committerGravatar jadep <jade.philipoom@gmail.com>2016-04-28 10:21:25 -0400
commit248282849e9b287fe817e64ccf53e09fa3991cbe (patch)
treec42e25e03392d347e3351af1499ea00818d53aa3 /src/Spec/Encoding.v
parent163c4e43ef96575c14b6473734a6bc3f88f7a8c3 (diff)
Completed encoding reorganization; factored sign_bit out of PointEncodings and finished encoding admits.
Diffstat (limited to 'src/Spec/Encoding.v')
-rw-r--r--src/Spec/Encoding.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Spec/Encoding.v b/src/Spec/Encoding.v
index 9a2d5e5ed..17dcb4b3e 100644
--- a/src/Spec/Encoding.v
+++ b/src/Spec/Encoding.v
@@ -1,7 +1,8 @@
Class Encoding (T B:Type) := {
enc : T -> B ;
dec : B -> option T ;
- encoding_valid : forall x, dec (enc x) = Some x
+ encoding_valid : forall x, dec (enc x) = Some x ;
+ encoding_canonical : forall x_enc x, dec x_enc = Some x -> enc x = x_enc
}.
Notation "'encoding' 'of' T 'as' B" := (Encoding T B) (at level 50). \ No newline at end of file