%========================================================================== % % Number of labeled rooted trees with n nodes: n^(n-1). % Is enumerated by EIS A000169 (1,2,9,64,625,7776,117649,2097152,...) % (Except that with these axiomatizations we don't get a solution for % cardinality = 1). % % See also: % % http://www.research.att.com/cgi-bin/access.cgi/as/njas/sequences/eisA.cgi?Anum=A000169 % http://www.iki.fi/~kartturi/matikka/ModFin/A000169.fnd % % http://arp.anu.edu.au/~jks/finder.html % %========================================================================== sort { ELEM cardinality = 2 } function { e: ELEM,ELEM -> bool. f: ELEM -> ELEM { cut } } clause { e(x,x). % Reflexive. FALSE = e(x,y); FALSE = e(y,x); x=y. % Antisymmetric. FALSE = e(x,y); FALSE = e(y,z); e(x,z). % Transitive. x=z; y=z; x=y; FALSE = e(x,z); FALSE = e(y,z); e(x,y); e(y,x). % IF (x FALSE. % which is _true_ predecessor. } setting { verbosity stats: full stack: maximal } end