Advise-me-0.1: Assessment services for the Advise-Me project

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell98

Recognize.Strategy.Rules

Description

Defines a set of Ideas rules that may be used for rewriting expressions.

Synopsis

Documentation

liftRule :: Rule (Equation Expr) -> Rule (Relation Expr) Source #

Lifts any rule that may be applied to an equation to a rule that can be applied to relations

removeTimes :: Rule (Relation Expr) Source #

Allows a rewrite that attempts to remove multiplications by division

>>> 2 * 2 + 4 * a = 8
>>> 2 + 2 * a = 4

mergeNums :: Rule Expr Source #

Collect (natural) numbers

mergeVars :: Rule Expr Source #

Collect variables