Metamath Proof Explorer


Theorem impimprbi

Description: An implication and its reverse are equivalent exactly when both operands are equivalent. The right hand side resembles that of dfbi2 , but <-> is a weaker operator than /\ . Note that an implication and its reverse can never be simultaneously false, because of pm2.521 . (Contributed by Wolf Lammen, 18-Dec-2023)

Ref Expression
Assertion impimprbi ( ( 𝜑𝜓 ) ↔ ( ( 𝜑𝜓 ) ↔ ( 𝜓𝜑 ) ) )

Proof

Step Hyp Ref Expression
1 dfbi2 ( ( 𝜑𝜓 ) ↔ ( ( 𝜑𝜓 ) ∧ ( 𝜓𝜑 ) ) )
2 pm5.1 ( ( ( 𝜑𝜓 ) ∧ ( 𝜓𝜑 ) ) → ( ( 𝜑𝜓 ) ↔ ( 𝜓𝜑 ) ) )
3 1 2 sylbi ( ( 𝜑𝜓 ) → ( ( 𝜑𝜓 ) ↔ ( 𝜓𝜑 ) ) )
4 impbi ( ( 𝜑𝜓 ) → ( ( 𝜓𝜑 ) → ( 𝜑𝜓 ) ) )
5 pm2.521 ( ¬ ( 𝜑𝜓 ) → ( 𝜓𝜑 ) )
6 5 pm2.24d ( ¬ ( 𝜑𝜓 ) → ( ¬ ( 𝜓𝜑 ) → ( 𝜑𝜓 ) ) )
7 4 6 bija ( ( ( 𝜑𝜓 ) ↔ ( 𝜓𝜑 ) ) → ( 𝜑𝜓 ) )
8 3 7 impbii ( ( 𝜑𝜓 ) ↔ ( ( 𝜑𝜓 ) ↔ ( 𝜓𝜑 ) ) )