ideas-math-types-1.0: Common types for mathematical domain reasoners

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

Domain.Logic.Generator

Contents

Description

 
Synopsis

Documentation

generateLevel :: Difficulty -> (Gen SLogic, (Int, Int)) Source #

equalLogicA :: Eq a => Logic a -> Logic a -> Bool Source #

Equality modulo associativity of operators

equalLogicACI :: Ord a => Logic a -> Logic a -> Bool Source #

Equality modulo associativitycommutativityidempotency of operators, and there units/absorbing elements

Orphan instances

Arbitrary SLogic Source # 
Instance details

Methods

arbitrary :: Gen SLogic

shrink :: SLogic -> [SLogic]

CoArbitrary SLogic Source # 
Instance details

Methods

coarbitrary :: SLogic -> Gen b -> Gen b