| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > ifval | Structured version Visualization version GIF version | ||
| Description: Another expression of the value of the if predicate, analogous to eqif 4521. See also the more specialized iftrue 4485 and iffalse 4488. (Contributed by BJ, 6-Apr-2019.) |
| Ref | Expression |
|---|---|
| ifval | ⊢ (𝐴 = if(𝜑, 𝐵, 𝐶) ↔ ((𝜑 → 𝐴 = 𝐵) ∧ (¬ 𝜑 → 𝐴 = 𝐶))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | eqif 4521 | . 2 ⊢ (𝐴 = if(𝜑, 𝐵, 𝐶) ↔ ((𝜑 ∧ 𝐴 = 𝐵) ∨ (¬ 𝜑 ∧ 𝐴 = 𝐶))) | |
| 2 | cases2 1058 | . 2 ⊢ (((𝜑 ∧ 𝐴 = 𝐵) ∨ (¬ 𝜑 ∧ 𝐴 = 𝐶)) ↔ ((𝜑 → 𝐴 = 𝐵) ∧ (¬ 𝜑 → 𝐴 = 𝐶))) | |
| 3 | 1, 2 | bitri 277 | 1 ⊢ (𝐴 = if(𝜑, 𝐵, 𝐶) ↔ ((𝜑 → 𝐴 = 𝐵) ∧ (¬ 𝜑 → 𝐴 = 𝐶))) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 ↔ wb 208 ∧ wa 399 ∨ wo 858 = wceq 1559 ifcif 4479 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1814 ax-4 1828 ax-5 1929 ax-6 1986 ax-7 2027 ax-8 2143 ax-9 2151 ax-ext 2733 |
| This theorem depends on definitions: df-bi 209 df-an 400 df-or 859 df-ex 1799 df-sb 2090 df-clab 2740 df-cleq 2753 df-clel 2836 df-if 4480 |
| This theorem is referenced by: dfiota4 6509 bj-projval 37445 dfaiota3 47650 |
| Copyright terms: Public domain | W3C validator |