If I'm given a well formed formula $\varphi$ that only has the logic symbols $\land,\lor,\neg$. I want to define a formula $\varphi^*$ that is a result of switching every sign $\land$ to $\lor$ and every $\lor$ to $\land$ and every atom to its negation in $\varphi$.
So, I thought defining $\varphi^*$ will be :
Base step: $\varphi$ is an atom then $\varphi^*=\neg{\varphi}$.
Induction step: Here I'm not having a clear thought about defining this so i was thinking of letting $\alpha,\beta\in{WFF}$ that satisfy $\varphi$ .then i gave my self some examples and saw that i need to apply negation to the formulas $\alpha,\beta$ that construct $\varphi$ based on counting $\land$,$\lor$.
My examples:
$\varphi=(p_1\land p_2)\implies \varphi^*=\neg\varphi$.
$\varphi=(p_1\land p_2)\lor p_3 \implies\varphi^*=\neg\neg\varphi$
Is this correct?
The induction step corresponds to the cases $\varphi = \lnot \varphi_1$, $\varphi = \varphi_1 \lor \varphi_2$ and $\varphi = \varphi_1 \land \varphi_2$, where $\varphi_1$ and $\varphi_2$ are well-formed formulas that only have the logic symbols $\lnot$, $\lor$ and $\land$. By induction hypothesis, $\varphi_1^*$ and $\varphi_2^*$ is already defined (this is the "magic" aspect of definitions by induction), so you just have to set: