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

Theorem ifbothda 4462
Description: A wff 𝜃 containing a conditional operator is true when both of its cases are true. (Contributed by NM, 15-Feb-2015.)
Hypotheses
Ref Expression
ifboth.1 (𝐴 = if(𝜑, 𝐴, 𝐵) → (𝜓𝜃))
ifboth.2 (𝐵 = if(𝜑, 𝐴, 𝐵) → (𝜒𝜃))
ifbothda.3 ((𝜂𝜑) → 𝜓)
ifbothda.4 ((𝜂 ∧ ¬ 𝜑) → 𝜒)
Assertion
Ref Expression
ifbothda (𝜂𝜃)

Proof of Theorem ifbothda
StepHypRef Expression
1 ifbothda.3 . . 3 ((𝜂𝜑) → 𝜓)
2 iftrue 4431 . . . . . 6 (𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐴)
32eqcomd 2804 . . . . 5 (𝜑𝐴 = if(𝜑, 𝐴, 𝐵))
4 ifboth.1 . . . . 5 (𝐴 = if(𝜑, 𝐴, 𝐵) → (𝜓𝜃))
53, 4syl 17 . . . 4 (𝜑 → (𝜓𝜃))
65adantl 485 . . 3 ((𝜂𝜑) → (𝜓𝜃))
71, 6mpbid 235 . 2 ((𝜂𝜑) → 𝜃)
8 ifbothda.4 . . 3 ((𝜂 ∧ ¬ 𝜑) → 𝜒)
9 iffalse 4434 . . . . . 6 𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐵)
109eqcomd 2804 . . . . 5 𝜑𝐵 = if(𝜑, 𝐴, 𝐵))
11 ifboth.2 . . . . 5 (𝐵 = if(𝜑, 𝐴, 𝐵) → (𝜒𝜃))
1210, 11syl 17 . . . 4 𝜑 → (𝜒𝜃))
1312adantl 485 . . 3 ((𝜂 ∧ ¬ 𝜑) → (𝜒𝜃))
148, 13mpbid 235 . 2 ((𝜂 ∧ ¬ 𝜑) → 𝜃)
157, 14pm2.61dan 812 1 (𝜂𝜃)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1538  ifcif 4425
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-ex 1782  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-if 4426
This theorem is referenced by:  ifboth  4463  resixpfo  8483  boxriin  8487  boxcutc  8488  suppr  8919  infpr  8951  cantnflem1  9136  ttukeylem5  9924  ttukeylem6  9925  bitsinv1lem  15780  bitsinv1  15781  smumullem  15831  hashgcdeq  16116  ramcl2lem  16335  acsfn  16922  tsrlemax  17822  odlem1  18655  gexlem1  18696  cyggex2  19010  dprdfeq0  19137  xrsdsreclb  20138  mplmon2  20732  evlslem1  20754  coe1tmmul2  20905  coe1tmmul  20906  ptcld  22218  xkopt  22260  stdbdxmet  23122  xrsxmet  23414  iccpnfcnv  23549  iccpnfhmeo  23550  xrhmeo  23551  dvcobr  24549  mdegle0  24678  dvradcnv  25016  psercnlem1  25020  psercn  25021  logtayl  25251  efrlim  25555  lgamgulmlem5  25618  musum  25776  dchrmulid2  25836  dchrsum2  25852  sumdchr2  25854  dchrisum0flblem1  26092  dchrisum0flblem2  26093  rplogsum  26111  pntlemj  26187  eupth2lem1  28003  eulerpathpr  28025  ifeqeqx  30309  xrge0iifcnv  31286  xrge0iifhom  31290  esumpinfval  31442  dstfrvunirn  31842  sgn3da  31909  plymulx0  31927  signswn0  31940  signswch  31941  lpadmax  32063  lpadright  32065  fnejoin2  33830  poimirlem16  35073  poimirlem17  35074  poimirlem19  35076  poimirlem20  35077  poimirlem24  35081  cnambfre  35105  itg2addnclem  35108  itg2addnclem3  35110  itg2addnc  35111  itg2gt0cn  35112  ftc1anclem7  35136  ftc1anclem8  35137  ftc1anc  35138  metakunt1  39350  metakunt2  39351  metakunt25  39374  kelac1  40007
  Copyright terms: Public domain W3C validator