Metamath Proof Explorer


Theorem ifboth

Description: A wff th containing a conditional operator is true when both of its cases are true. (Contributed by NM, 3-Sep-2006) (Revised by Mario Carneiro, 15-Feb-2015)

Ref Expression
Hypotheses ifboth.1 A=ifφABψθ
ifboth.2 B=ifφABχθ
Assertion ifboth ψχθ

Proof

Step Hyp Ref Expression
1 ifboth.1 A=ifφABψθ
2 ifboth.2 B=ifφABχθ
3 simpll ψχφψ
4 simplr ψχ¬φχ
5 1 2 3 4 ifbothda ψχθ