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 37775
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.) Also provable as bitr4i 281 (elif 4536, df-ifp 1080) , but it is here proved as a consequence of the candidate definition bj-df-ifc 37773, so that elif 4536 is then proved from it. (Proof modification is discouraged.)
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 37773 . . 3 if(𝜑, 𝐴, 𝐵) = {𝑥 ∣ if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵)}
21eleq2i 2867 . 2 (𝑋 ∈ if(𝜑, 𝐴, 𝐵) ↔ 𝑋 ∈ {𝑥 ∣ if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵)})
3 df-ifp 1080 . . . 4 (if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵) ↔ ((𝜑 ∧ 𝑋 ∈ 𝐴) ∨ (¬ 𝜑 ∧ 𝑋 ∈ 𝐵)))
4 elex 3482 . . . . . 6 (𝑋 ∈ 𝐴 → 𝑋 ∈ V)
54adantl 487 . . . . 5 ((𝜑 ∧ 𝑋 ∈ 𝐴) → 𝑋 ∈ V)
6 elex 3482 . . . . . 6 (𝑋 ∈ 𝐵 → 𝑋 ∈ V)
76adantl 487 . . . . 5 ((¬ 𝜑 ∧ 𝑋 ∈ 𝐵) → 𝑋 ∈ V)
85, 7jaoi 871 . . . 4 (((𝜑 ∧ 𝑋 ∈ 𝐴) ∨ (¬ 𝜑 ∧ 𝑋 ∈ 𝐵)) → 𝑋 ∈ V)
93, 8sylbi 220 . . 3 (if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵) → 𝑋 ∈ V)
10 eleq1 2863 . . . 4 (𝑥 = 𝑋 → (𝑥 ∈ 𝐴 ↔ 𝑋 ∈ 𝐴))
11 eleq1 2863 . . . 4 (𝑥 = 𝑋 → (𝑥 ∈ 𝐵 ↔ 𝑋 ∈ 𝐵))
1210, 11ifpbi23d 1097 . . 3 (𝑥 = 𝑋 → (if-(𝜑, 𝑥 ∈ 𝐴, 𝑥 ∈ 𝐵) ↔ if-(𝜑, 𝑋 ∈ 𝐴, 𝑋 ∈ 𝐵)))
139, 12elab3 3650 . 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 1079   = wceq 1572   ∈ wcel 2156  {cab 2752  Vcvv 3461  ifcif 4492
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ifp 1080  df-tru 1575  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-v 3463  df-if 4493
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator