I'm was studying CTL when I realized that it is quite difficult (at least for me) to separate when to use $AG\ EF\phi$ and when to use $AF\phi$.
I read $AG\ EF\phi$ (starting at some $s_0$) as:
For all states reachable from the initial state ($AG$), there exists some state that is possible to reach ($EF$) where $\phi$ holds.
I read $AF\phi$ as:
All paths reachable from the initial state contain some state where $\phi$ holds.
I have the same problem with other types of compositions as well, where I tend to think of $AG$ and $EF$ as "pure", and create compositions of them instead of using AF and EG. Could someone explain whether the two example formulas are equivalent and explain why/why not? It would really help me in realizing when to use compositions and when to use "just one".
Thanks!
PS. I can't tag it with CTL/Temporal Logic :(
I believe I have found an answer. I will post it here, and hopefully this will be of any use in the future.
After some analysis, here are my conclusions:
So the first one does not necessarily have to ever enter a state where $\phi$ holds. Even if we wait infinitely long, we can always chose to not take the branch that leads to the future state where $\phi$ holds, creating a path that never reaches the future state but is always able to.
On the other hand, the second one will always reach the future state where $\phi$ holds, no matter which path we choose. If we wait infinitely long for that future state, eventually we will get to it.
So they are not equivalent.
Hope this helps anyone :)