on master help sign in
Fixed symmetric property
commit98b1b0d93415352aa62ac5194a584ed4b2137a1b authorArmando Santos <armandoifsantos@gmail.com> dateThu 16 Jan 2020, 21:24 (7 years ago) parent83b9280
1 file changed+2−2
src/LAoP/Relation/Internal.hs+2−2
src/LAoP/Relation/Internal.hs+2−2
@@ -362,9 +362,9 @@ bijective r = injective r && surjective r
362362transitive :: Relation a a -> Bool
363363transitive r = (r `comp` r) `sse` r
364364
365−-- | A 'Relation' @r@ is symmetric iff @r == r@
365+-- | A 'Relation' @r@ is symmetric iff @r == conv r@
366366symmetric :: Relation a a -> Bool
367−symmetric r = r == r
367+symmetric r = r == conv r
368368
369369-- | A 'Relation' @r@ is anti-symmetric iff @(r `'intersection'` 'conv' r) `'sse'` 'identity'@
370370antiSymmetric :: (KnownNat (I.Count (I.Normalize a)), I.FromLists Boolean (I.Normalize a) (I.Normalize a)) => Relation a a -> Bool