Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
sbv Documentation.SBV.Examples.KnuckleDragger.Numeric Prove that sum of numbers from 0 to n is n*(n-1)/2.
>>> sumProof Inductive lemma: sum_correct Step: Base Q.E.D. Step: 1 Q.E.D. Step: 2 Q.E.D. Step: 3 Q.E.D. Result: Q.E.D. [Proven] sum_correct
-
sbv Documentation.SBV.Examples.KnuckleDragger.Numeric Prove that sum of square of numbers from 0 to n is n*(n+1)*(2n+1)/6.
>>> sumSquareProof Inductive lemma: sumSquare_correct Step: Base Q.E.D. Step: 1 Q.E.D. Step: 2 Q.E.D. Step: 3 Q.E.D. Result: Q.E.D. [Proven] sumSquare_correct
sumToN :: SInteger -> SIntegersbv Documentation.SBV.Examples.Misc.Definitions Sum of numbers from 0 to the given number. Since this is a recursive definition, we cannot simply symbolically simulate it as it wouldn't terminat. So, we use the function generation facilities to define it directly in SMTLib. Note how the function itself takes a "recursive version" of itself, and all recursive calls are made with this name.
-
sbv Documentation.SBV.Examples.Misc.Definitions Prove that sumToN works as expected. We have:
>>> sumToNExample Satisfiable. Model: s0 = 5 :: Integer s1 = 15 :: Integer
sumCorrect :: IO (InductionResult (S Integer))sbv Documentation.SBV.Examples.ProofTools.Sum Encoding partial correctness of the sum algorithm. We have:
>>> sumCorrect Q.E.D.
sumTree :: Num a => Tree a -> atree-fun Math.TreeFun.Tree Get the sum of a tree for a tree with numbered labels
-
what4 What4.Expr.WeightedSum No documentation available.
-
what4 What4.Expr.WeightedSum Retrieve the constant addend of the weighted sum.
sumRepr :: WeightedSum f sr -> SemiRingRepr srwhat4 What4.Expr.WeightedSum Runtime representation of the semiring for this sum.
sumExpr :: SupportTermOps v => [v] -> vwhat4 What4.Protocol.SMTWriter Add a list of values together.