tct-2.0.1: A Complexity Analyser for Term Rewrite Systems

Portabilityunportable
Stabilityunstable
MaintainerAndreas Schnabl <andreas.schnabl@uibk.ac.at>
Safe HaskellSafe-Infered

Tct.Method.Poly.PolynomialInterpretation

Contents

Description

This module defines polynomial interpretations.

Synopsis

Shapes

data SimplePolyShape

This datatype reflects standard shapes for polynomial interpretations, as found in the literature.

Constructors for Custom Shapes

data SimpleMonomial

A SimpleMonomial denotes a monomial with variables in Variable, and can be build using ^^^, constant and mono.

Instances

(^^^) :: a -> Int -> Power a

v ^^^ k denotes exponentiation of variable v with constant k.

mono :: [Power Variable] -> SimpleMonomial

mono [v1^^^k1,...,vn^^^kn] constructs the SimpleMonomial c * v1^k1 * ... * v1^kn where c is unique for the constructed monomial.

constant :: SimpleMonomial

Returns a new monomial without variables.

boolCoefficient :: SimpleMonomial -> SimpleMonomial

Returns a new monomial whose coefficient is guaranteed to be 0 or 1.