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

Theorem nfifd 4497
Description: Deduction form of nfif 4498. (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 4471 . 2 if(𝜓, 𝐴, 𝐵) = {𝑦 ∣ ((𝑦𝐵𝜓) → (𝑦𝐴𝜓))}
2 nfv 1915 . . 3 𝑦𝜑
3 nfifd.4 . . . . . 6 (𝜑𝑥𝐵)
43nfcrd 2971 . . . . 5 (𝜑 → Ⅎ𝑥 𝑦𝐵)
5 nfifd.2 . . . . 5 (𝜑 → Ⅎ𝑥𝜓)
64, 5nfimd 1895 . . . 4 (𝜑 → Ⅎ𝑥(𝑦𝐵𝜓))
7 nfifd.3 . . . . . 6 (𝜑𝑥𝐴)
87nfcrd 2971 . . . . 5 (𝜑 → Ⅎ𝑥 𝑦𝐴)
98, 5nfand 1898 . . . 4 (𝜑 → Ⅎ𝑥(𝑦𝐴𝜓))
106, 9nfimd 1895 . . 3 (𝜑 → Ⅎ𝑥((𝑦𝐵𝜓) → (𝑦𝐴𝜓)))
112, 10nfabdw 3002 . 2 (𝜑𝑥{𝑦 ∣ ((𝑦𝐵𝜓) → (𝑦𝐴𝜓))})
121, 11nfcxfrd 2978 1 (𝜑𝑥if(𝜓, 𝐴, 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  wnf 1784  wcel 2114  {cab 2801  wnfc 2963  ifcif 4469
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-if 4470
This theorem is referenced by:  nfif  4498  nfxnegd  41722
  Copyright terms: Public domain W3C validator