Data.Integer.Presburger.Utils
Documentation
groupEither :: [Either a b] -> ([a], [b])Source
extended_gcd :: Integral a => a -> a -> (a, a, a)Source
let (p,q,r) = extended_gcd x y in (x * p + y * q = r) && (gcd x y = r)
presburger-0.4: Cooper's decision procedure for Presburger arithmetic.
Data.Integer.Presburger.Utils
groupEither :: [Either a b] -> ([a], [b])Source
extended_gcd :: Integral a => a -> a -> (a, a, a)Source
let (p,q,r) = extended_gcd x y in (x * p + y * q = r) && (gcd x y = r)