| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > ifeqda | Structured version Visualization version GIF version | ||
| Description: Separation of the values of the conditional operator. (Contributed by Alexander van der Vekens, 13-Apr-2018.) |
| Ref | Expression |
|---|---|
| ifeqda.1 | ⊢ ((𝜑 ∧ 𝜓) → 𝐴 = 𝐶) |
| ifeqda.2 | ⊢ ((𝜑 ∧ ¬ 𝜓) → 𝐵 = 𝐶) |
| Ref | Expression |
|---|---|
| ifeqda | ⊢ (𝜑 → if(𝜓, 𝐴, 𝐵) = 𝐶) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | iftrue 4498 | . . . 4 ⊢ (𝜓 → if(𝜓, 𝐴, 𝐵) = 𝐴) | |
| 2 | 1 | adantl 487 | . . 3 ⊢ ((𝜑 ∧ 𝜓) → if(𝜓, 𝐴, 𝐵) = 𝐴) |
| 3 | ifeqda.1 | . . 3 ⊢ ((𝜑 ∧ 𝜓) → 𝐴 = 𝐶) | |
| 4 | 2, 3 | eqtrd 2809 | . 2 ⊢ ((𝜑 ∧ 𝜓) → if(𝜓, 𝐴, 𝐵) = 𝐶) |
| 5 | iffalse 4501 | . . . 4 ⊢ (¬ 𝜓 → if(𝜓, 𝐴, 𝐵) = 𝐵) | |
| 6 | 5 | adantl 487 | . . 3 ⊢ ((𝜑 ∧ ¬ 𝜓) → if(𝜓, 𝐴, 𝐵) = 𝐵) |
| 7 | ifeqda.2 | . . 3 ⊢ ((𝜑 ∧ ¬ 𝜓) → 𝐵 = 𝐶) | |
| 8 | 6, 7 | eqtrd 2809 | . 2 ⊢ ((𝜑 ∧ ¬ 𝜓) → if(𝜓, 𝐴, 𝐵) = 𝐶) |
| 9 | 4, 8 | pm2.61dan 825 | 1 ⊢ (𝜑 → if(𝜓, 𝐴, 𝐵) = 𝐶) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: ¬ wn 3 → wi 4 ∧ wa 401 = wceq 1572 ifcif 4492 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1834 ax-4 1848 ax-5 1951 ax-6 2009 ax-7 2050 ax-8 2158 ax-9 2166 ax-ext 2746 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-ex 1819 df-sb 2110 df-clab 2753 df-cleq 2766 df-clel 2850 df-if 4493 |
| This theorem is used by: somincom 6155 cantnfp1 9735 ccatsymb 14787 swrdccat3blem 14948 repswccat 14997 ccatco 15046 bitsinvp1 16680 xrsdsreval 21812 matunitlindflem1 23099 fvmptnn04if 23272 chfacfscmulgsum 23283 chfacfpmmulgsum 23287 oprpiece1res2 25378 phtpycc 25417 plymulidp 26716 atantayl2 27411 ifeq3da 33361 fprodex01 33629 psgnfzto1stlem 33873 fzto1st1 33875 cycpm2tr 33892 elrgspnlem4 34017 elrspunsn 34183 esplyfval1 34388 esplyind 34390 fldextrspunlsp 34489 mdetlap1 34641 madjusmdetlem1 34642 madjusmdetlem2 34643 ccatmulgnn0dir 35357 itgexpif 35418 repr0 35423 elmrsubrn 36573 sticksstones12 43557 redvmptabs 43757 readvrec 43759 frlmvscadiccat 43919 fsuppind 43964 fsuppssindlem1 43965 reabsifneg 45033 reabsifnpos 45034 reabsifpos 45035 reabsifnneg 45036 reabssgn 45037 sqrtcval 45042 mnringmulrcld 45627 fourierdlem101 47630 hoidmv1lelem2 48015 dfafv2 48613 m1modmmod 48845 indprm 49125 indprmfz 49126 linc0scn0 50033 digexp 50217 |
| Copyright terms: Public domain | W3C validator |