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.Matrix.MatrixInterpretation

Description

This module defines matrix interpretations.

Documentation

data LInter a

Constructors

LI 

data MIVar

Constructors

MIVar 

Fields

restrict :: Bool
 
varfun :: Symbol
 
argpos :: Int
 
varrow :: Int
 
varcol :: Int
 

type MatrixCreate a = Symbol -> Int -> Int -> Matrix a

pprintLI :: (Eq a, PrettyPrintable a, Semiring a) => String -> Int -> (Variable -> Doc) -> LInter a -> Doc

liProd :: Semiring a => Matrix a -> LInter a -> LInter a

liBigPlus :: Semiring a => Vector a -> [LInter a] -> LInter a