Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-ififc Structured version   Visualization version   GIF version

Theorem bj-ififc 37452
Description: A biconditional connecting the conditional operator for propositions and the conditional operator for classes. Note that there is no sethood hypothesis on 𝑋: it is implied by either side. (Contributed by BJ, 24-Sep-2019.) Generalize statement from setvar 𝑥 to class 𝑋. (Revised by BJ, 26-Dec-2023.)
Assertion
Ref Expression
bj-ififc (𝑋 ∈ if(𝜑, 𝐴, 𝐵) ↔ if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵))

Proof of Theorem bj-ififc
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 bj-df-ifc 37450 . . 3 if(𝜑, 𝐴, 𝐵) = {𝑥 ∣ if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵)}
21eleq2i 2853 . 2 (𝑋 ∈ if(𝜑, 𝐴, 𝐵) ↔ 𝑋 ∈ {𝑥 ∣ if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵)})
3 df-ifp 1079 . . . 4 (if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵) ↔ ((𝜑 ∧ 𝑋 ∈ 𝐴) ∨ (¬ 𝜑 ∧ 𝑋 ∈ 𝐵)))
4 elex 3472 . . . . . 6 (𝑋 ∈ 𝐴 → 𝑋 ∈ V)
54adantl 487 . . . . 5 ((𝜑 ∧ 𝑋 ∈ 𝐴) → 𝑋 ∈ V)
6 elex 3472 . . . . . 6 (𝑋 ∈ 𝐵 → 𝑋 ∈ V)
76adantl 487 . . . . 5 ((¬ 𝜑 ∧ 𝑋 ∈ 𝐵) → 𝑋 ∈ V)
85, 7jaoi 871 . . . 4 (((𝜑 ∧ 𝑋 ∈ 𝐴) ∨ (¬ 𝜑 ∧ 𝑋 ∈ 𝐵)) → 𝑋 ∈ V)
93, 8sylbi 220 . . 3 (if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵) → 𝑋 ∈ V)
10 eleq1 2849 . . . 4 (𝑥 = 𝑋 → (𝑥 ∈ 𝐴 ↔ 𝑋 ∈ 𝐴))
11 eleq1 2849 . . . 4 (𝑥 = 𝑋 → (𝑥 ∈ 𝐵 ↔ 𝑋 ∈ 𝐵))
1210, 11ifpbi23d 1096 . . 3 (𝑥 = 𝑋 → (if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵) ↔ if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵)))
139, 12elab3 3640 . 2 (𝑋 ∈ {𝑥 ∣ if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵)} ↔ if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵))
142, 13bitri 278 1 (𝑋 ∈ if(𝜑, 𝐴, 𝐵) ↔ if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ↔ wb 209   ∧ wa 401   ∨ wo 861  if-wif 1078   = wceq 1570   ∈ wcel 2145  {cab 2739  Vcvv 3451  ifcif 4482
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ifp 1079  df-tru 1573  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-v 3453  df-if 4483
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator