Metamath Proof Explorer


Theorem bj-df-ifc

Description: Candidate definition for the conditional operator for classes. This is in line with the definition of a class as the extension of a predicate in df-clab . We reprove the current df-if from it in bj-dfif . (Contributed by BJ, 20-Sep-2019) (Proof modification is discouraged.)

Ref Expression
Assertion bj-df-ifc if φ A B = x | if- φ x A x B

Proof

Step Hyp Ref Expression
1 df-if if φ A B = x | x A φ x B ¬ φ
2 ancom x A φ φ x A
3 ancom x B ¬ φ ¬ φ x B
4 2 3 orbi12i x A φ x B ¬ φ φ x A ¬ φ x B
5 df-ifp if- φ x A x B φ x A ¬ φ x B
6 4 5 bitr4i x A φ x B ¬ φ if- φ x A x B
7 6 abbii x | x A φ x B ¬ φ = x | if- φ x A x B
8 1 7 eqtri if φ A B = x | if- φ x A x B