Trying to go from $[p∧(q∨r)]$ to prove $(p∧q) ∨ (p∧r)$
Wanted to know if I am heading in the right direction with my deductions or where I am getting messed up.
$\begin{array}{|l}(p\wedge (q\vee r) \quad \text{premise}\\\hline p \quad\wedge\text{elim 1}\\q\vee r \quad \wedge\text{elim 1}\\\hline q \quad \text{assumption} \\p\wedge q\quad \wedge \text{intro 2,4} \\(p\wedge q)\vee (p\wedge r) \quad \vee\text{intro 5}\\\hline r \quad \text{assumption}\\p\wedge r \quad\wedge\text{intro 2,7}\\(p\wedge q)\vee (p\wedge r)\quad \vee\text{intro 8}\\\hline (p\wedge q)\vee (p \wedge r) \quad \vee \text{elim 3,4-6,7-9}\end{array}$
$\def\fitch#1#2{\quad\begin{array}{|l}#1\\\hline#2\end{array}}$ I think your proof would be something like this:
$$ \fitch {~~1.~P\land(Q\lor R)} { ~~2.~P\hspace{25ex}{\land}~\textsf{E}~1\\ ~~3.~Q\lor R\hspace{20.6ex}{\land}~\textsf{E}~1\\ \fitch {~~4.~Q} {~~5.~P\land Q\hspace{17.2ex}{\land}~\textsf{I}~2,4\\ ~~6.~(P\land R)\lor(P\land Q)\hspace{5ex}{\lor}~\textsf{I}~5}\\ \fitch {~~7.~R} {~~8.~P\land R\hspace{17.5ex}{\land}~\textsf{I}~2,7\\ ~~9.~(P\land R)\lor(P\land Q)\hspace{5.2ex}{\lor}~\textsf{I}~8}\\ ~~10.~(P\land R)\lor(P\land Q)\hspace{7.2ex}{\lor}~\textsf{E}~3,4-6,7-9}\\ $$