{"id":"N-Q-SYSTEMS","url":"https://chrishayuk.com/notebook/a-q-system-rule-never-replaced-anything","currentVersion":"1.2","publication":"published","scientificStatus":"OPEN","versions":[{"version":"1.0","title":"A Q-system rule never replaced anything.","abstract":"A note about reconstructing the Q-systems, the rule language Alain Colmerauer designed at the Université de Montréal for the TAUM machine-translation project, in use from October 1969. No program text of it is known to survive. With a coding agent, the language was rebuilt from Colmerauer’s report of September 1970, read from its page scans. A Q-system rewrites a graph of strings, not a string: a rule adds a path beside every path it matches and replaces nothing, and the arrows it rewrote are removed only when no rule applies any more. So one graph holds every alternative, with the shared parts shared. Run on the report’s examples, the reconstruction gives every result the report prints, with two exceptions. Its French example runs both ways: the sixteen rules, inverted, analyse a sentence into its normalised tree, and as written they synthesise its eighteen paraphrases into one graph of nineteen vertices, which is the report’s printout line for line, vertex numbers and all; each of the eighteen analyses back to the one tree. The exceptions: the report’s rules for turning a tree into a string do not stop as printed, and the eighteen sentences of the last printout come out in exactly the reverse of the report’s order. And the rules for removing one string remove its neighbours too.","authors":["Chris Hay"],"url":"https://chrishayuk.com/records/N-Q-SYSTEMS/1.0","published":"2026-11-26","publication":"published","scientificStatus":"OPEN","supersededBy":[],"hash":"9da8fb9bc2f9d8c32232aeb1ede2c0b84ebb54b892eb1ed1f08316495057ef44","algorithm":"sha256","revision":{"kind":"initial","summary":"The note after an independent fact-check against the report's page images: two results of the report differ, not one (the p. 30 rules do not stop, and the last printout is reversed); fourteen branching vertices, not six; the grammar's unambiguity is stated for sentences with at most one embedded clause, and every one of them was analysed back to its tree; the p. 27 system is the example of section 8, not the first; TAUM 71 is given only as holding the English morphology; METEO is named; the 1992 republication is recorded as not seen."},"display":{"kind":"initial","summary":"The note after an independent fact-check against the report's page images: two results of the report differ, not one (the p. 30 rules do not stop, and the last printout is reversed); fourteen branching vertices, not six; the grammar's unambiguity is stated for sentences with at most one embedded clause, and every one of them was analysed back to its tree; the p. 27 system is the example of section 8, not the first; TAUM 71 is given only as holding the English morphology; METEO is named; the 1992 republication is recorded as not seen."},"next":"https://chrishayuk.com/records/N-Q-SYSTEMS/1.1","sources":[{"title":"A. Colmerauer, Les systèmes-Q ou un formalisme pour analyser et synthétiser des phrases sur ordinateur, publication interne no 43, Département d’informatique, Université de Montréal, September 1970","url":"http://alain.colmerauer.free.fr/alcol/ArchivesPublications/SystemesQ/SystemesQ.pdf","note":"Read in full from the page scans on Alain Colmerauer’s site, linked from the Computer History Museum’s Prolog archive. Every example and quotation was read from the images, not the OCR. The scan lacks printed page 23 and has page 16 twice. All the figures but the TAUM printout are cropped from it. Republished in Traitement Automatique des Langues 33 (1–2), 1992, pp. 105–148, according to Colmerauer’s bibliography (TPLP, 2004); that version was not seen."},{"title":"I. Findeisen-Bellert, interactive session with TAUM translating a sentence from English to French, c. 1972. Gift of Janusz Bień, Computer History Museum","url":"https://softwarepreservation.computerhistory.org/prolog/montreal/src/Findeisen-Bellert-TAUM-1972.pdf","note":"Line-printer output, folded at a fixed width. Used only for the form of a printed graph: PHASE n, then -01- … -02-."},{"title":"Computer History Museum, History of Prolog, section Université de Montréal","url":"https://softwarepreservation.computerhistory.org/prolog/","note":"The source of both documents, and of the history quoted from Colmerauer and Roussel’s “The birth of Prolog” (1996), which was not read in the original."},{"title":"chrishayuk/q-systems","url":"https://github.com/chrishayuk/q-systems","note":"The machine, every example of the report with its output, 21 acceptance tests that name their pages, every decision with its evidence, the experiments, and the playground."},{"title":"Coding-agent session, 26 November 2026","note":"The interpreter, the transcriptions and the comparisons were made with a coding agent. Every result in this note can be rerun on the interactive study or with cargo test in the repository."}],"manuscript":"https://chrishayuk.com/api/record/N-Q-SYSTEMS?version=1.0","citations":"https://chrishayuk.com/api/citations/N-Q-SYSTEMS?version=1.0"},{"version":"1.1","title":"A Q-system rule never replaced anything.","abstract":"A note about reconstructing the Q-systems, the rule language Alain Colmerauer designed at the Université de Montréal for the TAUM machine-translation project, in use from October 1969. No program text of it is known to survive. With a coding agent, the language was rebuilt from Colmerauer’s report of September 1970, read from its page scans. A Q-system rewrites a graph of strings, not a string: a rule adds a path beside every path it matches and replaces nothing, and the arrows it rewrote are removed only when no rule applies any more. So one graph holds every alternative, with the shared parts shared. Run on the report’s examples, the reconstruction gives every result the report prints, with two exceptions. Its French example runs both ways: the sixteen rules, inverted, analyse a sentence into its normalised tree, and as written they synthesise its eighteen paraphrases into one graph of nineteen vertices, which is the report’s printout line for line, vertex numbers and all; each of the eighteen analyses back to the one tree. The exceptions: the report’s rules for turning a tree into a string do not stop as printed, and the eighteen sentences of the last printout come out in exactly the reverse of the report’s order. And the rules for removing one string remove its neighbours too.","authors":["Chris Hay"],"url":"https://chrishayuk.com/records/N-Q-SYSTEMS/1.1","published":"2026-11-26","revised":"2026-11-26","publication":"published","scientificStatus":"OPEN","supersededBy":[],"hash":"8120cbb738c710fcd3012fb6e013b6add627cf4cd9ad5116cc93f79884c42d91","algorithm":"sha256","revision":{"kind":"correction","summary":"The bound on the 8,112 trees is one level of embedding, a clause in either argument but none inside another, not one embedded clause","previous":"1.0"},"display":{"kind":"correction","summary":"The bound on the 8,112 trees is one level of embedding, a clause in either argument but none inside another, not one embedded clause"},"previous":"https://chrishayuk.com/records/N-Q-SYSTEMS/1.0","next":"https://chrishayuk.com/records/N-Q-SYSTEMS/1.2","sources":[{"title":"A. Colmerauer, Les systèmes-Q ou un formalisme pour analyser et synthétiser des phrases sur ordinateur, publication interne no 43, Département d’informatique, Université de Montréal, September 1970","url":"http://alain.colmerauer.free.fr/alcol/ArchivesPublications/SystemesQ/SystemesQ.pdf","note":"Read in full from the page scans on Alain Colmerauer’s site, linked from the Computer History Museum’s Prolog archive. Every example and quotation was read from the images, not the OCR. The scan lacks printed page 23 and has page 16 twice. All the figures but the TAUM printout are cropped from it. Republished in Traitement Automatique des Langues 33 (1–2), 1992, pp. 105–148, according to Colmerauer’s bibliography (TPLP, 2004); that version was not seen."},{"title":"I. Findeisen-Bellert, interactive session with TAUM translating a sentence from English to French, c. 1972. Gift of Janusz Bień, Computer History Museum","url":"https://softwarepreservation.computerhistory.org/prolog/montreal/src/Findeisen-Bellert-TAUM-1972.pdf","note":"Line-printer output, folded at a fixed width. Used only for the form of a printed graph: PHASE n, then -01- … -02-."},{"title":"Computer History Museum, History of Prolog, section Université de Montréal","url":"https://softwarepreservation.computerhistory.org/prolog/","note":"The source of both documents, and of the history quoted from Colmerauer and Roussel’s “The birth of Prolog” (1996), which was not read in the original."},{"title":"chrishayuk/q-systems","url":"https://github.com/chrishayuk/q-systems","note":"The machine, every example of the report with its output, 21 acceptance tests that name their pages, every decision with its evidence, the experiments, and the playground."},{"title":"Coding-agent session, 26 November 2026","note":"The interpreter, the transcriptions and the comparisons were made with a coding agent. Every result in this note can be rerun on the interactive study or with cargo test in the repository."}],"manuscript":"https://chrishayuk.com/api/record/N-Q-SYSTEMS?version=1.1","citations":"https://chrishayuk.com/api/citations/N-Q-SYSTEMS?version=1.1"},{"version":"1.2","title":"A Q-system rule never replaced anything.","abstract":"A note about reconstructing the Q-systems, the rule language Alain Colmerauer designed at the Université de Montréal for the TAUM machine-translation project, in use from October 1969. No program text of it is known to survive. The language was rebuilt from Colmerauer’s report of September 1970, read from its page scans. A Q-system rewrites a graph of strings, not a string: a rule adds a path beside every path it matches and replaces nothing, and the arrows it rewrote are removed only when no rule applies any more. So one graph holds every alternative, with the shared parts shared. Run on the report’s examples, the reconstruction gives every result the report prints, with two exceptions. Its French example runs both ways: the sixteen rules, inverted, analyse a sentence into its normalised tree, and as written they synthesise its eighteen paraphrases into one graph of nineteen vertices, which is the report’s printout line for line, vertex numbers and all; each of the eighteen analyses back to the one tree. The exceptions: the report’s rules for turning a tree into a string do not stop as printed, and the eighteen sentences of the last printout come out in exactly the reverse of the report’s order. And the rules for removing one string remove its neighbours too.","authors":["Chris Hay"],"url":"https://chrishayuk.com/records/N-Q-SYSTEMS/1.2","published":"2026-11-26","revised":"2026-11-27","publication":"published","scientificStatus":"OPEN","supersededBy":[],"hash":"856dd873baf94c7f4a36fb2276d7e994614aa7bbdde1c1e9a084c63ffc47ecdc","algorithm":"sha256","revision":{"kind":"clarification","summary":"Removed the statements about how the work was done; nothing about the results changed","previous":"1.1"},"display":{"kind":"clarification","summary":"Removed the statements about how the work was done; nothing about the results changed"},"previous":"https://chrishayuk.com/records/N-Q-SYSTEMS/1.1","sources":[{"title":"A. Colmerauer, Les systèmes-Q ou un formalisme pour analyser et synthétiser des phrases sur ordinateur, publication interne no 43, Département d’informatique, Université de Montréal, September 1970","url":"http://alain.colmerauer.free.fr/alcol/ArchivesPublications/SystemesQ/SystemesQ.pdf","note":"Read in full from the page scans on Alain Colmerauer’s site, linked from the Computer History Museum’s Prolog archive. Every example and quotation was read from the images, not the OCR. The scan lacks printed page 23 and has page 16 twice. All the figures but the TAUM printout are cropped from it. Republished in Traitement Automatique des Langues 33 (1–2), 1992, pp. 105–148, according to Colmerauer’s bibliography (TPLP, 2004); that version was not seen."},{"title":"I. Findeisen-Bellert, interactive session with TAUM translating a sentence from English to French, c. 1972. Gift of Janusz Bień, Computer History Museum","url":"https://softwarepreservation.computerhistory.org/prolog/montreal/src/Findeisen-Bellert-TAUM-1972.pdf","note":"Line-printer output, folded at a fixed width. Used only for the form of a printed graph: PHASE n, then -01- … -02-."},{"title":"Computer History Museum, History of Prolog, section Université de Montréal","url":"https://softwarepreservation.computerhistory.org/prolog/","note":"The source of both documents, and of the history quoted from Colmerauer and Roussel’s “The birth of Prolog” (1996), which was not read in the original."},{"title":"chrishayuk/q-systems","url":"https://github.com/chrishayuk/q-systems","note":"The machine, every example of the report with its output, 21 acceptance tests that name their pages, every decision with its evidence, the experiments, and the playground."},{"title":"Reconstruction, 26 November 2026","note":"The interpreter, the transcriptions and the comparisons. Every result in this note can be rerun on the interactive study or with cargo test in the repository."}],"manuscript":"https://chrishayuk.com/api/record/N-Q-SYSTEMS?version=1.2","citations":"https://chrishayuk.com/api/citations/N-Q-SYSTEMS?version=1.2"}]}