Metamath Proof Explorer


Theorem riota2

Description: This theorem shows a condition that allows us to represent a descriptor with a class expression B . (Contributed by NM, 23-Aug-2011) (Revised by Mario Carneiro, 10-Dec-2016)

Ref Expression
Hypothesis riota2.1 ( 𝑥 = 𝐵 → ( 𝜑𝜓 ) )
Assertion riota2 ( ( 𝐵𝐴 ∧ ∃! 𝑥𝐴 𝜑 ) → ( 𝜓 ↔ ( 𝑥𝐴 𝜑 ) = 𝐵 ) )

Proof

Step Hyp Ref Expression
1 riota2.1 ( 𝑥 = 𝐵 → ( 𝜑𝜓 ) )
2 nfcv 𝑥 𝐵
3 nfv 𝑥 𝜓
4 2 3 1 riota2f ( ( 𝐵𝐴 ∧ ∃! 𝑥𝐴 𝜑 ) → ( 𝜓 ↔ ( 𝑥𝐴 𝜑 ) = 𝐵 ) )