Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
offsetIndexOf :: (Eq a, SymVal a) => SList a -> SList a -> SInteger -> SIntegersbv Data.SBV.List offsetIndexOf l sub offset. Retrieves first position of sub at or after offset in l, -1 if there are no occurrences.
>>> prove $ \(l :: SList Int8) sub -> offsetIndexOf l sub 0 .== indexOf l sub Q.E.D. >>> prove $ \(l :: SList Int8) sub i -> i .>= length l .&& length sub .> 0 .=> offsetIndexOf l sub i .== -1 Q.E.D. >>> prove $ \(l :: SList Int8) sub i -> i .> length l .=> offsetIndexOf l sub i .== -1 Q.E.D.
isProperSubsetOf :: (Ord a, SymVal a) => SSet a -> SSet a -> SBoolsbv Data.SBV.Set Proper subset test.
>>> prove $ empty `isProperSubsetOf` (full :: SSet Integer) Q.E.D.
>>> prove $ \x (s :: SSet Integer) -> s `isProperSubsetOf` (x `insert` s) Falsifiable. Counter-example: s0 = 2 :: Integer s1 = U :: {Integer}>>> prove $ \x (s :: SSet Integer) -> x `notMember` s .=> s `isProperSubsetOf` (x `insert` s) Q.E.D.
>>> prove $ \x (s :: SSet Integer) -> (x `delete` s) `isProperSubsetOf` s Falsifiable. Counter-example: s0 = 2 :: Integer s1 = U - {2,3} :: {Integer}>>> prove $ \x (s :: SSet Integer) -> x `member` s .=> (x `delete` s) `isProperSubsetOf` s Q.E.D.
isSubsetOf :: (Ord a, SymVal a) => SSet a -> SSet a -> SBoolsbv Data.SBV.Set Subset test.
>>> prove $ empty `isSubsetOf` (full :: SSet Integer) Q.E.D.
>>> prove $ \x (s :: SSet Integer) -> s `isSubsetOf` (x `insert` s) Q.E.D.
>>> prove $ \x (s :: SSet Integer) -> (x `delete` s) `isSubsetOf` s Q.E.D.
offsetIndexOf :: SString -> SString -> SInteger -> SIntegersbv Data.SBV.String offsetIndexOf s sub offset. Retrieves first position of sub at or after offset in s, -1 if there are no occurrences.
>>> prove $ \s sub -> offsetIndexOf s sub 0 .== indexOf s sub Q.E.D. >>> prove $ \s sub i -> i .>= length s .&& length sub .> 0 .=> offsetIndexOf s sub i .== -1 Q.E.D. >>> prove $ \s sub i -> i .> length s .=> offsetIndexOf s sub i .== -1 Q.E.D.
cgSetDriverValues :: [Integer] -> SBVCodeGen ()sbv Data.SBV.Tools.CodeGen Sets driver program run time values, useful for generating programs with fixed drivers for testing. Default: None, i.e., use random values.
type
ConstraintSet = Symbolic ()sbv Data.SBV.Trans A constraint set is a symbolic program that returns no values. The idea is that the constraints/min-max goals will serve as the collection of constraints that will be used for sat/optimize calls.
-
sbv Data.SBV.Trans No documentation available.
isSet :: HasKind a => a -> Boolsbv Data.SBV.Trans No documentation available.
sSetBitTo :: SFiniteBits a => SBV a -> SBV a -> SBool -> SBV asbv Data.SBV.Trans Variant of setBitTo when the index is symbolic. If the index it out-of-bounds, then the result is underspecified.
solverSetOptions :: SMTConfig -> [SMTOption]sbv Data.SBV.Trans Options to set as we start the solver