less prototype, less bad code implementation of CCHM type theory
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
402 B

  1. module Elab.Eval.Formula where
  2. import Syntax
  3. import Data.Map.Strict (Map)
  4. import Data.Set (Set)
  5. toDnf :: Value -> Maybe Value
  6. type Nf = Set (Set Value)
  7. normalise :: Value -> Nf
  8. compareDNFs :: Value -> Value -> Bool
  9. swap :: Ord b => b -> b -> (b, b)
  10. possible :: Map Head Bool -> Value -> (Bool, Map Head Bool)
  11. truthAssignments :: NFEndp -> Map Name (NFType, NFEndp) -> [Map Name (NFType, NFEndp)]