From 03d38eb3190eb5e51fb18847fe0792013285bde5 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 8 Apr 2014 15:06:40 +1000 Subject: Reorganising source code --- src/Library/Theorem.hs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Library/Theorem.hs (limited to 'src/Library/Theorem.hs') diff --git a/src/Library/Theorem.hs b/src/Library/Theorem.hs new file mode 100644 index 0000000..fc66cc2 --- /dev/null +++ b/src/Library/Theorem.hs @@ -0,0 +1,19 @@ +module Library.Theorem ( + Theorem(..), + ) where + + + +import qualified Data.Set as Set +import Library.TypeVar +import Library.Term + + + +data Theorem = Theorem { thmHyp :: Set.Set Term + , thmCon :: Term } deriving (Eq, Ord) + + + +instance Show Theorem where + show a = (show . Set.toList . thmHyp $ a) ++ " |- " ++ (show . thmCon $ a) -- cgit