@@ -8,12 +8,12 @@ import Control.Category
8%access public export
8%access public export
10||| An isomorphism between two types
10||| An isomorphism between two types
11−data Iso : Type -> Type -> Type where
11+record Iso a b where
12− MkIso : (to : a -> b) ->
13+ to : a -> b
13− (from : b -> a) ->
14+ from : b -> a
14− (toFrom : (y : b) -> to (from y) = y) ->
15+ toFrom : (y : b) -> to (from y) = y
15− (fromTo : (x : a) -> from (to x) = x) ->
16+ fromTo : (x : a) -> from (to x) = x
18-- Isomorphism properties
18-- Isomorphism properties