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

Theorem ifnefalse 4496
Description: When values are unequal, but an "if" condition checks if they are equal, then the "false" branch results. This is a simple utility to provide a slight shortening and simplification of proofs versus applying iffalse 4493 directly in this case. It happens, e.g., in oevn0 8561. (Contributed by David A. Wheeler, 15-May-2015.)
Assertion
Ref Expression
ifnefalse (𝐴 ≠ 𝐵 → if(𝐴 = 𝐵, 𝐶, 𝐷) = 𝐷)

Proof of Theorem ifnefalse
StepHypRef Expression
1 df-ne 2963 . 2 (𝐴 ≠ 𝐵 ↔ ¬ 𝐴 = 𝐵)
2 iffalse 4493 . 2 (¬ 𝐴 = 𝐵 → if(𝐴 = 𝐵, 𝐶, 𝐷) = 𝐷)
31, 2sylbi 220 1 (𝐴 ≠ 𝐵 → if(𝐴 = 𝐵, 𝐶, 𝐷) = 𝐷)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   = wceq 1572   ≠ wne 2962  ifcif 4484
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-ext 2738
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ex 1815  df-sb 2104  df-clab 2745  df-cleq 2758  df-clel 2842  df-ne 2963  df-if 4485
This theorem is used by:  xpima2  6194  axcc2lem  10553  xnegmnf  13380  rexneg  13381  xaddpnf1  13396  xaddpnf2  13397  xaddmnf1  13398  xaddmnf2  13399  mnfaddpnf  13401  rexadd  13402  fztpval  13760  sadcp1  16668  smupp1  16693  pcval  17069  ramtcl  17235  ramub1lem1  17251  xpsfrnel  17787  gexlem2  19850  frgpuptinv  20039  frgpup3lem  20045  gsummpt1n0  20233  dprdfid  20287  dpjrid  20332  sdrgacs  21112  abvtrivd  21143  znf1o  21915  znhash  21922  znunithash  21928  mplsubrg  22370  psdmul  22545  mamulid  22814  mamurid  22815  dmatid  22868  dmatmulcl  22873  scmatdmat  22888  mdetdiagid  22973  chpdmatlem2  23215  chpscmat  23218  chpidmat  23223  xkoccn  23996  iccpnfhmeo  25324  xrhmeo  25325  ioorinv2  25954  mbfi1fseqlem4  26097  ellimc2  26255  dvcobr  26324  ply1remlem  26541  dvtaylp  26757  0cxp  27054  lgsval3  27702  lgsdinn0  27732  dchrisumlem1  27876  dchrvmasumiflem1  27888  rpvmasum2  27899  dchrvmasumlem  27910  padicabv  28017  indispconn  36208  ex-sategoelel  36395  fnejoin1  37372  ptrecube  38808  poimirlem16  38824  poimirlem17  38825  poimirlem19  38827  poimirlem20  38828  fdc  38947  cdlemk40f  42244  fiabv  43865  blenn0  50106
  Copyright terms: Public domain W3C validator