[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] Interactive exploration of the TLC state graph?



Hi Ognjen,

the TLA+ debugger [1] could potentially address some of the features you're interested in.  For 2. you will have to run the TLA+ debugger in simulation mode.

M.

[1] https://youtu.be/DsfbdsE4hJ0?t=250

> On Sep 5, 2023, at 5:40 AM, Ognjen Maric <ognjen.maric@xxxxxxxxx> wrote:
> 
> one thing I'd find very useful in understanding (or debugging) the behaviors of TLA+ specs would be a mode that would support interactive exploration of the state space. At a high level I'm imagining something like (given a TLC config file and all that):
> 1. In the beginning, I get the list of valid initial states, I click on one and pick it as my "current state"
> 2. Given the current state, I'm presented with the list of enabled actions from this state. I can then clickety-click on an action, and then I get the list of possible successor states resulting from that action. I clickety-click again on a state from that list again, extending the current trace with that state and making it my new current state. Ideally, I also have a "back" button that takes me one state back in the trace.
> 
> Does anything like this exist, or is someone working on something similar? I'm aware that one can export the state graph to GraphViz, but TBH I haven't found this super useful, as my state graphs tend to have hundreds or thousands of states even for small choices of constants. But maybe there are some existing tools for GraphViz that would allow such an interactive exploration? If not, what would be a reasonable way to build this on top of TLC?


-- 
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/291AE03E-16A1-44A9-ABB5-6296B02D382B%40lemmster.de.