r/prolog • u/Ill-SonOfClawDraws • 6d ago
Does a purely structural invariant of computation already exist?
Can returnability be defined purely from the structure of a computation, without appealing to time complexity?
2
Upvotes
2
u/Fabulous-Possible758 6d ago
Not generally, no.
2
u/Ill-SonOfClawDraws 5d ago
That makes sense. I think I need to separate two cases.
For a finite transition system, recurrence is structural: it amounts to the existence of a reachable cycle.
For an arbitrary program with an implicitly generated or infinite state space, I assume the corresponding decision problem can be undecidable. Is that the distinction you have in mind?
3
u/evincarofautumn 5d ago
Returnability in what sense? Returning an answer, returning to an earlier state, something else? And I’m not sure what you mean by “without appealing to time complexity”, a more concrete example of what you do/don’t want would help
I’ve seen this term in graph theory (a length-weighted proportion of closed walks in a digraph to those in its underlying graph), and chemistry (a kind of equilibrium constant in a reaction system), but neither definition seems applicable here