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

Theorem dfiota4 6535
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 6520 . 2 (∃!𝑥𝜑 → (℩𝑥𝜑) = {𝑥𝜑})
2 iotanul 6523 . 2 (¬ ∃!𝑥𝜑 → (℩𝑥𝜑) = ∅)
3 ifval 4535 . 2 ((℩𝑥𝜑) = if(∃!𝑥𝜑, {𝑥𝜑}, ∅) ↔ ((∃!𝑥𝜑 → (℩𝑥𝜑) = {𝑥𝜑}) ∧ (¬ ∃!𝑥𝜑 → (℩𝑥𝜑) = ∅)))
41, 2, 3mpbir2an 724 1 (℩𝑥𝜑) = if(∃!𝑥𝜑, {𝑥𝜑}, ∅)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3  wi 4   = wceq 1570  ∃!weu 2599  {cab 2744  c0 4289  ifcif 4492   cuni 4877  cio 6497
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 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2738
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2841  df-v 3460  df-dif 3911  df-un 3913  df-ss 3925  df-nul 4290  df-if 4493  df-sn 4595  df-pr 4597  df-uni 4878  df-iota 6499
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator