| Mathbox for Thierry Arnoux |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > Mathboxes > ififcom | Structured version Visualization version GIF version | ||
| Description: Commute two nested conditionals. (Contributed by Thierry Arnoux, 4-May-2026.) |
| Ref | Expression |
|---|---|
| ififcom | ⊢ if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = if(𝜓, if(𝜑, 𝐴, 𝐵), 𝐵) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | ancom 466 | . . 3 ⊢ ((𝜑 ∧ 𝜓) ↔ (𝜓 ∧ 𝜑)) | |
| 2 | ifbi 4508 | . . 3 ⊢ (((𝜑 ∧ 𝜓) ↔ (𝜓 ∧ 𝜑)) → if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if((𝜓 ∧ 𝜑), 𝐴, 𝐵)) | |
| 3 | 1, 2 | ax-mp 5 | . 2 ⊢ if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if((𝜓 ∧ 𝜑), 𝐴, 𝐵) |
| 4 | ifan 4539 | . 2 ⊢ if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) | |
| 5 | ifan 4539 | . 2 ⊢ if((𝜓 ∧ 𝜑), 𝐴, 𝐵) = if(𝜓, if(𝜑, 𝐴, 𝐵), 𝐵) | |
| 6 | 3, 4, 5 | 3eqtr3i 2793 | 1 ⊢ if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = if(𝜓, if(𝜑, 𝐴, 𝐵), 𝐵) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: ↔ wb 209 ∧ wa 401 = wceq 1570 ifcif 4485 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1943 ax-6 2000 ax-7 2041 ax-8 2147 ax-9 2155 ax-ext 2734 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-ex 1813 df-sb 2100 df-clab 2741 df-cleq 2754 df-clel 2837 df-if 4486 |
| This theorem is used by: mplasclco 34013 |
| Copyright terms: Public domain | W3C validator |