CHRIS HAY

IDEAS · SYSTEMS · OBJECTS / LONDON · 2026

Absys did not unify two unknowns. It waited.

Absys, built at Aberdeen around 1967 and rebuilt here from its designers’ papers, prints the binding environments of Elcock’s examples variable for variable, suspended equations included. One of his examples also favours one order in which Absys may have taken its steps.

ABOUT THIS NOTE +

A note about reconstructing Absys, the language J. M. Foster, E. W. Elcock and their colleagues built for the Elliott 4120 at the University of Aberdeen, which Elcock argued in 1990 was the first logic programming language. No program text or listing of it is known to survive. With a coding agent, the language was rebuilt from three papers: Foster’s Assertions of 1968, extracts of Foster and Elcock’s introduction to Absys 1 of 1969, and Elcock’s retrospective of 1990, read from its page scans. An equation between two unknowns is not solved but suspended until one of them is known; an or splits the computation into derivations that are all pursued, fairly, until each fails or hibernates; and each assertion is accepted as it is typed. Run on the papers’ own examples, the reconstruction gives every result they print, the binding environments of the append and reverse examples variable for variable and Absys 1’s three triples in the paper’s order, and the expected answers for Clark’s students and for setdiff, whose results the paper does not print. Run on inputs chosen here, setdiff gives the right answer if each applied body takes the place of its literal, or if not waits for its variables; taking literals strictly in turn without such a delay, one fair rule among several, gives the wrong one. A paper of 1982, found after version 1.0 of this note, prints Absys’s list of relations awaiting elaboration step by step; the reconstruction prints every list it shows once two of its rules follow the paper, one of them against the paper’s own word “appended”. That settles the order only if the lists were copied from a run. Run on SWI-Prolog, the same programs give the same answers where both answer, and Absys’s session, assertions fed one at a time into one open computation, can be rebuilt there from engines and coroutines, with a layer written here to make a procedure applied before its definition wait.

N-ABSYSOPENRECORDED 2026-11-25PUBLISHED · V1.2CITE ↓FOLLOW ↓

01 / ASSERTIONS, NOT INSTRUCTIONS

In a paper given in 1967, Michael Foster, of the Computer Research Group at Aberdeen, described a system in which “the basic elements … are not instructions to do something, as are the statements of Algol, but assertions about the data, such as a=b or a+b=c.” His paper was called Assertions: Programs Written without Specifying Unnecessary Order. By 1968 the group had “a working on-line incremental compiler” for it on the university’s Elliott 4120: Absys, the Aberdeen System. A text is a conjunction of assertions, typed one at a time, and as each is accepted, “whatever processing can be done on the basis of data already present in the system is done.” In 1990 Elcock argued that Absys, “essentially completed in 1967”, had been a logic programming language in the full sense, some five years before the first Prolog, in Marseilles around 1972. The program was tied to the machine’s own code, the machine was retired in the mid-1970s and later dismantled, and no listing of the program is known to us. I asked a coding agent to rebuild the language from what its designers published, and to run every example they printed.

J. M. Foster, “Assertions: programs written without specifying unnecessary order”, Machine Intelligence 3, 1968 ↗J. M. Foster and E. W. Elcock, “Absys 1: an incremental compiler for assertions”, Machine Intelligence 4, 1969 (extracts) ↗E. W. Elcock, “Absys: the first logic programming language”, J. Logic Programming 9, 1990 ↗

02 / AN EQUATION THAT WAITS

