Metamath Proof Explorer


Theorem bj-dfif

Description: Alternate definition of the conditional operator for classes, which used to be the main definition. (Contributed by BJ, 26-Dec-2023) (Proof modification is discouraged.)

Ref Expression
Assertion bj-dfif ⊢ if φ A B = x | φ ∧ x ∈ A ∨ ¬ φ ∧ x ∈ B

Proof

Step Hyp Ref Expression
1 bj-df-ifc ⊢ if φ A B = x | if- φ x ∈ A x ∈ B
2 df-ifp ⊢ if- φ x ∈ A x ∈ B ↔ φ ∧ x ∈ A ∨ ¬ φ ∧ x ∈ B
3 2 abbii ⊢ x | if- φ x ∈ A x ∈ B = x | φ ∧ x ∈ A ∨ ¬ φ ∧ x ∈ B
4 1 3 eqtri ⊢ if φ A B = x | φ ∧ x ∈ A ∨ ¬ φ ∧ x ∈ B