Let $\varphi$ be a propositional formula, defined as a formula containing propositional symbols and connectives only, and let $\psi,\chi$ be propositions. I read the following principle of propositional congruence:$$\models\psi\leftrightarrow\chi\quad\iff\quad\models\varphi(\psi)\leftrightarrow\varphi(\chi)$$where $\models$ means validity in every model.
If $\psi$ is equivalent to $\chi$, substituting each other in a propositional formula produce equivalent propositions, of course, therefore I understand the $\Rightarrow$ implication.
But how do wee see how $\models\varphi(\psi)\leftrightarrow\varphi(\chi)$ implies $ \models\psi\leftrightarrow\chi$? Thank you very much for any answer!
$\varphi(\psi) \leftrightarrow \varphi(\chi)$ could hold in the specific case wherein $\varphi(u)$ is false for all $u,$ and then one could not get $\models \psi \leftrightarrow \chi$ from $\models \varphi(\psi) \leftrightarrow \varphi(\chi)$ for the case of this specific choice of $\varphi.$ To make the converse work, it would have to be assumed that the right side was true for all choices of $\varphi.$ Once that is done, just choose $\varphi(x)=x$ i.e. the propositional formula that returns the given formula input to it. (Is that called the "identity propositional formula"? I don't know the right terminology.)