| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > ifeq1 | Structured version Visualization version GIF version | ||
| Description: Equality theorem for conditional operator. (Contributed by NM, 1-Sep-2004.) (Revised by Mario Carneiro, 8-Sep-2013.) |
| Ref | Expression |
|---|---|
| ifeq1 | ⊢ (𝐴 = 𝐵 → if(𝜑, 𝐴, 𝐶) = if(𝜑, 𝐵, 𝐶)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | rabeq 3407 | . . 3 ⊢ (𝐴 = 𝐵 → {𝑥 ∈ 𝐴 ∣ 𝜑} = {𝑥 ∈ 𝐵 ∣ 𝜑}) | |
| 2 | 1 | uneq1d 4115 | . 2 ⊢ (𝐴 = 𝐵 → ({𝑥 ∈ 𝐴 ∣ 𝜑} ∪ {𝑥 ∈ 𝐶 ∣ ¬ 𝜑}) = ({𝑥 ∈ 𝐵 ∣ 𝜑} ∪ {𝑥 ∈ 𝐶 ∣ ¬ 𝜑})) |
| 3 | dfif6 4476 | . 2 ⊢ if(𝜑, 𝐴, 𝐶) = ({𝑥 ∈ 𝐴 ∣ 𝜑} ∪ {𝑥 ∈ 𝐶 ∣ ¬ 𝜑}) | |
| 4 | dfif6 4476 | . 2 ⊢ if(𝜑, 𝐵, 𝐶) = ({𝑥 ∈ 𝐵 ∣ 𝜑} ∪ {𝑥 ∈ 𝐶 ∣ ¬ 𝜑}) | |
| 5 | 2, 3, 4 | 3eqtr4g 2790 | 1 ⊢ (𝐴 = 𝐵 → if(𝜑, 𝐴, 𝐶) = if(𝜑, 𝐵, 𝐶)) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 = wceq 1541 {crab 3393 ∪ cun 3898 ifcif 4473 |
| 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 1968 ax-7 2009 ax-8 2112 ax-9 2120 ax-ext 2702 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-tru 1544 df-ex 1781 df-sb 2067 df-clab 2709 df-cleq 2722 df-clel 2804 df-rab 3394 df-v 3436 df-un 3905 df-if 4474 |
| This theorem is referenced by: ifeq12 4492 ifeq1d 4493 ifbieq12i 4501 rdgeq2 8326 dfoi 9392 wemaplem2 9428 cantnflem1 9574 prodeq2w 15809 prodeq2ii 15810 mgm2nsgrplem2 18819 mgm2nsgrplem3 18820 mplcoe3 21966 marrepval0 22469 ellimc 25794 ply1nzb 26048 dchrvmasumiflem1 27432 signspval 34555 dfrdg2 35808 sumeq2si 36215 prodeq2si 36217 dfafv22 47269 |
| Copyright terms: Public domain | W3C validator |