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

Theorem dfiota4 5992
Description: The operation using the if operator. (Contributed by Scott Fenton, 6-Oct-2017.) (Proof shortened by JJ, 28-Oct-2021.)
Assertion
Ref Expression
dfiota4 (℩𝑥𝜑) = if(∃!𝑥𝜑, {𝑥𝜑}, ∅)

Proof of Theorem dfiota4
StepHypRef Expression
1 iotauni 5976 . 2 (∃!𝑥𝜑 → (℩𝑥𝜑) = {𝑥𝜑})
2 iotanul 5979 . 2 (¬ ∃!𝑥𝜑 → (℩𝑥𝜑) = ∅)
3 ifval 4235 . 2 ((℩𝑥𝜑) = if(∃!𝑥𝜑, {𝑥𝜑}, ∅) ↔ ((∃!𝑥𝜑 → (℩𝑥𝜑) = {𝑥𝜑}) ∧ (¬ ∃!𝑥𝜑 → (℩𝑥𝜑) = ∅)))
41, 2, 3mpbir2an 993 1 (℩𝑥𝜑) = if(∃!𝑥𝜑, {𝑥𝜑}, ∅)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4   = wceq 1596  ∃!weu 2571  {cab 2710  c0 4023  ifcif 4194   cuni 4544  cio 5962
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1835  ax-4 1850  ax-5 1952  ax-6 2018  ax-7 2054  ax-9 2112  ax-10 2132  ax-11 2147  ax-12 2160  ax-13 2355  ax-ext 2704
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-tru 1599  df-ex 1818  df-nf 1823  df-sb 2011  df-eu 2575  df-clab 2711  df-cleq 2717  df-clel 2720  df-nfc 2855  df-ral 3019  df-rex 3020  df-v 3306  df-sbc 3542  df-dif 3683  df-un 3685  df-in 3687  df-ss 3694  df-nul 4024  df-if 4195  df-sn 4286  df-pr 4288  df-uni 4545  df-iota 5964
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator