:- use_module(library(chr)). :- chr_constraint gcd/1. gcd(0) <=> true. gcd(N) \ gcd(M) <=> N=