Logiweb(TM)

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

Up Help

The "pyk" aspect

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

The "value" aspect

define value of pterm2 ( t , s , c ) as norm { t is val : { s is val : { c is val : LET t metadef ( c ) BE { asterisk IN LET asterisk BE { d IN LET if d = "all" then { t first :: { t first } } :: s else s BE { asterisk IN LET asterisk BE { s IN if d != "var" then t head :: pterm2* ( t tail , s , c ) else LET lookup ( t , s , true ) BE { asterisk IN LET asterisk BE { n IN if n = true then t else n } } } } } } } } } 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