| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > ifeq2 | 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 |
|---|---|
| ifeq2 | ⊢ (𝐴 = 𝐵 → if(𝜑, 𝐶, 𝐴) = if(𝜑, 𝐶, 𝐵)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | rabeq 3417 | . . 3 ⊢ (𝐴 = 𝐵 → {𝑥 ∈ 𝐴 ∣ ¬ 𝜑} = {𝑥 ∈ 𝐵 ∣ ¬ 𝜑}) | |
| 2 | 1 | uneq2d 4127 | . 2 ⊢ (𝐴 = 𝐵 → ({𝑥 ∈ 𝐶 ∣ 𝜑} ∪ {𝑥 ∈ 𝐴 ∣ ¬ 𝜑}) = ({𝑥 ∈ 𝐶 ∣ 𝜑} ∪ {𝑥 ∈ 𝐵 ∣ ¬ 𝜑})) |
| 3 | dfif6 4487 | . 2 ⊢ if(𝜑, 𝐶, 𝐴) = ({𝑥 ∈ 𝐶 ∣ 𝜑} ∪ {𝑥 ∈ 𝐴 ∣ ¬ 𝜑}) | |
| 4 | dfif6 4487 | . 2 ⊢ if(𝜑, 𝐶, 𝐵) = ({𝑥 ∈ 𝐶 ∣ 𝜑} ∪ {𝑥 ∈ 𝐵 ∣ ¬ 𝜑}) | |
| 5 | 2, 3, 4 | 3eqtr4g 2789 | 1 ⊢ (𝐴 = 𝐵 → if(𝜑, 𝐶, 𝐴) = if(𝜑, 𝐶, 𝐵)) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 = wceq 1540 {crab 3402 ∪ cun 3909 ifcif 4484 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1795 ax-4 1809 ax-5 1910 ax-6 1967 ax-7 2008 ax-8 2111 ax-9 2119 ax-ext 2701 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-tru 1543 df-ex 1780 df-sb 2066 df-clab 2708 df-cleq 2721 df-clel 2803 df-rab 3403 df-v 3446 df-un 3916 df-if 4485 |
| This theorem is referenced by: ifeq12 4503 ifeq2d 4505 ifbieq2i 4510 somincom 6095 mdetunilem9 22483 prmorcht 27064 pclogsum 27102 matunitlindflem1 37583 ftc1anclem6 37665 ftc1anclem8 37667 ftc1anc 37668 hdmap1cbv 41769 reabssgn 43598 hoidmv1le 46565 hoidmvlelem3 46568 vonn0ioo 46658 vonn0icc 46659 |
| Copyright terms: Public domain | W3C validator |