| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > xor | Structured version Visualization version GIF version | ||
| Description: Two ways to express exclusive disjunction (df-xor 1519). Theorem *5.22 of [WhiteheadRussell] p. 124. (Contributed by NM, 3-Jan-2005.) (Proof shortened by Wolf Lammen, 22-Jan-2013.) |
| Ref | Expression |
|---|---|
| xor | ⊢ (¬ (𝜑 ↔ 𝜓) ↔ ((𝜑 ∧ ¬ 𝜓) ∨ (𝜓 ∧ ¬ 𝜑))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | iman 402 | . . . 4 ⊢ ((𝜑 → 𝜓) ↔ ¬ (𝜑 ∧ ¬ 𝜓)) | |
| 2 | iman 402 | . . . 4 ⊢ ((𝜓 → 𝜑) ↔ ¬ (𝜓 ∧ ¬ 𝜑)) | |
| 3 | 1, 2 | anbi12i 634 | . . 3 ⊢ (((𝜑 → 𝜓) ∧ (𝜓 → 𝜑)) ↔ (¬ (𝜑 ∧ ¬ 𝜓) ∧ ¬ (𝜓 ∧ ¬ 𝜑))) |
| 4 | dfbi2 475 | . . 3 ⊢ ((𝜑 ↔ 𝜓) ↔ ((𝜑 → 𝜓) ∧ (𝜓 → 𝜑))) | |
| 5 | ioran 991 | . . 3 ⊢ (¬ ((𝜑 ∧ ¬ 𝜓) ∨ (𝜓 ∧ ¬ 𝜑)) ↔ (¬ (𝜑 ∧ ¬ 𝜓) ∧ ¬ (𝜓 ∧ ¬ 𝜑))) | |
| 6 | 3, 4, 5 | 3bitr4ri 305 | . 2 ⊢ (¬ ((𝜑 ∧ ¬ 𝜓) ∨ (𝜓 ∧ ¬ 𝜑)) ↔ (𝜑 ↔ 𝜓)) |
| 7 | 6 | con1bii 357 | 1 ⊢ (¬ (𝜑 ↔ 𝜓) ↔ ((𝜑 ∧ ¬ 𝜓) ∨ (𝜓 ∧ ¬ 𝜑))) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 ↔ wb 207 ∧ wa 396 ∨ wo 853 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 |
| This theorem depends on definitions: df-bi 208 df-an 397 df-or 854 |
| This theorem is referenced by: pm5.24 1056 excxor 1523 elsymdif 4193 rpnnen2lem12 16190 ist0-3 23335 eliuniincex 45563 eliincex 45564 abnotataxb 47386 ldepslinc 49007 |
| Copyright terms: Public domain | W3C validator |