Ciao Preprocessor (integrated Alpha version)
 | This is an alpha distribution, meant only for testing. Please do let us 
 | know at ciaopp-bugclip.dia.fi.upm.es any problems you may have.

{In /tmp/tmpylFoIY/numeral.pl
{loaded in 3356.21 msec.}
{preprocessed for plai in 4.0 msec.}
{analyzed by plai using det with local-control off in 0.0 msec.}
{written file /tmp/tmpylFoIY/numeral_det_co.pl}
:- module(_1,[num/1],[assertions]).

:- entry num(A)
         : ground(A).

:- true pred num(A)
         : ( ground([A]), gnd(A) )
        => ( ground([A]), rt3(A) )
         + ( is_det, mut_exclusive ).

num(0).
num(s(X)) :-
        num(X).


:- regtype rt4/1.

rt4(0).
rt4(s(A)) :-
        rt4(A).


:- regtype rt3/1.

rt3(0).
rt3(s(A)) :-
        rt4(A).