Elcock describes equality in Absys as a process. Two lists: equate their heads and their tails. A variable and a term: the variable takes the term, and anything that was waiting on it is taken up again. Two different unknowns: the equation is “suspended” and associated with both, until one is known. Prolog would make the two variables one. Absys kept the equation, and waited. So a computation can end with equations still suspended, a “partially solved form”, and Elcock gives one: reversing [1,2,U] into [V|L] ends with L/[2,1] and the suspended equations U = X₃ and X₃ = V. The reconstruction prints that binding environment variable for variable, X₁/1, L₁/[2,U], X₂/2, L₂/[U], L₃/[], L/[2,1], with the same two equations suspended. Typing rev([5],[V]) afterwards wakes them: V becomes 5, then X₃, then U, and the environment is again Elcock’s, down to the names X₄ and L₄ of the variables the new assertion made. Elcock gives no rule for the subscripts; here each alternative of a procedure makes its variables new when it is chosen, a derivation numbers them as it goes, and that reproduces his.

Elcock 1990, pp. 10–13: the treatment of equality, and the reverse example ↗

03 / EVERY ALTERNATIVE AT ONCE

An or in Absys does not choose. It “is distributed through the goal conjunct”, Elcock writes, “essentially creating two new goals which can notionally be regarded as initiating parallel derivations”; in Foster and Elcock’s words of 1969, “unsatisfiable conjunctions disappear when unsatisfiability is detected”, and the conjunctions “in effect constitute parallel non-interacting programs.” Absys pursued them all: “all derivations continue to be incrementally elaborated until found unsatisfiable”, which Elcock calls a fair search rule. A procedure is a relation, so the one definition of append splits [1,2] three ways, or joins two lists, or finds what is missing. The 1969 paper, in its own quite different notation of begin and end, primes and [a;b], gives a problem with its answer: pick r, s and t from three lists so that r+s=t. The result “would be three distinct conjunctions … 1, 3, 4, 1, 1, 2 and 6, 1, 7 respectively.” The reconstruction gives those three, in that order. Where one alternative never ends and the next succeeds at once, the fair search finds the answer; a depth-first search, as Prolog’s is, never reaches it.

Foster and Elcock, “Absys 1: an incremental compiler for assertions”, Machine Intelligence 4, 1969 (extracts) ↗

04 / THE ORDER DOES NOT MATTER, EXCEPT FOR NOT

Foster and Elcock claimed that if data can be found to satisfy all the assertions, “these data are independent of the order in which the operations are performed.” The reconstruction can test that. A text of seven assertions, in which a procedure is applied before it is defined and a list reversed before its members are known, was accepted in all 5,040 orders. Every order gave the same result. In 1,260 of them some assertion ran past its budget of 20,000 steps until a later one cut it short. The cost is not independent of the order: it ran from 34 steps to 22,021. In a smaller text of three assertions, the same three answers of append cost 25 steps in one order and 22,868 in another, most of them an unbounded search stopped by the budget. Of what was tested, the one thing that makes the order matter is not. Here it is decided on the bindings as they stand, and Elcock concedes the point beneath that: “both Absys and PROLOG have the shortcoming that they do not use a safe computation rule.” not(X = 1) then X = 2 leaves no answer; X = 2 then not(X = 1) leaves X = 2. set is built the same way, and presumably behaves the same.

05 / HIS OWN EXAMPLE PREFERS ONE ORDER

On the order in which a derivation takes its next step, Elcock says only that “Absys does not guarantee a particular order of processing of conjuncts”, and what else he says points two ways. An applied goal is “replaced by” the procedure’s body, which suggests the body takes the goal’s place; and “Absys used a fair computation rule”, of which taking every literal strictly in turn is one. His example of Absys-4’s set operator, from “a demonstration of Absys-4 circa 1968”, is printed as a definition only, with no query and no result, and the mem it uses is not defined; the inputs and mem here are ours. Run on [1,2,3,4] and [2,4,6], setdiff gives [1,3] if the body takes the goal’s place. Taken strictly in turn, it gives [1]: the not is decided before the recursion has given its variable a value. Strictly in turn but with not waiting for its variables, it gives [1,3] again, and Elcock mentions delays he does not describe. So the example favours the body in the goal’s place, without proving it. The reconstruction follows it, and keeps the other rules as options, so the difference can be run. Permuting the student example found a second gap: a not applied before a procedure it used was defined counted a derivation that was only waiting as a success. Elcock counts a derivation that ends with suspended equations between variables as a success because “the constraint is always satisfiable”; a waiting application has no such guarantee, so here a not that cannot be decided waits too, and all 120 orders of that text now agree.

