diff options
author | Jason Gross <jagro@google.com> | 2016-07-29 11:49:36 -0700 |
---|---|---|
committer | Jason Gross <jagro@google.com> | 2016-07-29 11:49:36 -0700 |
commit | f4e85257de36e77fa45f1e60e4cfea8b3378f4f8 (patch) | |
tree | 9a5f2408cb56573c04d7a21dd622de680486d1b8 | |
parent | c701e6c51faf237dfbd097a81b7a08c92ea1f242 (diff) |
Make IsIso a class
-rw-r--r-- | src/Util/Isomorphism.v | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Util/Isomorphism.v b/src/Util/Isomorphism.v index a02afc3bf..0e6553dcd 100644 --- a/src/Util/Isomorphism.v +++ b/src/Util/Isomorphism.v @@ -1,4 +1,8 @@ -Record IsIso {A B} (f : A -> B) := +Class IsIso {A B} (f : A -> B) := { iso_inv : B -> A; is_right_inv : forall x, f (iso_inv x) = x; is_left_inv : forall x, iso_inv (f x) = x }. + +Arguments iso_inv {_ _} _ {_} _. +Arguments is_right_inv {_ _} _ {_} _. +Arguments is_left_inv {_ _} _ {_} _. |