cryptol-2.7.0: Cryptol: The Language of Cryptography

Copyright(c) 2013-2016 Galois Inc.
LicenseBSD3
Maintainercryptol@galois.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Cryptol.TypeCheck.Solver.Class

Description

Solving class constraints.

Synopsis

Documentation

classStep :: Prop -> Solved Source #

Solve class constraints. If not, then we return Nothing. If solved, then we return Just a list of sub-goals.

solveZeroInst :: Type -> Solved Source #

Solve a Zero constraint by instance, if possible.

solveLogicInst :: Type -> Solved Source #

Solve a Logic constraint by instance, if possible.

solveArithInst :: Type -> Solved Source #

Solve an Arith constraint by instance, if possible.

solveCmpInst :: Type -> Solved Source #

Solve Cmp constraints.

solveSignedCmpInst :: Type -> Solved Source #

Solve SignedCmp constraints.

solveLiteralInst :: Type -> Type -> Solved Source #

Solve Literal constraints.

expandProp :: Prop -> [Prop] Source #

Add propositions that are implied by the given one. The result contains the orignal proposition, and maybe some more.