I am not an expert in either tag systems (or `find`), but this seems right. Using backreferences to handle copies sounds right (it does add expressive power to regular expressions but does not give Turing completeness, afaik).
I think your first example is missing the "any word of length < 2 is a halting word" condition but it is present in your second example.
Re:`find` + `mkdir` is Turing complete
by ogiekako2 on Thursday August 01, 2024 @07:06AM
(#41127927)
Thank you! I've updated the article with a link to my comment.
The definition of tag systems says "add P(x) to the end" but doesn't define x.
I can't spot errors in the logic or code, though I'm not an expert either.
[1] https://onecompiler.com/bash/42mux2442 [2] https://onecompiler.com/bash/42mux3nf8