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 32687
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 463 . . 3 ((𝜑𝜓) ↔ (𝜓𝜑))
2 ifbi 4493 . . 3 (((𝜑𝜓) ↔ (𝜓𝜑)) → if((𝜑𝜓), 𝐴, 𝐵) = if((𝜓𝜑), 𝐴, 𝐵))
31, 2ax-mp 5 . 2 if((𝜑𝜓), 𝐴, 𝐵) = if((𝜓𝜑), 𝐴, 𝐵)
4 ifan 4524 . 2 if((𝜑𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵)
5 ifan 4524 . 2 if((𝜓𝜑), 𝐴, 𝐵) = if(𝜓, if(𝜑, 𝐴, 𝐵), 𝐵)
63, 4, 53eqtr3i 2783 1 if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = if(𝜓, if(𝜑, 𝐴, 𝐵), 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wb 208  wa 398   = wceq 1550  ifcif 4470
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1805  ax-4 1819  ax-5 1920  ax-6 1977  ax-7 2018  ax-8 2134  ax-9 2142  ax-ext 2724
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 857  df-ex 1790  df-sb 2081  df-clab 2731  df-cleq 2744  df-clel 2827  df-if 4471
This theorem is referenced by:  mplasclco  33757
  Copyright terms: Public domain W3C validator