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 37579
Description: A biconditional connecting the conditional operator for propositions and the conditional operator for classes. 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 37577 . . 3 if(𝜑, 𝐴, 𝐵) = {𝑥 ∣ if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵)}
21eleq2i 2855 . 2 (𝑋 ∈ if(𝜑, 𝐴, 𝐵) ↔ 𝑋 ∈ {𝑥 ∣ if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵)})
3 df-ifp 1079 . . . 4 (if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵) ↔ ((𝜑 ∧ 𝑋 ∈ 𝐴) ∨ (¬ 𝜑 ∧ 𝑋 ∈ 𝐵)))
4 elex 3474 . . . . . 6 (𝑋 ∈ 𝐴 → 𝑋 ∈ V)
54adantl 487 . . . . 5 ((𝜑 ∧ 𝑋 ∈ 𝐴) → 𝑋 ∈ V)
6 elex 3474 . . . . . 6 (𝑋 ∈ 𝐵 → 𝑋 ∈ V)
76adantl 487 . . . . 5 ((¬ 𝜑 ∧ 𝑋 ∈ 𝐵) → 𝑋 ∈ V)
85, 7jaoi 871 . . . 4 (((𝜑 ∧ 𝑋 ∈ 𝐴) ∨ (¬ 𝜑 ∧ 𝑋 ∈ 𝐵)) → 𝑋 ∈ V)
93, 8sylbi 220 . . 3 (if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵) → 𝑋 ∈ V)
10 eleq1 2851 . . . 4 (𝑥 = 𝑋 → (𝑥 ∈ 𝐴 ↔ 𝑋 ∈ 𝐴))
11 eleq1 2851 . . . 4 (𝑥 = 𝑋 → (𝑥 ∈ 𝐵 ↔ 𝑋 ∈ 𝐵))
1210, 11ifpbi23d 1096 . . 3 (𝑥 = 𝑋 → (if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵) ↔ if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵)))
139, 12elab3 3642 . 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 1569   ∈ wcel 2146  {cab 2741  Vcvv 3453  ifcif 4484
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ifp 1079  df-tru 1572  df-ex 1812  df-sb 2101  df-clab 2742  df-cleq 2755  df-clel 2838  df-v 3455  df-if 4485
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator