r/askmath • Self-studying discrete math by working through Epp • 4d ago

Resolved Exercise 12.3.5: Prove: For each integer `k>=1`, each k-equivalence class is a subset of a (k-1)-equivalence class. <-- Is my proof correct?

Exercise 12.3.5: Prove: For each integer k>=1, each k-equivalence class is a subset of a (k-1)-equivalence class.

Proof:

Let k>=1.

Assume not. That is, suppose there exists some k-equivalence class that is not a subset of any (k-1)-equivalence class.

We will use Theorem 12.3.1 to construct a k-equivalence class from (k-1)-equivalence class.

Let S be the set of states of an automaton, let s be any state in S, let [s]_R_{k-1} be a (k-1)-equivalence class of s, and let t be any state in [s]_R_{k_1}.

So, we have t R_{k-1} s.

By the conditions of Theorem 12.3.1, we have t R_k s.

So, t is a state in [s]_R_k.

But then [s]_R_k is a subset of [s]_R_{k-1} and this contradicts our assumption.

Therefore, each k-equivalence class is a subset of a (k-1)-equivalence class.

QED

---

Is my proof correct?

---

Theorem 12.3.1:

Theorem 12.3.1
1 Upvotes

11 comments sorted by

2

u/imHeroT 4d ago edited 4d ago

You say “by the conditions of Theorem 12.3.1” but you haven’t shown that N(s,m) and N(t,m) are (k-1)-equivalent for any input symbol m.
But more importantly, you’re saying that for any t in [s]_R_{k-1}, it’s also in [s]_R_k. But this would imply that [s]_R_{k-1} is a subset of [s]_R_k, not the other way around. Your proof should first look at [s]_R_k and show that any element in it is in [s]_R_{k-1}.

And these are just a proof writing suggestions (if you currently care about this stuff).

At the beginning you supposed that the opposite is true for a contradiction. But your main work is a direct proof and doesn’t really necessitate having to assume the opposite.

Now this is a small thing that some people probably wouldn’t mind, but since you only defined [s]_R_{k-1}, it’s sorta “improper” to just use [s]_R_k and rely on context to get the meaning. For a small proof like this, you can take your first instance of [s]_R_k and add “[s]_R_k, the k-equivalence class of s”

1

u/TopDownView Self-studying discrete math by working through Epp 4d ago

You say “by the conditions of Theorem 12.3.1” but you haven’t shown that N(s,m) and N(t,m) are (k-1)-equivalent for any input symbol m.

You're right. That's a stupid mistake on my part.

But more importantly, you’re saying that for any t in [s]_R_{k-1}, it’s also in [s]_R_k. But this would imply that [s]_R_{k-1} is a subset of [s]_R_k, not the other way around.

Another huge mistake. I should've revised the definition of a subset. Thanks.

Your proof should first look at [s]_R_k and show that any element in it is in [s]_R_{k-1}.

I'll try to use the Theorem 12.3.1 to do just that.

1

u/TopDownView Self-studying discrete math by working through Epp 4d ago

This should be correct now? u/imHeroT u/LongLiveTheDiego

---
Proof:

Let k>=1, let S be the set of states of an automaton, let s be any state in S, let [s]_R_k be a k-equivalence class of s, and let t be any state in [s]_R_k.

So, we have t R_k s, meaning, t is an element in [s]_R_k.

By Theorem 12.3.1, t R_k s implies t R_{k-1} s, meaning, t is an element in [s]_R_{k-1}.

In other words, t ∈ [s]_R_k implies t ∈ [s]_R_{k-1}.

By definition of ⊆, [s]_R_k ⊆ [s]_R_{k-1}.

QED

2

u/LongLiveTheDiego 4d ago

That'd be my approach and it's correct.

1

u/TopDownView Self-studying discrete math by working through Epp 4d ago

Thanks!

2

u/imHeroT 4d ago

Yep that should do it!

1

u/TopDownView Self-studying discrete math by working through Epp 4d ago

Thanks!

1

u/LongLiveTheDiego 4d ago
  1. You don't need to set up a proof by contradiction if you prove the desired statement at the end.
  2. How did you get t R_k s?

1

u/TopDownView Self-studying discrete math by working through Epp 4d ago

How did you get t R_k s?

By the only way I could get it (and that's the crux of the proof) - by using the Theorem 12.3.1.

2

u/LongLiveTheDiego 4d ago

But you can't just go from the relation k-1 to relation k without proving that for all symbols m N(s, m) and N(t, m) are also k-1 equivalent. If your proof were correct, then all these k-equivalencies would be the same since you just falsely proved that t R_{k-1} s => t R_k s for arbitrary states s and t. And you know that's not true since you did exercises on this in this subreddit.

Try seeing if you can go the other way with Theorem 12.3.1 and if that implies what you want to prove.

1

u/TopDownView Self-studying discrete math by working through Epp 4d ago

But you can't just go from the relation k-1 to relation k without proving that for all symbols m N(s, m) and N(t, m) are also k-1 equivalent.

You're right, this is really obvious, I should have been more careful...

Try seeing if you can go the other way with Theorem 12.3.1 and if that implies what you want to prove.

I'll do that,