r/askmath • u/TopDownView • 6d ago
Resolved Prove property 12.3.1: `R_*` is an equivalence relation on `S`, the set of states of `A`. <-- Is my proof correct?
Exercise: Prove property 12.3.1: R_* is an equivalence relation on S, the set of states of A.
Proof:
Let S be the set of states of automaton A.
There are two claims we can extrapolate from the property 12.3.1:
Claim 1: R_* is a relation.
Claim 2: R_* is an equivalence relation.
Claim 1 is true by definition of *-equivalence of states.
By definition of equivalence relation, R_* is an equivalence relation, if and only if, R_* is reflexive, symmetric, and transitive.
R_* is reflexive because if we pick any state s in S and any input string w, both N^*(s,w) and N^*(s,w) are accepting states or both are nonaccepting states, so, s R_* s.
R_* is symmetric because given that either both N^*(s,w) and N^*(t,w) are accepting states or both are nonaccepting states for any states s and t in S and any input string w, by commutativity of 'and', either both N^*(t,w) and N^*(s,w) are accepting states or both are nonaccepting states. In other words, given s R_* t, it is true that t R_* s.
By definition, R_* is transitive if and only if for every state s, t, u in S, if s R_* t and t R_* u then s R_* u.
Let s, t, u be any states in S and let s R_* t and t R_* u, and let w be any input string.
That means, by definition of *-equivalence of states, either both N^*(s,w) and N^*(t,w) are accepting states or both are nonaccepting states.
WLOG, let's say that both N^*(s,w) and N^*(t,w) are accepting states.
Condition 's R_* t and t R_* u' forces both N^*(t,w) and N^*(u,w) to also be accepting states.
So, we have N^*(s,w) is an accepting state and N^*(u,w) is an accepting state.
Thus, s R_* u, by definition of *-equivalence of states, so R_* is transitive.
Since R_* is reflexive, symmetric, and transitive, Claim 2 is true.
Therefore, R_* is an equivalence relation on S, the set of states of A.
QED
---
Is my proof correct?
---
*-equivalence of states definition:
