Joel's Notes

Mathematical Foundations of Computing

Computability Theory

Discrete Math

Derivations

Myhill-Nerode Theorem

Myhill–Nerode Theorem: if L is a language and S is a distinguishing set for LL that contains infinitely many strings then LL is nonregular. Proof: Pick an arbitrary language LL and a distinguishing set for LL that contains infinitely many strings. We want to show that LL is nonregular. To do so, assume for the sake of contradiction that LL is regular. This means that there exists a DFA D such that L(D)=L\mathscr L(D)=L. Let kk be the number of states in DD. Pick k+1k+1 strings from SS. Since we picked k+1k+1 strings and there are kk states in the DFA, there must be one state with 22 strings sms_m and sns_n. Since SS is a distinguishing set, sms_m and sns_n cannot map to the same state of a DFA. We have reached a contradiction, so our earlier assumption must have been false. Therefore, LL is nonregular.

pq¬pqp\to q\equiv\lnot p\vee q

De Morgan's Laws

(AB)(¬AB)(¬BA)(A\lor B)\leftrightarrow(\lnot A\to B)\leftrightarrow(\lnot B\to A)