{"record":{"id":"N-IPLV","slug":"its-manual-printed-a-trace","kind":"notebook","title":"Its manual printed a trace. So I could check.","dek":"The first artificial intelligence programs held what they knew as symbols linked into lists. Their language, IPL-V, was written for a machine its 1964 manual describes. A coding agent rebuilt that machine and held it to the runs the manual prints.","abstract":"Computers were built to calculate; IPL was built to hold symbols, in lists a program makes, changes and gives back as it runs. This is a note about building the IPL computer, the machine the IPL-V manual of 1964 describes, with a coding agent. The manual prints one run of its own system in full: the address each card was loaded at, and a trace of every instruction with a count of interpretation cycles. The reconstruction loads that program at the same addresses, and all 46 lines of the trace agree in level, instruction, test cell and count. The count settled how cycles were tallied, which the text leaves loose, and with it the effort figures of a 1963 version of the Logic Theorist, which runs with no change to its deck and finds the same proofs by the same search. Transcribing the manual’s own programs found two things wrong with the reconstruction. The machine runs in the browser.","created":"2026-11-22","version":"1.0","status":"OPEN","publication":"published","authors":["Chris Hay"],"lineage":"MANUAL → SCAN → AGENT → MACHINE","concepts":["ai-agents","source-authority","verification","programming-languages"],"related":["N-CPL","N-JOSS","N-BOHM"],"media":[],"body":[{"kind":"observation","label":"01 / SYMBOLS, NOT NUMBERS","text":"The computers of the 1950s were built to calculate, and the IPL-V manual begins there: “We now recognize that the digital computer is a device for manipulating symbols of any kind, in any way. Its genesis, however, lies in the desk calculator.” Allen Newell, J. C. Shaw and Herbert Simon wanted programs that worked on symbols, proving theorems and playing chess, and IPL was built for them around a different way of holding data: the list. A list is a chain of cells. Each holds a symbol and the address of the next, the last holds 0, and the list’s name is the address of its first cell. A symbol on a list can name another list, which makes a list structure. Putting a symbol in or taking one out is a change of links, and the manual says why that mattered: “These operations change the structure of the data unit, not just its content. It is this ability that contrasts rather strongly with standard ways or organizing data on the computer.” The price is that storage loses its order. “New words are taken from the gradually diminishing block of unused space”, and “some scheme must be incorporated to make all of this space available again”. IPL’s scheme is one list of every cell not in use, available space, which programs take cells from and give them back to.","references":[{"label":"IPL-V Manual, Introduction to the First Edition, pages ix, xvi and xviii (scan)","url":"https://github.com/jeffshrager/ExecutableArchaeology/tree/main/IPL-V/manual"}]},{"kind":"observation","label":"02 / A MACHINE NOBODY HAD","text":"IPL-V was made between 1957 and 1964 at the RAND Corporation and the Carnegie Institute of Technology, by Allen Newell, J. C. Shaw, Herbert Simon, Fred Tonge and others, for programs that solve problems by search and rules of thumb. Its manual is frank that there was no such computer: “No computer currently available can process the IPL language directly”. What it describes is an IPL computer: cells that each hold one word, P Q SYMB LINK; one list of every cell not in use; a push-down list under every storage cell; and a cycle that interprets lists of instructions punched one to a card. I asked a coding agent to build that machine as a machine, with storage an array of cells, so that a program uses space, gives it back and runs out of it much as it did then; the exceptions are listed in the repository.","references":[{"label":"Information Processing Language-V Manual, second edition, 1964 (scan)","url":"https://github.com/jeffshrager/ExecutableArchaeology/tree/main/IPL-V/manual"}]},{"kind":"observation","label":"03 / ONE RUN, PRINTED IN FULL","text":"Part One of the manual takes one small program, which removes the repeated symbols from a list, “all the way through to assembly and execution on the computer”, and prints both. Fig. 1 is the assembly listing, with the address every card went to. Fig. 2 is a trace of every instruction the program executes, with the test cell, the communication cell and a count of interpretation cycles. The reconstruction loads the program at the same addresses, from cell 64, and ends its listing with the same line: NUMBER OF CELLS ON AVAILABLE SPACE=21858. All 46 lines of the trace agree in level, instruction address, test cell, instruction and count."},{"kind":"observation","label":"04 / WHAT THE COUNT SAYS","text":"The text defines the count loosely: the interpreter tallies one into H3 “every time an ADVANCE occurs”. The column in Fig. 2 is exact. It goes up by one at an instruction and by two at one that executes a basic process, and the first instruction is the fifth cycle. The agent read the rule off the column. It matters beyond the figure, because the Logic Theorist reports its effort as this count. Counted this way, its effort comes to between 98.3 and 98.7 per cent of the figures printed in 1963, on every theorem. Jeff Shrager’s reconstruction, which runs the same deck and counts differently, reports about two thirds."},{"kind":"observation","label":"05 / A THEOREM IS A LIST STRUCTURE","text":"The Logic Theorist holds what it reasons about in the same way. Stefferud’s memorandum of 1963 says so on page 5: “Expressions, variables, and connectives are represented by IPL-V data list structures. An expression is recursively defined as a single variable or a list of subexpressions with a connective in its head.” Stopped at the routine that prints an expression, just before it prints theorem *2.01, (P implies not P) implies not P, the reconstruction’s storage holds exactly that shape: a head of two cells naming a description list and the expression; on the description list the attribute Q15, its tree form, and Q7, the name, whose value is the text *2.01; and the expression, with I0, implies, in its head and a sublist for each side. When it comes to prove *2.01, the description list has three more attributes: Q2 = 4, the number of levels; Q3 = 1, the number of distinct variables; and Q4 = 3, the number of places a variable appears. The memorandum calls Q2 “an active attribute” (page 51): asked for its value, it looks on the description list, and if there is none, it counts and assigns the count there. In the deck those are J10 and J11, the processes that find and assign a value on any description list. The numbers save work: “Only problems with identical values for Q2, Q3, and Q4 are put through a full match test” (page 33).","references":[{"label":"Stefferud, RAND RM-3731, 1963, pages 5, 33 and 51 (scan)","url":"https://github.com/jeffshrager/ExecutableArchaeology/tree/main/LogicTheorist"}]},{"kind":"observation","label":"06 / THE LOGIC THEORIST OF 1963","text":"Einar Stefferud’s IPL-V version of the Logic Theorist of Newell, Shaw and Simon was printed in a RAND memorandum in 1963, with its output. Rupert Lane and Jeff Shrager transcribed it, David Moews corrected the transcription and transcribed the output, and Shrager’s Executable Archaeology already runs it. On this reconstruction it runs with no change to the deck. Of the 24 theorems from Principia Mathematica it was given, it proves the same 23 and gives up on the same one, *2.15, at its effort limit, each by the same search: the same number of subproblems and of substitutions for every theorem. The 533 lines of its printout agree with the transcribed pages apart from the effort figures, the core addresses it prints for rejected subproblems, and three lines where the 1963 printout itself differs from this run: DFF. for DEF., probably a slip in the printing, and two missing commas, whose cause is not known. The transcription of those lines is right.","references":[{"label":"Moews, ipl-v-logic-theorist","url":"https://github.com/dmoews/ipl-v-logic-theorist"},{"label":"Shrager, Executable Archaeology","url":"https://github.com/jeffshrager/ExecutableArchaeology"}]},{"kind":"observation","label":"07 / THE MANUAL WRITES ITS OWN PROCESSES","text":"Part One teaches by programs, and the agent transcribed every one printed in full and ran it. Twice the manual writes one of the machine’s own basic processes in IPL. Its J101, which generates every cell of a list structure, gave a cell the reconstruction’s built-in J101 did not: after the head of each list, the head’s own word, pushed down by the mark that says the list has been visited. Part Two says the same, and the reconstruction had missed it. A step-by-step trace of a recursive search, Fig. 3, showed a second thing: a basic process reached through a LINK is part of the step that leads to it. Both are put right, the manual’s J101 and the built-in one now agree, and all 27 steps that Fig. 3 lists match."},{"kind":"observation","label":"08 / A MISTAKE PRINTED ON PURPOSE","text":"One routine, R62, is printed with a wrong Q code, and the reader is asked to find it. Run as printed, it does not do what the error suggests, which is to go round for ever. It stops and answers W1. The wrong instruction sends it into the push-down list of the working cell W1, and the copy it finds there is a word of zeros, because W1 was empty. A word of zeros is how this machine marks the end of a list, so the search ends there. Put a symbol in W1 first and it does go round for ever."},{"kind":"connection","text":"The machine runs in the browser, compiled from the same Rust source as the command-line version, with every program from Part One of the manual among its decks. Step one and watch storage change.","links":[{"href":"/demos/ipl-v?deck=manual-04-1","label":"Step the recursive search of Fig. 3 — interactive study"},{"href":"/demos/ipl-v","label":"The IPL computer, with a guided start and all its decks"},{"href":"/demos/ipl-v?deck=lists&steps=43&show=131","label":"A list being built from available space"},{"href":"https://github.com/chrishayuk/ipl-v/tree/main/manual","label":"The manual’s programs, transcribed, with page numbers"},{"href":"https://github.com/chrishayuk/ipl-v","label":"Source, tests, tutorial and examples"}]},{"kind":"refusal","title":"WHAT THIS DOES NOT SHOW","lines":["Figs. 1 to 3 are three runs of one system the manual does not name, on three small programs. Agreeing with them shows the reconstruction does what that system did on these programs.","The last 1.5 per cent of the Logic Theorist’s effort is not explained. Some basic processes may have been IPL routines in the system of 1963, costing more cycles than a primitive; the counts do not show which.","The Logic Theorist deck is Lane and Shrager’s transcription with Moews’s corrections, and this is not the first reconstruction to run it: Moews’s interpreter and Shrager’s did so first.","A system of the period does not settle the effort figures either. Moews runs the deck under the IPL-V of an IBM 7094 emulator, after four changes, and there effort is between 98 and 120 per cent of the 1963 figures, varying from theorem to theorem. Those figures are as Moews reports them; they were not reproduced here.","The list F1 makes is cell 148 in Fig. 2 and cell 145 here. What the system of 1964 had done with three more cells, the manual does not say.","Where the manual leaves a choice to each machine’s write-up, such as the compressed and binary card forms, the formats of J162 and the console, the reconstruction makes one, and the repository lists each.","The reconstruction, the transcriptions of Part One and these comparisons were made by one coding agent in one session, from scans read by that agent. Each figure has a page number so that it can be checked by eye.","A second model, OpenAI’s Codex, later reviewed the repository independently. It found that print lines took no storage, that one compatibility change lost a card’s first column, that integer zero had no sign, and a missing blank in negative exponents; all are put right, and none changes the Logic Theorist’s run. Its review, and what was done about each point, is in the repository."],"principle":"A manual that prints its own run can be held to it, line by line."},{"kind":"question","text":"How much of a system from the early 1960s can be recovered exactly from a manual that printed one run of it?","status":"OPEN","detail":"Fig. 2 fixed the load addresses, the order of interpretation and the count of cycles. It could not fix what the program it traces never does: auxiliary storage, the error traps, or the cost of each basic process in a particular system. For those there is only the text, and programs like the Logic Theorist whose printed output depends on them."}],"sources":[{"title":"A. Newell (ed.), “Information Processing Language-V Manual”, second edition, Prentice-Hall, 1964","url":"https://github.com/jeffshrager/ExecutableArchaeology/tree/main/IPL-V/manual","note":"Fig. 1 and Fig. 2 are on pages 21 and 23 of Part One, Fig. 3 on page 34, R62 on page 26, and J101 as Fig. 11 on pages 80 and 81. Part Two, the Programmers’ Reference Manual, is the specification the reconstruction follows."},{"title":"A. Newell and F. M. Tonge, “An Introduction to Information Processing Language V”, Communications of the ACM 3(4), April 1960","url":"https://iiif.library.cmu.edu/file/Newell_box00040_fld03188_doc0001/Newell_box00040_fld03188_doc0001.pdf"},{"title":"E. Stefferud, “The Logic Theory Machine: A Model Heuristic Program”, RAND RM-3731, 1963","url":"https://github.com/jeffshrager/ExecutableArchaeology/tree/main/LogicTheorist","note":"The program and its output for 24 theorems."},{"title":"David Moews, ipl-v-logic-theorist","url":"https://github.com/dmoews/ipl-v-logic-theorist","note":"Corrections to Rupert Lane and Jeff Shrager’s transcription of Stefferud’s deck, a transcription of its 1963 output, and notes on running it on Rob Storey’s IBM 7094 emulator."},{"title":"Jeff Shrager, Executable Archaeology, and “Executable Archaeology: Reanimating the Logic Theorist from its IPL-V Source”, 2026","url":"https://github.com/jeffshrager/ExecutableArchaeology","note":"A Common Lisp IPL-V that runs the Logic Theorist, Simon’s Heuristic Coder and the Simon–Yngve sentence generator. The reconstruction’s output on the last two was compared with it."},{"title":"chrishayuk/ipl-v","url":"https://github.com/chrishayuk/ipl-v","note":"The reconstruction, its tests against the manual’s figures, the programs of Part One transcribed, a tutorial, and the machine in WebAssembly."},{"title":"Coding-agent session, 22 November 2026","note":"The reconstruction, the transcriptions and the comparisons in this note were made in this session. Every result can be rerun with cargo test in the repository."}],"published":"2026-11-22"},"hash":"c377bdcaf5a14ae8503979c45c2fa8d6c76d280f5483f36ff78e9b664cb5de94","algorithm":"sha256","provenance":{"id":"N-IPLV","version":"1.0","recordHash":"c377bdcaf5a14ae8503979c45c2fa8d6c76d280f5483f36ff78e9b664cb5de94","revision":{"kind":"initial","summary":"First published: a reconstruction of the IPL computer of the 1964 IPL-V manual agrees with all 46 lines of the manual's printed trace, cycle count included; the count settles how the 1963 Logic Theorist measured its effort, and the deck runs unchanged. Includes the independent review by a second model."},"sources":[{"title":"A. Newell (ed.), “Information Processing Language-V Manual”, second edition, Prentice-Hall, 1964","url":"https://github.com/jeffshrager/ExecutableArchaeology/tree/main/IPL-V/manual","note":"Fig. 1 and Fig. 2 are on pages 21 and 23 of Part One, Fig. 3 on page 34, R62 on page 26, and J101 as Fig. 11 on pages 80 and 81. Part Two, the Programmers’ Reference Manual, is the specification the reconstruction follows."},{"title":"A. Newell and F. M. Tonge, “An Introduction to Information Processing Language V”, Communications of the ACM 3(4), April 1960","url":"https://iiif.library.cmu.edu/file/Newell_box00040_fld03188_doc0001/Newell_box00040_fld03188_doc0001.pdf"},{"title":"E. Stefferud, “The Logic Theory Machine: A Model Heuristic Program”, RAND RM-3731, 1963","url":"https://github.com/jeffshrager/ExecutableArchaeology/tree/main/LogicTheorist","note":"The program and its output for 24 theorems."},{"title":"David Moews, ipl-v-logic-theorist","url":"https://github.com/dmoews/ipl-v-logic-theorist","note":"Corrections to Rupert Lane and Jeff Shrager’s transcription of Stefferud’s deck, a transcription of its 1963 output, and notes on running it on Rob Storey’s IBM 7094 emulator."},{"title":"Jeff Shrager, Executable Archaeology, and “Executable Archaeology: Reanimating the Logic Theorist from its IPL-V Source”, 2026","url":"https://github.com/jeffshrager/ExecutableArchaeology","note":"A Common Lisp IPL-V that runs the Logic Theorist, Simon’s Heuristic Coder and the Simon–Yngve sentence generator. The reconstruction’s output on the last two was compared with it."},{"title":"chrishayuk/ipl-v","url":"https://github.com/chrishayuk/ipl-v","note":"The reconstruction, its tests against the manual’s figures, the programs of Part One transcribed, a tutorial, and the machine in WebAssembly."},{"title":"Coding-agent session, 22 November 2026","note":"The reconstruction, the transcriptions and the comparisons in this note were made in this session. Every result can be rerun with cargo test in the repository."}]}}