Hi and welcome to a PhD thesis that is a lot more then it looks ;-) Just kidding but this should tell you I am going to take some unconvential twists in the journey through my research. Anyways here the TL;DR of my thesis:
* Demostrate how to make a self running distrubted potetentially global computer
* Kernless OS and a lot more fun ideas
* A single NAND is sufficent to be Turing complete
* Adding dataflow to our tool chest at the gate level allows us to pull some real magic theortically and practically
* And now the holy grails I am sure you all know I am attempting to claim:
1. P!=NP end of story!
2. Unbreakable encryption
3. Oracles are logical impossible to construct
4. 100% secure computing
5. A single unified computational model that can explain all computation including those hinted at by Turning in his work up to UTM’s but never explored by theortical CS
6. Heresy #I: Challenging the traditional definition that decidability implies computability by proposing the existence of computable but not decidable processes.
(soon to be followed by Heresy #9)
* A proof by example of using experimental and other non-mathy evidence in TCS
Now a word about the format and structure of this thesis. It is designed and formated with the following goals in mind:
* Allow me to get all my ideas out in the open for academic debate in a way that is accessible to any software engineer that has the equivelent of a BA in CS (and anyone else with equivelent knowledge) but at the same does not sufficate me in a bunch of dense academic writeups that take my relatively simple and straight forward ideas and turn it into a bunch of squekly lines and funny symbols (I have dyscalclia so “I hate math!!!” but will use it when needed to get an idea across but only as a last resort)
In other words I wrote this thesis accessible to someone like me before I started down the recursive rabitt holes in the more theortical parts. Also when I learned theortical CS I did all my homework as dialogs and find that is how I still think about stuff. Thus I will expand the theortical section into a sort of a freeflowing dream dialog that still maintains the academic rigor needed to show I am not full of it. The other more practicle sections will be written in more traditional format but largely as if it was documentation that already assumes you know the theory.
So lets dive in!
Assistant
The text discusses the concept of Turing completeness, which is a property of a computational system that can simulate any Turing machine, given enough resources. The author argues that a single NAND gate is sufficient to be Turing complete, as long as it has a finite but unbounded tape that loops. The author also claims that adding dataflow to the system at the gate level allows for some interesting theoretical and practical magic. The author presents several proofs and theorems to support their claims, including the proof that a single NAND gate is Turing complete, the proof of the universality of NAND/NOR gates, and the proof that a CANT (Conditional AND NOT) gate can be constructed from a NOR gate. The author also discusses the implications of these proofs, including the possibility of unbreakable encryption and the existence of computable but not decidable processes.
Chapter I: The Dream
code
In the mid-1980’s I read a serious of cyperpunk books that really openned my eyes to what might be possible as well a misunderstanding of the inner workings of the Japanese research project TRON as well some rather strange notions about the movie of the same name. What crystalized out in 1990 or so was the vision of a world wide “smart” network (i.e. one that not just route data but also manipulated it in route in others *MUCH* smarter then the Internet) run by a full decenteralized system. This idea has gone through several iterations and in 2008 the idea of a kernaless OS crystalized after I read VonRoy’s intro to dataflow programming using Mozart/OZ. Then my hopes where dashed when it turned out since Mozart/OZ used an abstract store not mappable onto real hardware it could not be used to make an OS (damn it!). Then I read Barak when I was preparing to give a informal crash course on theortical CS to some friends and CIRC-NAND really fired my imagination but it lacked dataflow. I have since figured how to make this combo work and the many interesting things just pop out for the ride thats why in an earlier set of notes I called them NP-complete easter eggs. As the just fell out of the work I was doing to make the above OS real.
I tend to do my best thinking in day dream dialogs and such so lets use that so I do not have to dive into dense jargon that would only confuse me. I am sure at some point me or someone else will write all this up in one those dense journal articles and I will be confused as hell by my own work because it is too mathy.
But before we dive into the day-dream version of my theortical work some ground rules:
1. If at any time I am proved wrong by the dream I immediately wake up and get to keep what I have proved so far and forget the rest (i.e. the thesis will not make any unsupportable claims in TCS)
2. I am allowed to present my evidence in what ever form and media I see fit (will stick to paper mostly)
3. I am allowed to delay proof of a statement as long I prove it eventually this is to enable us have a clear narative without recursioning into our blackboards (something TCS is very good at!)
4. As to other rules there are no absolutes including this statement (I will confine my self to actual real TCS not computational metaphysics and such unless I need to use such essortic stuff to prove a real TCS point).
Ready to join me in my dreams?
1.1. I don’t see no rabbitt hole, do you?!??!
code
Disconnected voice: How did I get here this is a not a decidable space.
Me: Calm down Alan your just here in my dream to help write my thesis by you and other characters as needed with your goal being to force me to make a convining argument for any statement I make no how absurd it may be.
Alan Turing: I heard you claim that P!=NP I want to know more
Me: Hold your horses just like it took a 10 or 15 pages in On Computable Numbers to fully define a UTM before using it to show the HALT’ing problem was undecidable. There are some primilinary background and other preliminaries we need to cover first. So what start with my first claim that a single NAND with a finite but unbound tape that loops is 100% identical an infinite UTM.
The academic community: We interupt this dream for an important notice: this entire thesis format and approach is unrigors and can not possibely be considered a proper thesis
Me: Not only can it be a valid format it has been in the past for many important fundimental proofs for example Socarties used the Dialog of Xeon to prove that the limit funcitons used in calculus will never reach it’s limit only get infinitely close. (BTW I repurpose that proof a number of times in this thesis). Besides we are wasting time on format arguments while I still have plenty of the youth of Athen’s to corrupt.
Alan: Go get them the above is the same kind to thinking that almost prevented me from publishing on computable numbers or considered unsuitable to break Engima (I was too unconventional). Also it is the same theory that drove me kill my self because of being gay in the 1950’s in the UK. Forget that I won WWII for the Allies and all that (or invented theortical CS). So please continue with the real points your making not the ones from all these stuffed shirts in ivory towers.
Me: A small side note before going back to the dream this dream has absolutely no regard for the “forth wall of reality” and therefor I will as the “dreamer” (not the dremee me) make asides. Now to our regulary schedule mock thesis defense (dream mode).
Alan: Do you agree that anything that is mathimatically identical to a UTM is in fact a UTM regardless of it is made out of silicon, DNA, LEGO’s, etc. the only difference is how fast it operates?
Alan: Yes I do but except for the ability to abstract what does that buy us?
Me: It allows me to make weird thought experiments and other things that as long I show they are informally arguably UTM’s of some kind regardless of how they are built for example do you agree the desktop computer our dreamer is using to write this dialog on is in fact a finite UTM? By finite I mean it has the mathimatical equivelent of a finite tape.
Alan: Yes but ….
Me: But, nothing.
Do you also agree it is from the purely computational view made up of logic gates?
Alan: Yes
Me: Do you agree that a NAND and/or NOR is well known to be the universal gates (I will reprove this later)?
Alan: Yes
Me: For self-evident reasons (see “CIRC-NAND proof cliff notes”) the entire system is decomposible to NAND (or NOR’s as the case may be). In order to examine in detail how a NAND based computer might operate Evil Spock can you explain to us how to make a “Flintstone computer” out of bear skins and stone knives?
Evil Spock: It is only logical that a modern stonage family might of built a computer after all it was a cartoon. So let’s look at the set up first of all we know that the only reasonablely good writing surface we have is a stone tablet which are used by some of the modern businessses to data processing with. Since stone tablets are weird that can only hold a hole or no hole in them. Now let’s line upp a bunch of these tablets up to as inputs to some magical new device called a NAND [detailed later how it actual works] and out comes the following truth table:
In1 In2 Out
0 0 1
0 1 1
1 0 1
1 1 0
The output is made from an infinite supply of tablets that are all no hole unless our output is 1 and then we put a hole in it.
Does everyone agree this satisifies the requirement for a NAND gate regardless of it’s construction?
Me: Yes (of course this my dream)
Alan: Provisionally
Me: Do you agree that the real decisions being made are based on what the current state of In1 and In2 are?
Ada: Symbolically that is correct
Me: If we symbolically consider the inputs as being either 0 or 1 then is there any reason why this datastream represents a computation and if we feed the tape in clockwork wise (as the Flintstone computer would) that we can now consider that “software”?
Ada: Yes that is the main point of my comments on symbolic computational
Me: Therefore if I was able to produce a language let’s call it CIRC-NAND (see “Cliff Notes on Barak’s proof of CIRC-NAND”) that consisted only of the inputs and output such that the only possible statement in the language is c=not(a,b) and run it serially through the NAND gate we get virtual circuit on the tape that effectively be used to build a complete virtual UTM given the right tape?
Alan: Yes but we still haven’t solved the tape issue completely
Me: Correct a true UTM needs an infinite tape but as you showed in On Computable Numbers your allowed to loop the tape as you did to show you can convert an non-automatic machine to an automatic one by looping the tape. Now lets suppose you have a tape that magically adds a cell if the head is ever about to encounter the end of the tape. Does this make the NAND Turing complete?
Alan: Provisionally but you have more to do to prove the mathimatical equivelence of your NAND machine and UTM
Me: True but since I have a slightly different formulation of how a UTM’s are built in TCS contexts. I will prove this later but for now is this QED?
Alan/Ada/Evil Spock: Yes
1.1.1. Opps I guess it is a rabitt hole
code
Me: *sniff* *sniff* Ada are you smoking a joint?
Ada: Yes we are apparently getting into something that will likely throws us down a rabitt hole and I do my best thinking stoned. Besides I am the daughter of Lord Byron thus my name is Lovelave not Straightlace. Want some?
Me: No thanks I would ramble too much (much more then I already do). Well anyways in order to really grasp some of the next stuff we are getting into I call you attention to the following answer to a Quora question I wrote in 2016 [before I went done the rabitt hole] the orginal question paraphased was “What is the difference between is math a subset of CS or is CS a subset of math?”:
[Editing note: this should be a link in the final electronic copy]
code
I am going to take a very different view on what computer science is, concluding that math is a subset of CS, not the other way around.
Math, CS and all the other "numerical" and "information" sciences are giving us a view into a Universe that is just as real as the physical universe, but because it is an Information Universe, we can only describe and experience it with these sciences.
For example, it almost certain now that we are not going to make a computer or another device that can view into this Universe, not unless it is equivalent to a Turning Machine in terms of its computational capabilities.
We can describe all kinds of theoretical castles in the sky about this universe (pure math and theoretical CS for example).
But, if we really want to look into this Universe, experiencing it first hand, we need to build physical computers and data networks, which are to the information universe as spaceships are to the physical universe. Plus, we need systems to power them (software) and development concepts about how to live in that Universe (software engineering and IT).
So, math/theoretical CS shows us where the door is, but we cannot walk through that door without the practical tools: the machines and vehicles we need to move around in the information universe.
Like all Universes, it has "physical laws," like the Halting Problem, Rice's Theorem, etc. It has implications of those laws (my three laws of software engineering, Brooke's law, algorithms must be finite in time and resources, etc.).
It has stuff we know for sure (how to construct CPUs to allow us to manipulate the universe, that all our tools/machines/etc. must be finite, etc) and so forth. There are already life forms (algorithms and theorems) and a macro structure (data structures and abstract geometric concepts).
We have not met any advanced life forms yet (AI). There are things we think must be true, but we can't yet prove/disprove (P!=NP, the Church-Turning Thesis, etc.). There are illusions of reality (Silicon Valley, etc.).
The list could go on and on..............
But, it is a real Universe that we have only been in--in any meaningful way--from the time of the telegraph and Ada's conceptual leap, when she realized that computations were fundamentally symbolic and symbols interchangeable.
So, no wonder we are still infants, learning how to keep eye contact.
However, it is incorrect to say that the Information Universe is any more or less plastic than the "physical" universe, so your assumption on point #1 is just wrong. As there are laws of the "physical" universe, there are laws of the Information Universe.
code
The academic community: This has got to stop be more rigors and conventional or by laughed out of your PhD program.
Me: I offer you a compermise for now I will no longer through around terms that have not provisionally been defined (or are defined by hoovering your mouse over it for a toolbox with the definition). As to conventional as I said in the intro this is how I think and since I think rather holestically and “differently” it is really the only format I see that I can use to get my points across. Note the Dreamer has a BA in CS Education and is using this format deliberatly to keep it accessible but rigorious by providing it as a electronic document that has the ability to hide all this dialog BS and look only at the dense academic parts (I don’t recommend it since for reasons that I think are clear you will miss the full context).
The academic community: Our lawyers just informed us that your likely right that we for legal (ADA) reasons we need to give you “SOME” freedom in format. Just don’t go off the deep end with it.
Me: Let’s make it a more interesting wager if I say *ANYTHING* that contridicts current theory without providing an alternate construction that does preserve current theory this dream is over and I am forced to take a blue pill and only remember the stuff I proved.
The academic community: *Grumble*
Dreamer: There are some basic prelimary definitions we need to take care of based on the previous discussion on NAND’s and the assumption that the information universe is real:
Tapes move at fixed speed in all examples unless otherwise stated
The contents of the tape are abstract symbols that only have meaning in the info universe
Since we read/write the tape at fixed rate, explained later, we can say the a single tape cell=one computational resource and that all “instructions” in CIRC-NAND take up 2 bits on the tape and we can split them even/odd to simulate two inputs for the next NAND operation.
Additionally we are only concerned with the NAND’s operations as a computational device and not how the data needed to perform the operation happened. Namely it moves from an abstract source to an abstract sink (as we will see later we can reuse this output tape for input purposes). More concretely all I/O of any kind is abstracted away from the NAND in that as long In1 and In2 have valid values it doesn’t matter how they got there and likely wise we don’t care what happens to our output.
Me: Thank you dreamer for that clarification before we move on I have thought experiment for Alan to munch on while we go over a few more foundational concepts before revealing why I asked the question: What happens when a UTM encounters a blank cell on the tape assume that the only time cell can be blank is if there is no symbolic representation possible and/or we have run out of input.
1.1.2. And down we go?
code
Me: In order for the next proof to make sense I need to introduce a though experiment namely the cat at my local bodega (NYC slang for convience/corner store and most do own cats) is super lazy I doubt it is doing it’s job since it never shows any evidence of the rats it has killed. But, yet there are no rats in the store when just last year it was almost closed due to them. How is this possible?
White rabitt: DUH if the cat leaves no evidence it is impossible to tell if it has done it’s job or not
Me: Thus we can say the cat is only meaningful doing it’s job if it shows some evidence it did it’s job.
Ada: Correct and once we symbolize this we are faced with the paradox that unless the input and output symbols are different in someway we can not tell if any computation was done or not
Evil spock: This is the same as saying f(x)=x and thus all identity functions are meaningless computations since there is no way to tell if anything happened or not.
Me: Now let’s tie all this together we have already shown that all problems are reducable to logic circuits and if the circuit has a finite number of components/steps it can be computed with some minor help of manually feeding the tape back in when the first pass is done. We have also shown all logic circuits reduce to a stream of virtual (on-tape only) NAND’s over a real one. Thus if we can show to methods produce the same truth table we can decompose this to NAND’s and construct a total truth table for the whole circuit (i.e. f(x)) and say if we can not detact a difference between how to logic circuits compute something they are in fact identical except for any operational delays (delays caused by the fact we are running on hardware that is not infinitely fast).
Evil spock: And since we know how fast the tape moves we can use total tape space used to be the same as time iff the tape is all instructions (no data). i.e. Time=space but space!=time. This allows to measure the relative effency of the total computation between the methods (every day CS calls this big-O and this implies big-O == amount of tape consumed as input to the NAND). Thus we do not preserve performance only computation. Additionally this satifies Kleene’s requirement that all recursions require we give up something and in this case we are giving time not computational power.
Me: Thanks I think that does it for this question… provisional QED?
Everyone: Yes
1.1.3. “Ada in wonderland”
code
White Rabit: Please don’t this be the Dreamer’s twisted attempt at Alice in Wonderland being retold the nth time!
Ada: Even though I have heard the phrase down the rabitt hole I have never read the book it was after my time
[kufud on the ground]
Me: I guess we can at least look around. Let’s talk about my next reworked lemma, reworked in that I offer an alternative proof to the claim but make a well known claim. The reason I do this we often learn more from the proof of a statement then the statement it self….
Ada: Why does this cake have a sign on that says “drink me” and why does this bottle of soda say “eat me” on it? I guess I will swap the signs to make them right and this cake looks good I am going to have some… [munch]
Everyone: Ada you DON’T want to do that!!!!
Me: Oops too late Ada welecome to Wonderland nothing here makes sense and never will you can not trust your senses essencially all you have is your intution on how stuff should work even in a weird place to trust and guide you. Here drink this and it will return you to your former size. Small hint also how stuff works here “The ones mother gives you do nothing at all”
Ada: Thanks I will be careful to avoid stuff from now on.
Me: Don’t do anything we don’t do no matter how tempting. Now for my next claim and this whole sign mixup is the perfect thought experiment for it. Does everyone agree that by Wonderland logic that what labels (signs) we had put on the cake and which we had put on the soda the first one whould of still shrunk Ada and the other return her to full size. Namely right effect wrong label. All she did to fix it was swap them. This leads me to what in my notes is labled as Lemma I which says that as long we are consistent about how we swap labels doing so does not change their meaning. Let’s say 0=Drink Me and 1=Eat Me normally then unless we also swap the meanings (i.e. physical swap the cake and soda) along we renaming we have lost no computational meaning. More a more conceise definition of this is the proof it self of the lemma which is if we swap the meaning of 0 and 1 such that 0=true and 1=false this is equivelent to passing it through a NOT gate and as long the interpretation of that simple also makes the same 0=true and 1=false assumption we are good. We can even pass it through an other NOT gate to get back the orginal message.
Everyone agree?
Everyone: We agree up is down and down is up and therefore give a provisional QED to Lemma I
2. Bodega cat goes chesire on us
Ada: Let’s get out of this weird place oh there is a door over here anyone want to come….
Everyone: Don’t open it doors are weird in wonderland… oops she did it again lets go get her before the chesire cat can do it’s number….
Alan: (looking around) this doesn’t look like the wonderland I read about
Me: It looks familiar because we are in NYC near the Dreamers house this is still a dream and it is still a twisted retelling of Alice in Wonderland
Ada: What a wonderious city!!! This can’t be the wonderland they told me about… I am still hungry where can we eat
Me: There is a bodega about a block from here do you want something from the deli or the grill?
Ada: Yes but you Americans have weird menus and I don’t think they carry fish and chips
Alan: At least someone has taste here fish and chips sound good
Walk to bodga
Alan: What a lazy cat it is just laying there doing nothing
Me: I am sure it is because the rats are gone
Dreamer’s note: We need to wait a little to use the lazy bodega cat til later. The main purpose of this note is to draw attention to the reader the next two dialogs will cover lowest level foundational proofs that the entire rest of this thesis. As you quickly tell they are the chesire cat and the catipilliar which are the scenes where Alice first realizes that things are more then a little weird here but they do have their own logic that is internally consistent. Therefore if you have not “When logic and proportion
Have fallen sloppy dead” (Grace Slick) by the end of the catippilar scene you have not delved into the logical implications of both theorems presented in the scenes.
Me: Ok who wants what?
[everyone places there orders]
Ada: Why is the bodega cat behind the delli counter making my sandwitch?
Bodaga CANT: First of all I am not a cat I am a CANT… second of all I am proud member of the United Shopkeeper Felines Local 256
Ada: What a rude CANT… wait thats not cat so what is a CANT?
Me: Let me explain (the CANT will talk in riddles and such all day if it explained).
code
A Condtional AND NOT (CANT) is very simple logic circuit that NAND and NOR both decompose into (proof delayed). It is based on the observation that what a NAND was realy doing was essencially being a conditional gate if you labeled the inputs correctly (i.e. C and D not A and B and label the output D’) then clearly a NAND is equivelent to if C is false then we NOT D else we output false.
I have attached the Dreamers proof by code of this and then I will let Evil Spock give the walk through of the proof that this is in fact identical to a NOR and by DeMorgan equal to a NAND.
package ops;
// Copyright (C) 2024 Aryeh M. Friedman
public class CANT
{
// simulate a CANT
public static final boolean doOp(boolean b1,boolean b2)
{
if(!b1)
return !b2;
// Copyright (C) 2024 Aryeh M. Friedman
public class TestCANT extends TestSet
{
@TestCase
public void testTruthTable()
{
assertTrue(CANT.doOp(false,false));
assertTrue(!CANT.doOp(false,true));
assertTrue(!CANT.doOp(true,false));
assertTrue(!CANT.doOp(true,true));
}
code
@TestCase
public void testNANDNOREquiv()
{
// nand
assertEquals(CANT.doOp(false,false),(!false&&!false));
assertEquals(CANT.doOp(false,true),(!false&&!true));
assertEquals(CANT.doOp(true,false),(!true&&!false));
assertEquals(CANT.doOp(true,true),(!true&&!true));
// nor
assertEquals(CANT.doOp(false,false),!(false||false));
assertEquals(CANT.doOp(false,true),!(false||true));
assertEquals(CANT.doOp(true,false),!(true||false));
assertEquals(CANT.doOp(true,true),!(true||true));
}
}
Test output:
aryeh-dudes-hardware.C011@sarek2048% aet
aegis: appending log to "/home/aryeh/aryeh-dudes-hardware.C011/aegis.log"
aegis: /bin/tcsh /home/aryeh/aryeh-dudes-hardware.C011/test/00/t0001a.sh
.
Summary:
Pass: 12
Fail: 0
aegis: project "aryeh-dudes-hardware": change 11: test "test/00/t0001a.sh" passed
aegis: project "aryeh-dudes-hardware": change 11: passed 1 test
code
I will leave to Evil Spock to explain how this is even possible.
Evil Spock: It is easier to construct a CANT from a NOR then it is from a NAND despite there mathimatical equivelence (delayed proof) so lets do that.
code
We know that by the adventure Ada had with the sign mixup that a NOT by it self is insufficent to do meaningful computation on we just NOT it again and we get the same problem the bodega CANT has which is how to prove his loyality to the owner by killing all the rats…
Bodega CANT: Buddy please don’t insult me I will let you know all us CANT’s (formerly known as cats by stupid humans) are from CANTipoia and we have interdimensional powers of rat remove thus I do kill them all but the owner will never be able to prove it (the guy is lazy and I am sure the Dreamer will move us along to why this matters later). I can show you green card to prove I am legit.
Evil Spock: As I was saying… thus we need something more then a simple NOT to meaningful operation with it. Let’s use the simplest possible gate to logical construct (i.e. the one that is most intutive to how it works) the CANT with. Specifically we can create OR in the pure abstract sense by just taking In1 and In2 and joining them and then sending that the output. If we examine the truth table of a OR:
code
In1 In2 Out
0 0 0
0 1 1
1 0 1
1 1 1
We see that if we NOT the output we now get the NAND truth table of:
In1 In2 Out
0 0 1
1 0 1
0 1 1
1 1 0
Ada: I see the DeMorgan part he was my math tutor anyways. Imagen we have a NAND which is typically a post not thus we essencially have not(a and b) which as will be shown later on when the Dreamer reproves the universality of NAND/NOR(/CANT) we can convert this by DeMorgan to not(a) or not(b) and not(a or b) to not(a) and not(b). Thus all we need to do to convert between the two gate types is flip where the NOT’s are perform (from being on output to being on the inputs) and we have successfully DeMorganed the gate. Since we have already proven a NAND is universal and our truth table is identical it we must also be universal.
Me: Provisonal QED?
Everyone: Yes
Bodega CANT: You just completely messed me up in making your order it will be a while there is a nice hookah bar next door I will bring the order over when it is ready.
2.1. The hookah smoking tape drive
So we walk over to the hookah bar and don’t you know it there is a old fashion IBM 360 tape drive there smoking a hookah.
code
Tape: Who are you and what do you want?
Ada: Huh what does this do with computation!
Tape: Are my answers not clear enough for you?
Ada: What do you mean? You haven’t answered a single question because I have not asked any! (Until now)
Me: I think I know how to get this tape to make sense. Alan thoughts on that thought experiment I gave you earlier?
Alan: It has got to be a trick question because as every theortical CS student knows the empty string means the machine HALT’s (thus we can redefine the HALT’ing problem to be a question of does the tape contain an empty space)….
Tape: X,X,X,X,X,X,X,X (each X being some completely unknown value)
Alan: What the <bleep>!!
Evil Spock: I think I can explain this tape’s weird output. Let’s assume we create some symbol let’s call it “X” that has absolutely no meaning in any possible context. Namely we have the following definition for how it behaves:
X1 == X1
X2 == X2
X1 != X2
X2 != X1
X1 over any operaion results in X2
Alan: Can’t we use X to repersent stuff like the lack of input and stuff like that?
Me: Yes that is the why X is a dataflow symbol which has the definition that it is unknown and unknowable
Alan I seem to remember you didn’t come straight out and def