06 / THREE MISPRINTS

Elcock renders Clark’s student database in Absys, as a completion. As printed, one alternative of takes reads X - 'SMITH', C - 'C101', with minus signs for equals, and the procedure that asks who is not a maths major applies maths-course, where the one defined is math-course. Typed in as printed, the second leaves the query here waiting for ever for a procedure that is never defined; corrected, Brown, who takes C101 and not C301, is a non-maths-major and Smith is not. The application of append on page 9 has a third, [T₁ = [X₁|N₁]] where [1,2] = [X₁|N₁] is meant. The OCR of the paper garbles every program, so all of them were read from the page images.

07 / THE LIST OF RELATIONS, 1982

In a short paper of 1982 comparing Absys with Prolog, found after version 1.0 of this note, Elcock walks through Absys’s “list of relations still to be elaborated” for u+v = 16 and w*u = v and u+10 = 12: the relations u’s binding returns, (2+v = 16; w*2 = v), then the list after v is bound, (2+14 = 16; w*2 = 14; w*2 = 14), then (7*2 = 14; 7*2 = 14). For the mechanism “in detail” it points to a paper of 1972 by Elcock, McGregor and Murray. The reconstruction returned a waiting relation only once, which cannot give his lists. It now returns one for each of its variables that is bound, and puts returned relations at the head of the list. So a relation goes back on the list for each of its variables that is bound, even after it has run: w*2 = 14 is there twice, and 2+14 = 16 is examined again and “found satisfied”. And the relations that come back go to the head of the list, although the paper says they are “appended”: appended to the end, the list after v is bound would read (w*2 = 14; 2+14 = 16; w*2 = 14), and the next relation examined would bind w instead of being found satisfied. Either way u is 2, v is 14 and w is 7. The same paper says the alternatives, “notionally” parallel, were “in practice … handled by appropriate differential record keeping and backtracking in a similar spirit to Prolog implementations”, where the retrospective says the search was fair; and it dates Absys “essentially completed in 1968”, where the retrospective has 1967. It also says where this kind of evaluation stops: a general set of linear equations needs “much more sophisticated aggregation and solution methods”. Here x + y = 10 and x − y = 4 leave both relations waiting, each for a second number.

E. W. Elcock, “Goal selection strategies in Horn clause programming”, Proceedings of the CSCSI, 1982, pp. 121–124 ↗

WHAT THIS DOES NOT SHOW

  • No Absys program text, listing or manual from Aberdeen is known to survive. This is the language as its designers described it, not the program they wrote; where they are silent, the choice made is listed as a decision.
  • Elcock’s retrospective, the main source, describes “a subset of the language Absys-4” in syntax that takes “some slight liberties” with the original. The 1969 notation was read only from OCR extracts of that paper; its last pages, and Elcock and Gray’s fuller description of 1988, have not been seen.
  • The order in which a derivation takes its next step is chosen on the evidence of one published example, setdiff, run on inputs chosen here; a fair rule with delayed negation would also run it correctly. The rule that a not or set waits when it cannot be decided was added here, after permuting the texts showed it was needed; it is not in the papers.
  • Elcock’s two accounts disagree about the search: fair in 1990, backtracking in 1982. Nothing printed in either tells the two apart, so the fair search is kept, and the backtracking reading is an option. The rule that returned relations go to the head of the list follows the lists the 1982 paper prints, against the word it uses. That is evidence from a printed trace, not proof of what the program did: if Elcock wrote the lists out by hand, the word may be the better witness.
  • The arithmetic of the 1969 notation follows the paper’s examples and Foster’s “pass sets” of 1968; the retrospective shows none.
  • The comparison with Prolog was run on SWI-Prolog 11.0.1 alone, with programs written here; no Prolog of the 1970s was run. Where both answer, the answers agree; Prolog’s left-to-right rule loses the three cases above that Absys’s order of elaboration gets through, and coroutines or CLP(FD) get them back. Version 1.1 implied that Prolog has nothing like Absys’s incremental session. That was wrong. A SWI-Prolog engine fed one assertion at a time keeps its bindings, choice points and waiting coroutines between them, and reproduces the reverse example and the 1982 relations posted one by one. What it lacks is a wait for a procedure not yet defined, which is an error there; a dozen lines written here supply it. So Prolog can be made to work this way; in Absys it was the ordinary way a program ran. Both comparisons run in the repository’s CI on a pinned SWI-Prolog.
  • Everything was read and built by one coding agent in one day, from scans and OCR, and has not been checked by a person. Nothing here is claimed as new: Elcock made the case himself, and the history is told elsewhere. A separate fact-check of this note against the papers, by another model, found three quotations, attributions and claims wrong and nine overstated; all are corrected.

