last day (17 days later) » 

13:04
0
Q: Church rosser property in unidrected grap - proof of existence formula in MSO

Haskell Fun Relation $R\subseteq A\times A$ has Rosser-Churchil propetry if for each $a,b,c$ such that there exists path between $a$ and $b$, and from $a$ to $c$ then also exists $d$ reachable from $b$ and $c$. Prove that there existsformula in monadic second order logic that expresses graph with...

Well so far you've only used first order logic. So you should try to quatify over predicates to express $Path$. I'm not exactly sure how to express $Path$. But I think you could replace it with $SimplePath(x,y)$ defined as "There is a simple path from $x$ to $y$", where a simple path is a path with no repeating vertex. $SimplePath$ is easier to express.
user228268
Hmm, After all $SimplePath$ is sufficent for us. Try to show it, please
I know how to show it. But just giving you the answer would be pointless. Try to define $SimplePath(x,y) := \exists P, ...$ where in the $...$ you says that $P$ is a simple path from $x$ to $y$. If you look at it from an undirected point of view, being a path means that every vertex has exactly two neighbours (in the path) except the two endpoints that only have one. Now you can try to build the formula for $SimplePath$ that works for the directed case.
(Remark: The simple approach that I described above (saying that every node has two neighbours except the two endpoints) allows $P$ to be the union of a simple path from $x$ to $y$ and of several disjoint cycles. But that's not really a problem. This could be fixed by saying that $P$ is the smallest such set, but it's not necessary since you just want to know if a simple path exists)
user228268
Maybe, the best idea is to express: $Path(x,y)$ iff there exists subgraph such that it contains $x$ and $y$, subgraph is connected (one component. This is equivalent to existence of path. What dio you think ?
How would you express being connected without using the notion of Path? It looks hard to me. The nice thing about paths is that you can just check locally that it's a path and it suffices to fully characterise a path. A connected set looks way harder to characterise locally.
user228268
13:04
Look here, math.stackexchange.com/questions/2141454/… Author of answer managed to express existence of Path in MSO. Is it similar to your idea ?
Right. So you have a solution to your problem? And I initially missed that in your question, but as they say in the answer you linked, you only ever talk about finite paths, even in infinite graphs.
user228268
Hmm, @bof's solution doesnt define path, we need in this problem Path. I still don't how to solve uit
You should hard all the information you need in my previous comments. If there is something you don't understand, let me know.
user228268
Ok, I am
user228268
Tell me, if you agree with formula in my post ?
user228268
13:06
As you know it try to use path relation
user228268
to works
user228268
but generally, should work?
user228268
15:54
@xavierm02 could you help me ?
user228268
Following your hints:
Path(x,y)
exitsts some subset of nodes P
P contains x,
P contains y,
P is connected (one component)
P is finite
each node has degree equals to 2

I am not sure if you are able to **express in MSO** connectivity or finitness
16:55
The formula in your question works but is overly complicated. You're saying "If I can go to two distinct places, then I can go to some third place from those two places". But you don't need them to be distinct. In other words, you can remove the (b =/= c) hypothesis.
Path(x,y) := exists P,
P contains x /\
P contains y /\
for each z in P, (If it's not x it has a predecessor in P) /\ (if it's not y, it has a successor in P)
replace "a successor/predecessor" by "a unique successor/predecessor"
The only thing that can go wrong is if you have an infinite path starting at x and a coinfinite path going to y.
Which I kind of missed. Anyway, here's a fix: Define Reachable(x) the set of nodes reachable from x. You should be able to easily define a set that contains at least all nodes reachable from x. Then Reachable(x) is just the smallest such set. And once you have Reachable(x), testing the existence of a path is easy.
 
3 hours later…
user228268
20:26
Wait wait wait. It is not simple.
P is any subset of nodes - ok.
x and y are in P - ok

Generally, it doesn't work.
You don't guarantees that path starting at x, and go to y.
For example this graph satisfy:
x ---> x_1 ----> ...... ----> x_n
y ---> y_2 ----> ...... ----> infinity
user228268
Moreover, how you define Reachable without Path ?

  last day (17 days later) »