cryptol-2.10.0: Cryptol: The Language of Cryptography

Cryptol.TypeCheck.Solver.Utils

Description

Synopsis

# Documentation

splitVarSummands :: Type -> [(TVar, Type)] Source #

All ways to split a type in the form: a + t1, where a is a variable.

Check if we can express a type in the form: a + t1.

Check if we can express a type in the form: k + t1, where k is a constant > 0. This assumes that the type has been simplified already, so that constants are floated to the left.

Check if we can express a type in the form: k * t1, where k is a constant > 1. This assumes that the type has been simplified already, so that constants are floated to the left.