Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > dfif2 | Structured version Visualization version GIF version |
Description: An alternate definition of the conditional operator df-if 4464 with one fewer connectives (but probably less intuitive to understand). (Contributed by NM, 30-Jan-2006.) |
Ref | Expression |
---|---|
dfif2 | ⊢ if(𝜑, 𝐴, 𝐵) = {𝑥 ∣ ((𝑥 ∈ 𝐵 → 𝜑) → (𝑥 ∈ 𝐴 ∧ 𝜑))} |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | df-if 4464 | . 2 ⊢ if(𝜑, 𝐴, 𝐵) = {𝑥 ∣ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∨ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑))} | |
2 | df-or 842 | . . . 4 ⊢ (((𝑥 ∈ 𝐵 ∧ ¬ 𝜑) ∨ (𝑥 ∈ 𝐴 ∧ 𝜑)) ↔ (¬ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑) → (𝑥 ∈ 𝐴 ∧ 𝜑))) | |
3 | orcom 864 | . . . 4 ⊢ (((𝑥 ∈ 𝐴 ∧ 𝜑) ∨ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑)) ↔ ((𝑥 ∈ 𝐵 ∧ ¬ 𝜑) ∨ (𝑥 ∈ 𝐴 ∧ 𝜑))) | |
4 | iman 402 | . . . . 5 ⊢ ((𝑥 ∈ 𝐵 → 𝜑) ↔ ¬ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑)) | |
5 | 4 | imbi1i 351 | . . . 4 ⊢ (((𝑥 ∈ 𝐵 → 𝜑) → (𝑥 ∈ 𝐴 ∧ 𝜑)) ↔ (¬ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑) → (𝑥 ∈ 𝐴 ∧ 𝜑))) |
6 | 2, 3, 5 | 3bitr4i 304 | . . 3 ⊢ (((𝑥 ∈ 𝐴 ∧ 𝜑) ∨ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑)) ↔ ((𝑥 ∈ 𝐵 → 𝜑) → (𝑥 ∈ 𝐴 ∧ 𝜑))) |
7 | 6 | abbii 2883 | . 2 ⊢ {𝑥 ∣ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∨ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑))} = {𝑥 ∣ ((𝑥 ∈ 𝐵 → 𝜑) → (𝑥 ∈ 𝐴 ∧ 𝜑))} |
8 | 1, 7 | eqtri 2841 | 1 ⊢ if(𝜑, 𝐴, 𝐵) = {𝑥 ∣ ((𝑥 ∈ 𝐵 → 𝜑) → (𝑥 ∈ 𝐴 ∧ 𝜑))} |
Colors of variables: wff setvar class |
Syntax hints: ¬ wn 3 → wi 4 ∧ wa 396 ∨ wo 841 = wceq 1528 ∈ wcel 2105 {cab 2796 ifcif 4463 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1787 ax-4 1801 ax-5 1902 ax-6 1961 ax-7 2006 ax-9 2115 ax-ext 2790 |
This theorem depends on definitions: df-bi 208 df-an 397 df-or 842 df-ex 1772 df-sb 2061 df-clab 2797 df-cleq 2811 df-if 4464 |
This theorem is referenced by: iftrue 4469 nfifd 4491 |
Copyright terms: Public domain | W3C validator |