Product Construction

Definition. Given DFAs M1=(Q1,Σ,δ1,q1,F1)M_1 = (Q_1, \Sigma, \delta_1, q_1, F_1) and M2=(Q2,Σ,δ2,q2,F2)M_2 = (Q_2, \Sigma, \delta_2, q_2, F_2), the product construction builds the DFA with state set Q1×Q2Q_1 \times Q_2, start state (q1,q2)(q_1, q_2), and transition function δ((r,s),a)=(δ1(r,a),δ2(s,a))\delta((r,s), a) = (\delta_1(r,a), \delta_2(s,a)).

The product machine runs both machines on the same input at once, holding one state of each, so after reading ww it occupies exactly the pair of states M1M_1 and M2M_2 reach on ww. The accepting set selects the operation: F1×F2F_1 \times F_2 gives intersection, and the pairs with at least one accepting coordinate give union. Introduced in Lecture 4 as a closure property proof, and reused in Unit 3.

Updated
Copyright © 2026 Jared Coleman. All rights reserved.