MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  dfopif Structured version   Visualization version   GIF version

Theorem dfopif 4827
Description: Rewrite df-op 4593 using if. When both arguments are sets, it reduces to the standard Kuratowski definition; otherwise, it is defined to be the empty set. Avoid directly depending on this detail so that theorems will not depend on the Kuratowski construction. (Contributed by Mario Carneiro, 26-Apr-2015.) (Avoid depending on this detail.)
Assertion
Ref Expression
dfopif 𝐴, 𝐵⟩ = if((𝐴 ∈ V ∧ 𝐵 ∈ V), {{𝐴}, {𝐴, 𝐵}}, ∅)

Proof of Theorem dfopif
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 df-op 4593 . 2 𝐴, 𝐵⟩ = {𝑥 ∣ (𝐴 ∈ V ∧ 𝐵 ∈ V ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})}
2 df-3an 1089 . . 3 ((𝐴 ∈ V ∧ 𝐵 ∈ V ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}}) ↔ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}}))
32abbii 2806 . 2 {𝑥 ∣ (𝐴 ∈ V ∧ 𝐵 ∈ V ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})} = {𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})}
4 iftrue 4492 . . . 4 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → if((𝐴 ∈ V ∧ 𝐵 ∈ V), {{𝐴}, {𝐴, 𝐵}}, ∅) = {{𝐴}, {𝐴, 𝐵}})
5 ibar 529 . . . . 5 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → (𝑥 ∈ {{𝐴}, {𝐴, 𝐵}} ↔ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})))
65abbi2dv 2871 . . . 4 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → {{𝐴}, {𝐴, 𝐵}} = {𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})})
74, 6eqtr2d 2777 . . 3 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → {𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})} = if((𝐴 ∈ V ∧ 𝐵 ∈ V), {{𝐴}, {𝐴, 𝐵}}, ∅))
8 pm2.21 123 . . . . . . 7 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ((𝐴 ∈ V ∧ 𝐵 ∈ V) → 𝑥 ∈ ∅))
98adantrd 492 . . . . . 6 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → (((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}}) → 𝑥 ∈ ∅))
109abssdv 4025 . . . . 5 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → {𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})} ⊆ ∅)
11 ss0 4358 . . . . 5 ({𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})} ⊆ ∅ → {𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})} = ∅)
1210, 11syl 17 . . . 4 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → {𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})} = ∅)
13 iffalse 4495 . . . 4 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → if((𝐴 ∈ V ∧ 𝐵 ∈ V), {{𝐴}, {𝐴, 𝐵}}, ∅) = ∅)
1412, 13eqtr4d 2779 . . 3 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → {𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})} = if((𝐴 ∈ V ∧ 𝐵 ∈ V), {{𝐴}, {𝐴, 𝐵}}, ∅))
157, 14pm2.61i 182 . 2 {𝑥 ∣ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ 𝑥 ∈ {{𝐴}, {𝐴, 𝐵}})} = if((𝐴 ∈ V ∧ 𝐵 ∈ V), {{𝐴}, {𝐴, 𝐵}}, ∅)
161, 3, 153eqtri 2768 1 𝐴, 𝐵⟩ = if((𝐴 ∈ V ∧ 𝐵 ∈ V), {{𝐴}, {𝐴, 𝐵}}, ∅)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 396  w3a 1087   = wceq 1541  wcel 2106  {cab 2713  Vcvv 3445  wss 3910  c0 4282  ifcif 4486  {csn 4586  {cpr 4588  cop 4592
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2707
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-sb 2068  df-clab 2714  df-cleq 2728  df-clel 2814  df-v 3447  df-dif 3913  df-in 3917  df-ss 3927  df-nul 4283  df-if 4487  df-op 4593
This theorem is referenced by:  dfopg  4828  opeq1  4830  opeq2  4831  nfop  4846  csbopg  4848  opprc  4853  opex  5421
  Copyright terms: Public domain W3C validator