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

Theorem nfifd 4485
Description: Deduction form of nfif 4486. (Contributed by NM, 15-Feb-2013.) (Revised by Mario Carneiro, 13-Oct-2016.)
Hypotheses
Ref Expression
nfifd.2 (𝜑 → Ⅎ𝑥𝜓)
nfifd.3 (𝜑𝑥𝐴)
nfifd.4 (𝜑𝑥𝐵)
Assertion
Ref Expression
nfifd (𝜑𝑥if(𝜓, 𝐴, 𝐵))

Proof of Theorem nfifd
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 dfif2 4458 . 2 if(𝜓, 𝐴, 𝐵) = {𝑦 ∣ ((𝑦𝐵𝜓) → (𝑦𝐴𝜓))}
2 nfv 1918 . . 3 𝑦𝜑
3 nfifd.4 . . . . . 6 (𝜑𝑥𝐵)
43nfcrd 2895 . . . . 5 (𝜑 → Ⅎ𝑥 𝑦𝐵)
5 nfifd.2 . . . . 5 (𝜑 → Ⅎ𝑥𝜓)
64, 5nfimd 1898 . . . 4 (𝜑 → Ⅎ𝑥(𝑦𝐵𝜓))
7 nfifd.3 . . . . . 6 (𝜑𝑥𝐴)
87nfcrd 2895 . . . . 5 (𝜑 → Ⅎ𝑥 𝑦𝐴)
98, 5nfand 1901 . . . 4 (𝜑 → Ⅎ𝑥(𝑦𝐴𝜓))
106, 9nfimd 1898 . . 3 (𝜑 → Ⅎ𝑥((𝑦𝐵𝜓) → (𝑦𝐴𝜓)))
112, 10nfabdw 2929 . 2 (𝜑𝑥{𝑦 ∣ ((𝑦𝐵𝜓) → (𝑦𝐴𝜓))})
121, 11nfcxfrd 2905 1 (𝜑𝑥if(𝜓, 𝐴, 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  wnf 1787  wcel 2108  {cab 2715  wnfc 2886  ifcif 4456
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-if 4457
This theorem is referenced by:  nfif  4486  nfxnegd  42871
  Copyright terms: Public domain W3C validator