tct-2.0.1: A Complexity Analyser for Term Rewrite Systems

Portabilityunportable
Stabilityunstable
MaintainerMartin Avanzini <martin.avanzini@uibk.ac.at>
Safe HaskellSafe-Infered

Tct.Encoding.SafeMapping

Contents

Description

This module implements safe mapping, together with a a SAT encoding. By convention, n-ary function symbols admit argument positions '[1..n]'.

Synopsis

Safe Mappings

The empty safe argument filtering.

Predicate that checks wether the given argument position of the given symbol is safe.

Set ith argument position of given symbol safe.

List version of setSafe.

Returns the list of safe argument positions.

Sat Encoding

Add this constraint for a valid SAT encoding.

isSafeP :: Eq l => Symbol -> Int -> PropFormula l

The Formula 'isSafeP f i' reflects that the ith argument position of f is safe.