Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ififcom Structured version   Visualization version   GIF version

Theorem ififcom 33079
Description: Commute two nested conditionals. (Contributed by Thierry Arnoux, 4-May-2026.)
Assertion
Ref Expression
ififcom if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = if(𝜓, if(𝜑, 𝐴, 𝐵), 𝐵)

Proof of Theorem ififcom
StepHypRef Expression
1 ancom 466 . . 3 ((𝜑 ∧ 𝜓) ↔ (𝜓 ∧ 𝜑))
2 ifbi 4504 . . 3 (((𝜑 ∧ 𝜓) ↔ (𝜓 ∧ 𝜑)) → if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if((𝜓 ∧ 𝜑), 𝐴, 𝐵))
31, 2ax-mp 5 . 2 if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if((𝜓 ∧ 𝜑), 𝐴, 𝐵)
4 ifan 4535 . 2 if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵)
5 ifan 4535 . 2 if((𝜓 ∧ 𝜑), 𝐴, 𝐵) = if(𝜓, if(𝜑, 𝐴, 𝐵), 𝐵)
63, 4, 53eqtr3i 2791 1 if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = if(𝜓, if(𝜑, 𝐴, 𝐵), 𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ifcif 4481
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 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ex 1813  df-sb 2100  df-clab 2739  df-cleq 2752  df-clel 2835  df-if 4482
This theorem is used by:  mplasclco  34081
  Copyright terms: Public domain W3C validator