A language that survives only as a description can be rebuilt as that description; where the description is silent, its own examples are the best witness.

OPEN

What did the rest of Absys-4 look like?

Elcock says the full language, described in a technical report of 1988 with P. M. D. Gray, had higher-order features and simple control mechanisms, and that Absys had user-declared delays. That report, the end of the 1969 paper, and Elcock’s Problem Solving Compilers of 1971, with its “more complex examples”, would test the decisions made here.

PUBLICATION HISTORY

Each version preserves its manuscript, claims and source references. Research status is recorded separately from publication.

  1. V1.0 · 2026-11-26 ↗

    First published: Absys, the assertional language of Foster, Elcock and their colleagues at Aberdeen, rebuilt from the papers of 1968, 1969 and 1990; Elcock's binding environments for append and reverse reproduced variable for variable, suspended equations included, and the 1969 triples in the paper's order; every order of a seven-assertion text gives one outcome, and of what was tested only not makes the order matter; setdiff, run on inputs chosen here, favours one rule for the order of steps; checked independently against the papers, with three errors and nine overstatements corrected; with a playground that steps through a text an assertion at a time. OPEN

    Display amended: the statements about how the work was done were removed. The stored summary is unchanged. 2026-11-27

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

  2. V1.1 · 2026-11-26 ↗

    Adds Elcock's paper of 1982, found after 1.0: its list of relations awaiting elaboration, printed step by step, now comes out as printed, once a relation returns for each of its variables bound and returned relations go to the head of the list, against the paper's word 'appended'. Records that the paper describes the alternatives as implemented by backtracking, where the retrospective has a fair search, and dates Absys 1968, not 1967; adds where data-directed elaboration stops (x+y=10, x-y=4), with a runnable trace of both readings; and replaces 'no Prolog was run' with the comparison run on SWI-Prolog 11.0.1. Checked independently against the 1982 scans; six findings corrected. OPEN

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

  3. V1.2 · 2026-11-26 ↗

    Corrects 1.1's implication that Prolog has nothing like Absys's incremental session: a SWI-Prolog engine fed one assertion at a time reproduces the reverse example and Elcock's 1982 relations posted one by one, with a layer written here to make a procedure applied before its definition wait. Both comparisons now run in CI on a pinned SWI-Prolog 11.0.1. States that the queue-order finding rests on the printed trace, and settles the order only if the lists were copied from a run. OPEN

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

  4. V1.3 · 2026-11-27 ↗

    Removed the statements about how the work was done; nothing about the results changed OPEN

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

MACHINE-READABLE HISTORY ↗

SOURCES & PROVENANCE

AUTHOR / Chris Hay · VERSION / 1.2

PUBLISHED 26 NOV 2026 · REVISED 26 NOV 2026 · VERSION 1.2

CITE

CITE THIS

Research note · 1.2

Hay, C. (2026). Absys did not unify two unknowns. It waited. (Version 1.2). Chris Hay. https://chrishayuk.com/records/N-ABSYS/1.2