{"id":"N-Q-SYSTEMS-POSSIBILITIES","url":"https://chrishayuk.com/notebook/a-q-system-can-hold-a-trillion-strings-but-never-sees-two-become-one","currentVersion":"1.1","publication":"published","scientificStatus":"OPEN","versions":[{"version":"1.0","title":"A Q-system can hold a trillion strings, but never sees two become one.","abstract":"A second note on the Q-systems, Alain Colmerauer’s rule language of 1969 for the TAUM translation project, reconstructed with a coding agent from his report of 1970. The first note checked the reconstruction against every result the report prints. This one measures the machine on graphs built to test it. Forty independent choices give 1,099,511,627,776 strings in 80 arrows, and a rule that looks at one or two words at a time works on all of them in 80 applications or fewer. So does a rule that fans one word out into two, which is how the report’s grammar writes 9,565,938 French sentences in 2,760 arrows. But a result carried along a string is made once for every path that reaches it. The parity of twelve choices has two possible values and costs 8,190 applications, exactly what writing each of the 4,096 strings out as a tree costs. The report adds a brand-new path for every application and says nothing of merging, so read literally two equal arrows are kept; and no rule can merge them, because a rule matches one path and two alternatives are never on one path. A variant of the machine that merges them, kept apart from the historical one, does parity in 46 applications and can still count every derivation, but it changes what some rules mean. The second phase, which removes every arrow a rule used, removes strings no rule touched; purifying by strings instead keeps them, but breaks the report’s own analysis and its recipe for deleting a string. Whether or not Colmerauer saw that loss, his systems depend on it: it is what makes an analysis return only complete analyses.","authors":["Chris Hay"],"url":"https://chrishayuk.com/records/N-Q-SYSTEMS-POSSIBILITIES/1.0","published":"2026-11-26","publication":"published","scientificStatus":"OPEN","supersededBy":[],"hash":"d9df2aaab94e8099fd578c58c122c650794cc3418e030628ebb6ab53009cacf7","algorithm":"sha256","revision":{"kind":"initial","summary":"First publication, after an independent fact-check against the repository and the report's page scans"},"display":{"kind":"initial","summary":"First publication, after an independent fact-check against the repository and the report's page scans"},"next":"https://chrishayuk.com/records/N-Q-SYSTEMS-POSSIBILITIES/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":"The definition of a phase, p. 22, and of -INV-, p. 33; the grammar of section 11; the cul-de-sac of pp. 30–31. Read from the page scans for the first note."},{"title":"chrishayuk/q-systems, docs/research.md, QSYS-E08 to E15","url":"https://github.com/chrishayuk/q-systems/blob/main/docs/research.md","note":"Every count in this note, with the test in tests/research.rs that asserts it."},{"title":"chrishayuk/q-systems","url":"https://github.com/chrishayuk/q-systems","note":"The historical machine, src/machine.rs, unchanged by these experiments; the variants, src/experimental.rs; the programs of E15, research/."},{"title":"Coding-agent session, 26 November 2026","note":"The experiments were designed, run and written up with a coding agent. Every result can be rerun with cargo test --release --test research in the repository; the 131,424 sentences of the first note need -- --ignored as well."}],"manuscript":"https://chrishayuk.com/api/record/N-Q-SYSTEMS-POSSIBILITIES?version=1.0","citations":"https://chrishayuk.com/api/citations/N-Q-SYSTEMS-POSSIBILITIES?version=1.0"},{"version":"1.1","title":"A Q-system can hold a trillion strings, but never sees two become one.","abstract":"A second note on the Q-systems, Alain Colmerauer’s rule language of 1969 for the TAUM translation project, reconstructed from his report of 1970. The first note checked the reconstruction against every result the report prints. This one measures the machine on graphs built to test it. Forty independent choices give 1,099,511,627,776 strings in 80 arrows, and a rule that looks at one or two words at a time works on all of them in 80 applications or fewer. So does a rule that fans one word out into two, which is how the report’s grammar writes 9,565,938 French sentences in 2,760 arrows. But a result carried along a string is made once for every path that reaches it. The parity of twelve choices has two possible values and costs 8,190 applications, exactly what writing each of the 4,096 strings out as a tree costs. The report adds a brand-new path for every application and says nothing of merging, so read literally two equal arrows are kept; and no rule can merge them, because a rule matches one path and two alternatives are never on one path. A variant of the machine that merges them, kept apart from the historical one, does parity in 46 applications and can still count every derivation, but it changes what some rules mean. The second phase, which removes every arrow a rule used, removes strings no rule touched; purifying by strings instead keeps them, but breaks the report’s own analysis and its recipe for deleting a string. Whether or not Colmerauer saw that loss, his systems depend on it: it is what makes an analysis return only complete analyses.","authors":["Chris Hay"],"url":"https://chrishayuk.com/records/N-Q-SYSTEMS-POSSIBILITIES/1.1","published":"2026-11-26","revised":"2026-11-27","publication":"published","scientificStatus":"OPEN","supersededBy":[],"hash":"954a41472596fd0ceed2a7688b4831d295c75b4d1921d913858c6574f5dab812","algorithm":"sha256","revision":{"kind":"clarification","summary":"Removed the statements about how the work was done; nothing about the results changed","previous":"1.0"},"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-POSSIBILITIES/1.0","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":"The definition of a phase, p. 22, and of -INV-, p. 33; the grammar of section 11; the cul-de-sac of pp. 30–31. Read from the page scans for the first note."},{"title":"chrishayuk/q-systems, docs/research.md, QSYS-E08 to E15","url":"https://github.com/chrishayuk/q-systems/blob/main/docs/research.md","note":"Every count in this note, with the test in tests/research.rs that asserts it."},{"title":"chrishayuk/q-systems","url":"https://github.com/chrishayuk/q-systems","note":"The historical machine, src/machine.rs, unchanged by these experiments; the variants, src/experimental.rs; the programs of E15, research/."},{"title":"Experiments, 26 November 2026","note":"Every result can be rerun with cargo test --release --test research in the repository; the 131,424 sentences of the first note need -- --ignored as well."}],"manuscript":"https://chrishayuk.com/api/record/N-Q-SYSTEMS-POSSIBILITIES?version=1.1","citations":"https://chrishayuk.com/api/citations/N-Q-SYSTEMS-POSSIBILITIES?version=1.1"}]}