@@ -39,10 +39,10 @@ isoSym (MkIso to from toFrom fromTo) = MkIso from to fromTo toFrom
40||| Disjunction is commutative
40||| Disjunction is commutative
41eitherComm : Iso (Either a b) (Either b a)
41eitherComm : Iso (Either a b) (Either b a)
42−eitherComm = MkIso swap swap swapSwap swapSwap
42+eitherComm = MkIso mirror mirror mirrorMirror mirrorMirror
43− where swapSwap : (e : Either a' b') -> swap (swap e) = e
43+ where mirrorMirror : (e : Either a' b') -> mirror (mirror e) = e
44− swapSwap (Left x) = Refl
44+ mirrorMirror (Left x) = Refl
45− swapSwap (Right x) = Refl
45+ mirrorMirror (Right x) = Refl
47||| Disjunction is associative
47||| Disjunction is associative
48eitherAssoc : Iso (Either (Either a b) c) (Either a (Either b c))
48eitherAssoc : Iso (Either (Either a b) c) (Either a (Either b c))
@@ -113,10 +113,7 @@ eitherCongRight i = eitherCong isoRefl i
113||| Conjunction is commutative
113||| Conjunction is commutative
114pairComm : Iso (a, b) (b, a)
114pairComm : Iso (a, b) (b, a)
115pairComm = MkIso swap swap swapSwap swapSwap
115pairComm = MkIso swap swap swapSwap swapSwap
116− where swap : (a', b') -> (b', a')
117− swap (x, y) = (y, x)
119− swapSwap : (x : (a', b')) -> swap (swap x) = x
116+ where swapSwap : (x : (a', b')) -> swap (swap x) = x
120 swapSwap (x, y) = Refl
117 swapSwap (x, y) = Refl
122||| Conjunction is associative
119||| Conjunction is associative