| Copyright | (c) Levent Erkok |
|---|---|
| License | BSD3 |
| Maintainer | erkokl@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Documentation.SBV.Examples.Puzzles.Drinker
Description
SBV proof of the drinker paradox: http://en.wikipedia.org/wiki/Drinker_paradox
Let P be the non-empty set of people in a bar. The theorem says if there is somebody drinking in the bar, then everybody is drinking in the bar. The general formulation is:
∃x : P. D(x) -> ∀y : P. D(y)
Documentation
Declare a carrier data-type in Haskell named P, representing all the people in a bar.
Instances
| Arbitrary P Source # | |
| SymVal P Source # | |
Defined in Documentation.SBV.Examples.Puzzles.Drinker Methods mkSymVal :: MonadSymbolic m => VarContext -> Maybe String -> m (SBV P) Source # mkSymValInit :: State -> SBV P -> IO () Source # literal :: P -> SBV P Source # isConcretely :: SBV P -> (P -> Bool) -> Bool Source # minMaxBound :: Maybe (P, P) Source # free :: MonadSymbolic m => String -> m (SBV P) Source # free_ :: MonadSymbolic m => m (SBV P) Source # mkFreeVars :: MonadSymbolic m => Int -> m [SBV P] Source # symbolic :: MonadSymbolic m => String -> m (SBV P) Source # symbolics :: MonadSymbolic m => [String] -> m [SBV P] Source # unliteral :: SBV P -> Maybe P Source # unlitCV :: SBV P -> Maybe (Kind, CVal) Source # | |
| HasKind P Source # | |
Defined in Documentation.SBV.Examples.Puzzles.Drinker | |
_undefiner_P :: a Source #
Autogenerated definition to avoid unused-variable warnings from GHC.
Declare the uninterpret function d, standing for drinking. For each person, this function
assigns whether they are drinking; but is otherwise completely uninterpreted. (i.e., our theorem
will be true for all such functions.)