Logiweb(TM)

Logiweb aspects of unitac-search1 ( " , " , " , " , " ) in pyk

Up Help

The "pyk" aspect

Define pyk of unitac-search1 ( asterisk , asterisk , asterisk , asterisk , asterisk ) as "unitac-search1 ( "! , "! , "! , "! , "! )" end define

The "value" aspect

define value of unitac-search1 ( r , T , p , a , c ) as norm { r is val : { T is val : { p is val : { a is val : { c is val : if r t= T then { reverse ( a ) :: p } raise else LET T stmt-rhs ( c ) BE { asterisk IN LET asterisk BE { T prime IN if .not. { T prime } then unitac-search1 ( r , T prime , reverse ( a ) :: p , T prime :: <<>> , c ) else if T metadef ( c ) != "plus" then true else { unitac-search1 ( r , T first , p , "head" :: a , c ) .and. unitac-search1 ( r , T second , p , "tail" :: a , c ) } } } } } } } } end define

The pyk compiler, version 0.1.9 by Klaus Grue,
GRD-2007-07-12.UTC:20:11:58.175987 = MJD-54293.TAI:20:12:31.175987 = LGT-4690987951175987e-6