Undef _ -> text "undefined"
IdP e0 e1 e2 -> text "IdP" <+> showTers [e0,e1,e2]
Path i e -> char '<' <> text (show i) <> char '>' <+> showTer e
- AppFormula e phi -> showTer1 e <> char '@' <> text (show phi)
+ AppFormula e phi -> showTer1 e <+> char '@' <+> text (show phi)
Comp e0 e1 es -> text "comp" <+> showTers [e0,e1] <+> text (showSystem es)
Trans e0 e1 -> text "transport" <+> showTers [e0,e1]
show (a :/\: b) = show1 a ++ " /\\ " ++ show1 b
where show1 v@(a :\/: b) = "(" ++ show v ++ ")"
show1 a = show a
-
+
arbFormula :: [Name] -> Int -> Gen Formula
arbFormula names s =
frequency [ (1, Dir <$> arbitrary)
showSystem :: Show a => System a -> String
showSystem ts =
- "[ " ++ concat (intersperse ", " [ showFace alpha ++ " |-> " ++ show u
+ "[ " ++ concat (intersperse ", " [ showFace alpha ++ " -> " ++ show u
| (alpha,u) <- Map.toList ts ]) ++ " ]"
insertSystem :: Face -> a -> System a -> System a