summaryrefslogtreecommitdiff
path: root/Theorem.hs
blob: 699c2e85d0eb0d6a348566d48b58ab4bbbe634db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module Theorem (
	Theorem(..),

	nullThm
	) where



import qualified Data.Set as Set
import TypeVar
import 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)



nullThm :: Theorem
nullThm = Theorem Set.empty nullTerm