On May 22, 8:54 am, Charlie-Boo <
shymath...@gmail.com> wrote:
> On May 20, 1:33 am, Graham Cooper <
grahamcoop...@gmail.com> wrote:
>
>
>
> > STEP 1: START UP YOUR FAVORITE PROLOG EDITOR!
>
> > ENTER:
www.BLoCKPROLOG.com
> > [LIST]
>
> > STEP 2: ENTER THE FOLLOWING TEST CODE!
>
> > [NEW]
> > test1 a.
> > test1 b.
> > test2 X.
> > test3 [sub a b c].
>
> > STEP 3: CHECK THE FOLLOWING COMMAND RESULTS!
>
> > test1 a ? CONFIRM!
> > test1 b ? CONFIRM!
> > test1 c ? NOT FOUND!
> > test1 V ?
>
> > >V = a
>
> > test2 a ? CONFIRM!
> > test2 V ?
>
> > >V = X1
>
> > test2 [sub a b c] ? CONFIRM!
> > test2 [sub x y z] ? CONFIRM!
>
> > test3 [sub a b c] ? CONFIRM!
> > test3 [sub x y z] ? NOT FOUND!
> > test3 V ?
>
> > >V = sub a b c
>
> > -------------
>
> > ALL SYSTEMS CHECK!
>
> > Herc
> > --
www.BLOCKPROLOG.com (b)eta
>
> 1. Do you think Prolog is logically different from any other
> programming language?
>
PROLOG uses a MATCHING algorithm rather than EQUALITY '='
Consider ZFC SET EQUALITY by extension.
SET EQUALITY
SUBSET( S , T ) <-> AxeS->xeT
EQUALS( S , T ) <-> AxeS->xeT & AxeT->xeS
-----------------------------
What if S has a set of its own?
S = { Q , 4 , 3, 6 }
T = { {7} , 4 , 3 , 6}
-----------------------------
AXIOM of Equality will not be able to work out if S=T.
PROLOG goes a step further and BINDS Q={7}
> 2. Can you list the prime numbers between A and B for any A,B in it?
> (by typing A and B in somewhere)
> 3. Can you tell if A is a factor of B for any A,B in it? (by typing A
> and B in somewhere)
>
> C-B
Why not? As |input| increases you need more iterations.
You might be able to search "Arithmetic Space" for equations of the
form:
+(-(/(23.33),23)+(23,#(23,32..........)))) X +(-(/(23.33),
23)+(23,#(23,32..........))))
The Public Key maker must have generated his 2 primes somehow!
Herc
--
www.BLOCKPROLOG.com