Logiweb(TM)

Logiweb aspects of inst2 ( " , " , " , " , " ) in pyk

Up Help

The "pyk" aspect

Define pyk of inst2 ( asterisk , asterisk , asterisk , asterisk , asterisk ) as "inst2 ( "! , "! , "! , "! , "! )" end define

The "value" aspect

define value of inst2 ( x , y , s , b , c ) as norm { x is val : { y is val : { s is val : { b is val : { c is val : LET lookup ( x , s , false ) BE { asterisk IN LET asterisk BE { d IN if d then { x :: y } :: s else if d pairp then if inst3 ( d , b , c ) then s else exception else if .not. { x r= y } then exception else if .not. { x metadef ( c ) } then exception else LET x valuedef ( c ) BE { asterisk IN LET asterisk BE { d IN if d = 1 then if x first = { y first } then s else exception else if d != 0 then inst2* ( x tail , y tail , s , b , c ) else LET x first BE { asterisk IN LET asterisk BE { v IN if .not. { v = { y first } } then exception else if .not. { x objectvar ( c ) } then exception else LET remove ( v , s ) BE { asterisk IN LET asterisk BE { s IN inst2 ( x second , y second , s , b set+ v , c ) } } } } } } } } } } } } } end define

The pyk compiler, version 0.1.9 by Klaus Grue,
GRD-2007-07-12.UTC:20:13:13.678589 = MJD-54293.TAI:20:13:46.678589 = LGT-4690988026678589e-6