Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 8a80864b07c5f16e9ba9be320c149cfa > files > 15

teyjus-1.0_b31-15mdk.i586.rpm

/*
 * A harness for testing an interpreter for a logic programming 
 * language based on Horn clauses
 */

module  hcinterp_examples.

accumulate  hc_interp.

accum_sig  logic_basic. 

type   prog  (list form) -> o.

prog ((adj a b) :: (adj b c) :: (adj c (f c)) ::
      (all X\ (all Y\ ((adj X Y) imp (path X Y))))  ::
      (all X\ (all Y\ (all Z\ ( ((adj X Y) and (path Y Z)) 
                                           imp (path X Z))))) :: nil).

pathfroma X :- prog Cs, hc_interp Cs (path a X).