I am trying to reproduce the following with tikz:

And also:

Regarding the first image I could start with:
\documentclass{article}
\usepackage{tikz-qtree}
\usepackage{tikz-cd}
\tikzstyle{every picture}+=[remember picture]
\begin{displaymath}
((\neg Qb \wedge x (Px \rightarrow Qx))
\tikz[baseline]\node (n1) {$\rightarrow$}; \neg Pb)
\end{displaymath}
\begin{displaymath}
(\neg Qb \wedge \tikz[baseline]\node (n2) {$\forall$};x
(Px \rightarrow Qx)) \qquad \tikz[baseline]\node (n3) {$\neg Pb$};
\end{displaymath}
\begin{tikzpicture}[overlay]
\draw (n1) -- (n2);
\draw (n1) -- (n3);
\end{tikzpicture}
\end{document}
The result, however, is far from elegant, and I do not know how to proceed from that:


