Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Going the speed of light is bad for your age.


tech / sci.math / Really Difficult Routine to finish miniPROLOG.com ................ (only 600 lines of PHP)

SubjectAuthor
* Really Difficult Routine to finish miniPROLOG.com ................Graham Cooper
`- Re: Really Difficult Routine to finish miniPROLOG.comGraham Cooper

1
Really Difficult Routine to finish miniPROLOG.com ................ (only 600 lines of PHP)

<6e162383-3ce6-44ac-8f66-a024b77336cbn@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=133591&group=sci.math#133591

  copy link   Newsgroups: sci.math
X-Received: by 2002:a05:620a:820a:b0:74e:950:f4c6 with SMTP id ow10-20020a05620a820a00b0074e0950f4c6mr4175062qkn.2.1683197468698;
Thu, 04 May 2023 03:51:08 -0700 (PDT)
X-Received: by 2002:a25:403:0:b0:b9e:7d81:4b91 with SMTP id
3-20020a250403000000b00b9e7d814b91mr3426065ybe.9.1683197468506; Thu, 04 May
2023 03:51:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Thu, 4 May 2023 03:51:08 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:8004:11a0:3cee:f0d6:55d5:4d92:b65d;
posting-account=EsDGawkAAAAN6xcF2fi-X0yb3ECD-3_I
NNTP-Posting-Host: 2001:8004:11a0:3cee:f0d6:55d5:4d92:b65d
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6e162383-3ce6-44ac-8f66-a024b77336cbn@googlegroups.com>
Subject: Really Difficult Routine to finish miniPROLOG.com ................
(only 600 lines of PHP)
From: grahamco...@gmail.com (Graham Cooper)
Injection-Date: Thu, 04 May 2023 10:51:08 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2274
 by: Graham Cooper - Thu, 4 May 2023 10:51 UTC

> > PEANO ARITHMETIC is a simple list [1[2[3[4[5]]]]]
> >
> >
> > > > ------- -------- --------
> > > > | 1| . |-----> | 2| . |------> | 3| . |---> NIL
> > > > --|----- --|------ --|-----
> > which is incomplete logic
>
>
> "Isn't what you're writing really just gibberish?"

All your logic seems to be at the level of peano arithmetic

TRY MATCHING STRINGS!

<?

$wrd1 = '[ [ a b C ] [ D e ] g ]';
$wrd2 = '[ [ A B c ] [ [ dd ddd dddd ] e ] G ]';
smatch( $wrd1 , $wrd2 );
showv();

function smatch( $wrd1 , $wrd2 )
{ global $v;

$pos1 = 0;
$pos2 = 0;
$brak1 = 0;
$brak2 = 0;
$wrd1 = 0;
$wrd2 = 0;
while ( ( $wrd1!='') & ($wrd2!='') )
{
while ($brak1 < $brak2)
{
while ($wrd1 < $wrd2)
{
$pos1 = 0;
$char1 = $wrd1[$pos1];
$char2 = $wrd2[$pos2];
if ($char1=='[')
{
$brak1++ ;
$wrd = '';

}

}

function showv()
{ global $v;

echo "****************<br>";
foreach( $v as $x => $y )
{
echo $x . ' = ' . $y . ' ';
}
echo "<br>****************<br>";
}

?>

Re: Really Difficult Routine to finish miniPROLOG.com ................ (only 600 lines of PHP)

<79339c45-8fed-4d3b-9b69-fa8bad076130n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=133712&group=sci.math#133712

  copy link   Newsgroups: sci.math
X-Received: by 2002:a05:620a:24c7:b0:74f:b47f:2681 with SMTP id m7-20020a05620a24c700b0074fb47f2681mr218001qkn.9.1683288373651;
Fri, 05 May 2023 05:06:13 -0700 (PDT)
X-Received: by 2002:a81:7e44:0:b0:55d:8472:4597 with SMTP id
p4-20020a817e44000000b0055d84724597mr785964ywn.10.1683288373472; Fri, 05 May
2023 05:06:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Fri, 5 May 2023 05:06:13 -0700 (PDT)
In-Reply-To: <6e162383-3ce6-44ac-8f66-a024b77336cbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:8004:11a0:3cee:b154:547e:829e:cbdd;
posting-account=EsDGawkAAAAN6xcF2fi-X0yb3ECD-3_I
NNTP-Posting-Host: 2001:8004:11a0:3cee:b154:547e:829e:cbdd
References: <6e162383-3ce6-44ac-8f66-a024b77336cbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <79339c45-8fed-4d3b-9b69-fa8bad076130n@googlegroups.com>
Subject: Re: Really Difficult Routine to finish miniPROLOG.com
................ (only 600 lines of PHP)
From: grahamco...@gmail.com (Graham Cooper)
Injection-Date: Fri, 05 May 2023 12:06:13 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 41
 by: Graham Cooper - Fri, 5 May 2023 12:06 UTC

AND THE ANSWER IS . . .

$wrd1 = '[ X [ aa BB CC ] ] [ [ [ dd ddd dddd ] e ] G ]';
$wrd2 = '[ YY [ AA BB c ] ] [ [ D e ] G ]';

STRINGS [ X [ aa BB CC ] ] [ [ [ dd ddd dddd ] e ] G ] - [ YY [ AA BB c ] ] [ [ D e ] G ]
# X [ aa BB CC ] ]# YY [ AA BB c ] ]#
UNIFY X [ aa BB CC ] ] - YY [ AA BB c ] ]
#YY#
>>> YY = X
>> X = YY
#[ AA BB c ]#
STRINGS [ aa BB CC ] - [ AA BB c ]
# aa BB CC ]# AA BB c ]#
UNIFY aa BB CC ] - AA BB c ]
#AA#
>>> AA = aa
#BB#
>>> BB = BB
>> BB = BB
#c#
>> CC = c
#]#
#]#
# [ [ dd ddd dddd ] e ] G ]# [ D e ] G ]#
UNIFY [ [ dd ddd dddd ] e ] G ] - [ D e ] G ]
#[ D e ]#
STRINGS [ [ dd ddd dddd ] e ] - [ D e ]
# [ dd ddd dddd ] e ]# D e ]#
UNIFY [ dd ddd dddd ] e ] - D e ]
#D#
>>> D = [ dd ddd dddd ]
#e#
#]#
#G#
>>> G = G
>> G = G
#]#
TRUE

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor