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

Theorem ifclda 4523
Description: Conditional closure. (Contributed by Jeff Madsen, 2-Sep-2009.)
Hypotheses
Ref Expression
ifclda.1 ((𝜑 ∧ 𝜓) → 𝐴 ∈ 𝐶)
ifclda.2 ((𝜑 ∧ ¬ 𝜓) → 𝐵 ∈ 𝐶)
Assertion
Ref Expression
ifclda (𝜑 → if(𝜓, 𝐴, 𝐵) ∈ 𝐶)

Proof of Theorem ifclda
StepHypRef Expression
1 iftrue 4493 . . . 4 (𝜓 → if(𝜓, 𝐴, 𝐵) = 𝐴)
21adantl 487 . . 3 ((𝜑 ∧ 𝜓) → if(𝜓, 𝐴, 𝐵) = 𝐴)
3 ifclda.1 . . 3 ((𝜑 ∧ 𝜓) → 𝐴 ∈ 𝐶)
42, 3eqeltrd 2870 . 2 ((𝜑 ∧ 𝜓) → if(𝜓, 𝐴, 𝐵) ∈ 𝐶)
5 iffalse 4496 . . . 4 (¬ 𝜓 → if(𝜓, 𝐴, 𝐵) = 𝐵)
65adantl 487 . . 3 ((𝜑 ∧ ¬ 𝜓) → if(𝜓, 𝐴, 𝐵) = 𝐵)
7 ifclda.2 . . 3 ((𝜑 ∧ ¬ 𝜓) → 𝐵 ∈ 𝐶)
86, 7eqeltrd 2870 . 2 ((𝜑 ∧ ¬ 𝜓) → if(𝜓, 𝐴, 𝐵) ∈ 𝐶)
94, 8pm2.61dan 825 1 (𝜑 → if(𝜓, 𝐴, 𝐵) ∈ 𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2151  ifcif 4487
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 2153  ax-9 2161  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-if 4488
This theorem is used by:  unxpdomlem3  9298  updjudhf  10060  acndom  10180  iunfictbso  10243  dfac12lem2  10273  ttukeylem6  10642  canthp1lem2  10788  xaddf  13405  xmulf  13453  ccatcl  14773  swrdcl  14848  ccatco  15041  lo1bdd2  15748  o1lo1  15761  sadadd2lem2  16676  sadcaddlem  16683  sadadd2lem  16685  sadadd3  16687  lcmfval  16853  iserodd  17073  prmreclem2  17155  prmreclem4  17157  prmreclem6  17159  prmrec  17160  vdwlem6  17224  mreexexd  17892  smndex2hbas  19185  symgextf  19704  pmtrf  19742  odfval  19819  cyggex2  20184  dprdfid  20307  dmdprdsplitlem  20327  sdrgacs  21133  cygznlem1  21964  cygznlem2a  21965  cygznlem3  21967  cygth  21969  selvcllem5  22542  selvvvval  22545  fvmptnn04if  23267  chfacfisf  23272  chfacfisfcpmat  23273  ptpjpre2  23999  ptopn2  24003  ptpjopn  24031  iccpnfcnv  25365  xrhmeo  25367  cmetcaulem  25709  ovolunlem1a  25917  ovolunlem1  25918  ioorf  25994  mbfi1fseqlem3  26138  mbfi1flim  26144  itg2seq  26163  itg2splitlem  26169  itg2split  26170  iblss  26225  itgle  26230  itgeqa  26234  ibladdlem  26240  itgaddlem1  26243  iblabslem  26248  iblabs  26249  iblabsr  26250  iblmulc2  26251  itgmulc2lem1  26252  bddmulibl  26259  bddiblnc  26262  itggt0  26264  itgcn  26265  ellimc2  26297  limccnp  26311  limccnp2  26312  dvcobr  26366  lhop1  26434  elplyd  26628  coeeq2  26669  dvply1  26713  aalioulem3  26785  dvtaylp  26821  dvradcnv  26872  psercnlem1  26876  logcnlem2  27095  logcnlem3  27096  logcnlem4  27097  logtayllem  27111  logtayl  27112  cxpcl  27126  recxpcl  27127  leibpilem2  27409  leibpi  27410  rlimcnp2  27434  efrlim  27437  igamf  27518  igamcl  27519  pclogsum  27682  dchrelbasd  27706  lgsfcl2  27770  lgscllem  27771  lgsval2lem  27774  lgsne0  27802  2sqnn0  27905  dchrvmasumiflem2  27969  dchrisum0flblem1  27975  pntrlog2bndlem4  28047  pntrlog2bndlem5  28048  pntlemj  28070  padicabv  28097  crctcshwlkn0  30550  ccatws1f1o  33722  sgnsval  33929  elrgspnlem2  34010  elrgspnlem3  34011  elrgspnlem4  34012  gsummoncoe1fzo  34316  selvascl  34327  fldextrspunlsp  34484  extdgfialglem2  34503  xrge0iifcnv  34743  xrge0iifhom  34747  pnfneige0  34761  esumpinfval  34883  sigaclfu2  34931  ballotlemsv  35320  ballotlemsdom  35322  signswmnd  35364  signsvvf  35386  signsvfn  35389  mrsubcv  36558  mrsubff  36560  mrsubrn  36561  mrsubccat  36566  unblimceq0lem  37662  ptrecube  38882  poimirlem24  38906  itg2addnclem2  38934  itg2gt0cn  38937  ibladdnclem  38938  itgaddnclem1  38940  iblabsnclem  38945  iblabsnc  38946  iblmulc2nc  38947  itgmulc2nclem1  38948  itggt0cn  38952  ftc1anclem5  38959  ftc1anclem6  38960  ftc1anclem7  38961  ftc1anclem8  38962  ftc1anc  38963  areacirc  38975  cdleme27cl  41765  dffltz  44009  cantnfub  44717  climsuse  47026  lptioo1  47050  icccncfext  47303  cncfiooicclem1  47309  iblsplit  47382  dirkerval2  47510  dirkerre  47511  fourierdlem9  47532  fourierdlem17  47540  fourierdlem43  47566  etransclem3  47653  etransclem7  47657  etransclem10  47660  etransclem21  47671  lincext1  50059
  Copyright terms: Public domain W3C validator